Examples of connect()


Examples of org.drools.eclipse.flow.common.editor.core.ElementConnection.connect()

    private void restoreConnections() {
        int i = 0;
        for (Iterator it = incomingConnections.iterator(); it.hasNext(); ) {
            ElementConnection connection = (ElementConnection) it.next();
            connection.connect((ElementWrapper) incomingElementWrappers.get(i), child);
            i++;
        }
        i = 0;
        for (Iterator it = outgoingConnections.iterator(); it.hasNext(); ) {
            ElementConnection connection = (ElementConnection) it.next();
View Full Code Here

Examples of org.drools.grid.GridConnection.connect()

       
        GridServiceDescription<GridNode> serviceDescription = pages.lookup( "test1@local" );

        GridConnection connection = grid.get( ConnectionFactoryService.class ).createConnection( gsd );
        assertSame( gnode,
                    connection.connect() );

        grid.dispose();
    }

    //    public void testWhitePagesAddRemoveAddresss() {
View Full Code Here

Examples of org.drools.grid.generic.GenericNodeConnector.connect()

                currentNode = getBestNode(new StaticIncrementalSelectionStrategy(this));
            } else {
                strategy.setConnection(this);
                currentNode = getBestNode(strategy);
            }
            if (currentNode.connect()) {
                node = new ExecutionNode();
                node.set(KnowledgeBuilderFactoryService.class, new KnowledgeBuilderProviderRemoteClient(currentNode));
                node.set(KnowledgeBaseFactoryService.class, new KnowledgeBaseProviderRemoteClient(currentNode));
                node.set(DirectoryLookupFactoryService.class, new DirectoryLookupProviderRemoteClient(currentNode, this));
View Full Code Here

Examples of org.eclipse.cdt.internal.ui.editor.WorkingCopyManager.connect()

    IEditorInput input = new FileEditorInput((IFile)src.getResource());

    // hack... there has to be a better way
    WorkingCopyManager manager = (WorkingCopyManager)
      cuiPlugin.getWorkingCopyManager();
    manager.connect(input);
    manager.setWorkingCopy(input, (IWorkingCopy)src);

    HashMap<String,Object> result = new HashMap<String,Object>();
    try{
      // more hacks to got get around gui dependency
View Full Code Here

Examples of org.eclipse.core.filebuffers.ITextFileBufferManager.connect()

        IPath fileLocation =
            ((IFileEditorInput) editor.getEditorInput()).getFile().getLocation();
       
        ITextFileBufferManager bm = FileBuffers.getTextFileBufferManager();
        bm.connect(fileLocation, new NullProgressMonitor());
       
        try
        {
            IDocument doc = editor.getViewer().getDocument();
            doc.replace(0, 0, "abc");
View Full Code Here

Examples of org.eclipse.datatools.connectivity.IConnectionProfile.connect()

          IConnectionProfile profile = getConnectionProfile();
          IStatus status = Status.OK_STATUS;

          if (profile != null) {
            status = profile.connect();
          }
          else {
            status = CloudFoundryPlugin.getErrorStatus(NLS.bind(Messages.DataToolsTunnelAction_ERROR_CREATE_PROFILE, tunnelDescriptor.getServiceName()));
          }
View Full Code Here

Examples of org.eclipse.ecf.core.IContainer.connect()

      // make container instance
      IContainer cont = ContainerFactory.getDefault().createContainer("ecf.twitter");
      // make targetID      
      ID targetID;
      targetID = IDFactory.getDefault().createID(cont.getConnectNamespace(),"http://twitter.com/savino2");
      cont.connect(targetID,null);
    } catch (IDCreateException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (ContainerConnectException e) {
      // TODO Auto-generated catch block
View Full Code Here

Examples of org.eclipse.ecf.example.clients.XMPPChatClient.connect()

    // Create client
    XMPPChatClient client = new XMPPChatClient(this, this);

    // connect
    client.connect(originalArgs[0], originalArgs[1]);

    // Wait for 5s for the roster/presence information to be received
    final Object lock = new Object();
    synchronized (lock) {
      lock.wait(5000);
View Full Code Here

Examples of org.eclipse.ecf.example.clients.XMPPChatRoomClient.connect()

    }
    senderAccount = originalArgs[0];
    // Create client
    final XMPPChatRoomClient client = new XMPPChatRoomClient(this);
    // connect to senderAccount using senderPassword
    client.connect(senderAccount, originalArgs[1]);
    // get chat room
    final IChatRoomContainer chatRoomContainer = client.createChatRoom(originalArgs[2]);
    // join/connect to chat room
    chatRoomContainer.connect(client.getChatRoomInfo().getRoomID(), null);
View Full Code Here

Examples of org.eclipse.ecf.presence.bot.impl.ChatRoomBot.connect()

    for (Iterator it = bots.values().iterator(); it.hasNext();) {
      IChatRoomBotEntry entry = (IChatRoomBotEntry) it.next();
      // Create default chat room bot
      ChatRoomBot bot = new ChatRoomBot(entry);
      // connect
      bot.connect();
    }

    while (true) {
      try {
        Thread.sleep(100);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.