Package org.eclipse.ecf.core.sharedobject

Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectManager.addSharedObject()


        // create local object
        ISharedObjectManager mgr = config.getContext().getSharedObjectManager();
        SharedDataGraph sdg = new SharedDataGraph(null, provider, consumer,
                null, callback);
        mgr.addSharedObject(id, sdg, null);
        return sdg;
    }

    /*
     * (non-Javadoc)
 
View Full Code Here


        ISharedObjectManager mgr = container.getSharedObjectManager();
        ID id = IDFactory.getDefault().createStringID(DataGraphSharing.DATA_GRAPH_SHARING_ID);
        DataGraphSharing result = (DataGraphSharing) mgr.getSharedObject(id);
        if (result == null) {
            result = new DataGraphSharing();
            mgr.addSharedObject(id, result, null);
        }

        return result;
    }
}
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.