Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-10-25 23:58:21 -0400
committerslewis2007-10-25 23:58:21 -0400
commit270dc62e02bd307839e8e47e104caf2e0d8cbb2f (patch)
treeac27b9a71504b7281eb05d4d2cff45164ba9a32a /examples
parent88b40204c109956bc9fc841bea7fb0a1c98b85df (diff)
downloadorg.eclipse.ecf-270dc62e02bd307839e8e47e104caf2e0d8cbb2f.tar.gz
org.eclipse.ecf-270dc62e02bd307839e8e47e104caf2e0d8cbb2f.tar.xz
org.eclipse.ecf-270dc62e02bd307839e8e47e104caf2e0d8cbb2f.zip
Fixed errors in javadocs
Diffstat (limited to 'examples')
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab.editor/src/org/eclipse/ecf/example/collab/editor/Activator.java43
1 files changed, 15 insertions, 28 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab.editor/src/org/eclipse/ecf/example/collab/editor/Activator.java b/examples/bundles/org.eclipse.ecf.example.collab.editor/src/org/eclipse/ecf/example/collab/editor/Activator.java
index 8623b12d0..4a1d8ce7e 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab.editor/src/org/eclipse/ecf/example/collab/editor/Activator.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab.editor/src/org/eclipse/ecf/example/collab/editor/Activator.java
@@ -59,12 +59,14 @@ public class Activator extends AbstractUIPlugin {
/**
* This method is called upon plug-in activation
+ * @param context
+ * @throws Exception
*/
public void start(BundleContext context) throws Exception {
super.start(context);
// Make sure the defaults get created.
- ClientPreferencePage p = new ClientPreferencePage();
+ final ClientPreferencePage p = new ClientPreferencePage();
p.initializeDefaults();
sessionNames = new ArrayList();
@@ -72,6 +74,8 @@ public class Activator extends AbstractUIPlugin {
/**
* This method is called when the plug-in is stopped
+ * @param context
+ * @throws Exception
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
@@ -113,21 +117,16 @@ public class Activator extends AbstractUIPlugin {
public void addSession(String channelID, String sessionName) {
- sessionNames
- .add(new SessionInstance(channelID, sessionName,
- getPreferenceStore().getString(
- ClientPreferencePage.LOCAL_NAME), Calendar
- .getInstance().getTime()));
+ sessionNames.add(new SessionInstance(channelID, sessionName, getPreferenceStore().getString(ClientPreferencePage.LOCAL_NAME), Calendar.getInstance().getTime()));
if (presenceChannel != null) {
// Tell everyone there is a new shared editor.
try {
- presenceChannel.sendMessage((new SharedEditorSessionList(
- sessionNames)).toByteArray());
- } catch (ECFException e) {
+ presenceChannel.sendMessage((new SharedEditorSessionList(sessionNames)).toByteArray());
+ } catch (final ECFException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- } catch (IOException e) {
+ } catch (final IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
@@ -138,30 +137,18 @@ public class Activator extends AbstractUIPlugin {
return presenceChannelListener;
}
- public IChannel intializePresenceSession(IChannelListener clistener)
- throws ECFException {
- presenceContainer = ContainerFactory.getDefault().createContainer(
- Activator.getDefault().getPreferenceStore().getString(
- ClientPreferencePage.CONTAINER_TYPE));
+ public IChannel intializePresenceSession(IChannelListener clistener) throws ECFException {
+ presenceContainer = ContainerFactory.getDefault().createContainer(Activator.getDefault().getPreferenceStore().getString(ClientPreferencePage.CONTAINER_TYPE));
- IChannelContainerAdapter channelContainer = (IChannelContainerAdapter) presenceContainer
- .getAdapter(IChannelContainerAdapter.class);
+ final IChannelContainerAdapter channelContainer = (IChannelContainerAdapter) presenceContainer.getAdapter(IChannelContainerAdapter.class);
- final ID channelID = IDFactory.getDefault().createID(
- channelContainer.getChannelNamespace(),
- Activator.getDefault().getPreferenceStore().getString(
- ClientPreferencePage.CHANNEL_ID)
- + ".presence");
+ final ID channelID = IDFactory.getDefault().createID(channelContainer.getChannelNamespace(), Activator.getDefault().getPreferenceStore().getString(ClientPreferencePage.CHANNEL_ID) + ".presence");
- presenceChannel = channelContainer.createChannel(channelID, clistener,
- new HashMap());
+ presenceChannel = channelContainer.createChannel(channelID, clistener, new HashMap());
this.presenceChannelListener = clistener;
- presenceContainer.connect(IDFactory.getDefault().createID(
- presenceContainer.getConnectNamespace(),
- Activator.getDefault().getPreferenceStore().getString(
- ClientPreferencePage.TARGET_SERVER)), null);
+ presenceContainer.connect(IDFactory.getDefault().createID(presenceContainer.getConnectNamespace(), Activator.getDefault().getPreferenceStore().getString(ClientPreferencePage.TARGET_SERVER)), null);
return presenceChannel;
}

Back to the top