Examples of ISharedObjectContainer


Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectContainer

    }

    public synchronized ISharedDataGraph publish(String path,
            DataGraph dataGraph, IUpdateConsumer consumer) throws ECFException {
        Path p = new Path(path);
        ISharedObjectContainer container = getContainer(ResourcesPlugin
                .getWorkspace().getRoot().getProject(p.segment(0)));
        PublishedGraphTracker tracker = getTracker(container);

        ID id = IDFactory.getDefault().createStringID(path);
        WaitablePublicationCallback mutex = new WaitablePublicationCallback();
View Full Code Here

Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectContainer

        return result;
    }

    public synchronized boolean isPublished(String path) throws ECFException {
        Path p = new Path(path);
        ISharedObjectContainer container = getContainer(ResourcesPlugin
                .getWorkspace().getRoot().getProject(p.segment(0)));
        PublishedGraphTracker tracker = getTracker(container);
        return tracker.isPublished(IDFactory.getDefault().createStringID(path));
    }
View Full Code Here

Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectContainer

    container = (containerId == null) ? containerFactory
        .createContainer(containerType) : containerFactory
        .createContainer(containerType, new Object[] { containerId });

    // Get socontainer
    ISharedObjectContainer soContainer = (ISharedObjectContainer) container
        .getAdapter(ISharedObjectContainer.class);
    // Add to soContainer, with topic as name
    soContainer.getSharedObjectManager().addSharedObject(
        IDFactory.getDefault().createStringID(DEFAULT_TOPIC), eventAdminImpl,
        null);

    // then connect to target Id
    if (targetId != null)
View Full Code Here

Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectContainer

    // Send chat message to targetID
    client.sendChat(targetID, msgToSend);

    // Get shared object container adapter
    ISharedObjectContainer socontainer = (ISharedObjectContainer) client
        .getContainer().getAdapter(ISharedObjectContainer.class);
    // Create and add shared object to container
    TrivialSharedObject sharedObject = new TrivialSharedObject();
    socontainer.getSharedObjectManager().addSharedObject(
        IDFactory.getDefault().createStringID(
            TrivialSharedObject.class.getName()), sharedObject,
        null);

    // Send messages via shared object...and wait a short while before sending the next one
View Full Code Here

Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectContainer

    // Create a new container entry to hold onto container once created
    final ClientEntry newClientEntry = new ClientEntry(containerType, newClient);

    // Setup sharedobject container if the new instance supports
    // this
    ISharedObjectContainer sharedObjectContainer = (ISharedObjectContainer) newClient.getAdapter(ISharedObjectContainer.class);
    SharedObjectContainerUI socui = new SharedObjectContainerUI(this, sharedObjectContainer);
    socui.setup(sharedObjectContainer, newClientEntry, resource, username);
    // Now connect
    try {
      newClient.connect(targetID, ConnectContextFactory.createUsernamePasswordConnectContext(username, connectData));
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.