protected void createChannel() throws ECFException { // Get datashare adapter from new container datashareAdapter = (IChannelContainerAdapter) container.getAdapter(IChannelContainerAdapter.class); // Create channel listener for channel to be created IChannelListener channelListener = createChannelListener(); // Create a channel with given channel listener testChannel = datashareAdapter.createChannel( IDFactory.getDefault().createStringID(Activator.class.getName()), channelListener, null); }
protected void shutdown() { if (datashareAdapter != null) { datashareAdapter.removeChannel(testChannel.getID()); testChannel = null; datashareAdapter = null; } if (container != null) { container.dispose(); getContainerManager().removeAllContainers(); container = null; } if (containerManagerTracker != null) { containerManagerTracker.close(); containerManagerTracker = null; } synchronized (appLock) { done = true; appLock.notifyAll(); } bundleContext = null; }