Skip to content

Instantly share code, notes, and snippets.

View zubairov's full-sized avatar

Renat Zubairov zubairov

View GitHub Profile
   private void createAndShowGUI() {
       //Create and set up the window.
       appFrame = new JFrame(Messages.CarRentalClient_Title);
       appFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       // Display the window centered on the screen
       Dimension d = appFrame.getToolkit().getScreenSize();
       appFrame.setLocation((d.width / 2) - (appFrame.getWidth() / 2), (appFrame.getHeight() / 2));
       main = createPanel();
@zubairov
zubairov / qxTree.js
Created October 20, 2010 13:25
Qooxdoo Tree
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
@zubairov
zubairov / tESBProviderCode.java
Created February 2, 2011 13:34
Code generated by talend
System.out
.println("--- [tESBProviderRequest] Initializing the component");
Class<?> clazz_tESBProviderRequest_1 = this.getClass();
// *** ESB context initialization
routines.esb.ESBContext esbContext_tESBProviderRequest_1 = new routines.esb.ESBContext(
"http://127.0.0.1:8088/esb/provider");
// System.out.println("esb context: " +
// esbContext_tESBProviderRequest_1);
// CXF start the shit
// Register endpoint http://localhost:8080/whatever/foo/bar
// Start litener
// Wait for message
String message = request.getPayload();
// Do magical Talend stuff
request.sendResponse(response);
package org.talend.test;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.Provider;
import org.apache.cxf.frontend.ServerFactoryBean;
public class ProviderTest implements Provider<SOAPMessage> {
/**
package org.talend.test;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.Provider;
import org.apache.cxf.frontend.ServerFactoryBean;
import org.sopera.talend.provider.QueuedProvider;
import org.sopera.talend.provider.QueuedRequest;
public class ProviderTest {
/*******************************************************************************
* Copyright (c) 2010 SOPERA GmbH
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.sopera.talend.provider;
@zubairov
zubairov / EDIFACTComponent.java
Created February 14, 2011 10:52
Java generated by EDIFACT component
/**
* [tEDIFACTtoXML_1 main ] start
*/
currentComponent = "tEDIFACTtoXML_1";
org.milyn.Smooks smooks_tEDIFACTtoXML_1 = new org.milyn.Smooks();
smooks_tEDIFACTtoXML_1
.setReaderConfig(new org.milyn.smooks.edi.unedifact.UNEdifactReaderConfigurator(
"urn:org.milyn.edi.unedifact:" + "d99a"
package org.talend.test;
import org.milyn.GenericReaderConfigurator;
import org.milyn.SmooksException;
import org.milyn.cdr.SmooksResourceConfiguration;
import org.milyn.smooks.edi.ModelLoader;
import org.milyn.smooks.edi.unedifact.UNEdifactReader;
public class Test {
package org.talend.test;
import java.net.URI;
import org.jdom.Document;
import org.jdom.input.SAXHandler;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
import org.milyn.SmooksException;
import org.milyn.edisax.EDIParser;