Search in sources :

Example 36 with IContainer

use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.

the class Lab1Action method getContainerAdapter.

private IRemoteServiceContainerAdapter getContainerAdapter() throws ContainerCreateException {
    if (adapter == null) {
        IContainer c = getContainer();
        adapter = (IRemoteServiceContainerAdapter) c.getAdapter(IRemoteServiceContainerAdapter.class);
    }
    return adapter;
}
Also used : IContainer(org.eclipse.ecf.core.IContainer)

Example 37 with IContainer

use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.

the class ContainerFactoryCreateTest method testCreateBaseContainer1.

public void testCreateBaseContainer1() throws Exception {
    final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(BASE_CONTAINER_TYPE_NAME);
    assertNotNull(desc);
    final IContainer base = ContainerFactory.getDefault().createContainer(desc, IDFactory.getDefault().createGUID());
    assertNotNull(base);
}
Also used : ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) IContainer(org.eclipse.ecf.core.IContainer)

Example 38 with IContainer

use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.

the class ContainerFactoryCreateTest method testCreateContainer9.

public void testCreateContainer9() throws Exception {
    final IContainer container = ContainerFactory.getDefault().createContainer(CONTAINER_TYPE_NAME, IDFactory.getDefault().createGUID(), new Object[] { "param" });
    assertNotNull(container);
}
Also used : IContainer(org.eclipse.ecf.core.IContainer)

Example 39 with IContainer

use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.

the class ContainerFactoryCreateTest method testCreateBaseContainer5.

public void testCreateBaseContainer5() throws Exception {
    final ContainerTypeDescription desc = ContainerFactory.getDefault().getDescriptionByName(BASE_CONTAINER_TYPE_NAME);
    assertNotNull(desc);
    final IContainer base = ContainerFactory.getDefault().createContainer(desc, IDFactory.getDefault().createGUID(), new Object[] { "param" });
    assertNotNull(base);
}
Also used : ContainerTypeDescription(org.eclipse.ecf.core.ContainerTypeDescription) IContainer(org.eclipse.ecf.core.IContainer)

Example 40 with IContainer

use of org.eclipse.ecf.core.IContainer in project ecf by eclipse.

the class ContainerFactoryCreateTest method testCreateBaseContainer6.

public void testCreateBaseContainer6() throws Exception {
    final IContainer base = ContainerFactory.getDefault().createContainer(BASE_CONTAINER_TYPE_NAME, IDFactory.getDefault().createGUID(), new Object[] { "param" });
    assertNotNull(base);
}
Also used : IContainer(org.eclipse.ecf.core.IContainer)

Aggregations

IContainer (org.eclipse.ecf.core.IContainer)121 ID (org.eclipse.ecf.core.identity.ID)29 ContainerTypeDescription (org.eclipse.ecf.core.ContainerTypeDescription)20 IRosterEntry (org.eclipse.ecf.presence.roster.IRosterEntry)9 IRoster (org.eclipse.ecf.presence.roster.IRoster)8 IChannelContainerAdapter (org.eclipse.ecf.datashare.IChannelContainerAdapter)7 IRemoteServiceContainer (org.eclipse.ecf.remoteservice.IRemoteServiceContainer)7 IRemoteServiceContainerAdapter (org.eclipse.ecf.remoteservice.IRemoteServiceContainerAdapter)7 ISharedObjectContainer (org.eclipse.ecf.core.sharedobject.ISharedObjectContainer)5 IPresenceContainerAdapter (org.eclipse.ecf.presence.IPresenceContainerAdapter)5 RemoteServiceContainer (org.eclipse.ecf.remoteservice.RemoteServiceContainer)5 Action (org.eclipse.jface.action.Action)5 IAction (org.eclipse.jface.action.IAction)5 URL (java.net.URL)4 Job (org.eclipse.core.runtime.jobs.Job)4 ContainerConnectException (org.eclipse.ecf.core.ContainerConnectException)4 IContainerManager (org.eclipse.ecf.core.IContainerManager)4 ISharedObject (org.eclipse.ecf.core.sharedobject.ISharedObject)4 ISharedObjectManager (org.eclipse.ecf.core.sharedobject.ISharedObjectManager)4 RestClientContainer (org.eclipse.ecf.remoteservice.rest.client.RestClientContainer)4