--- a/connectivity/com.nokia.carbide.remoteConnections/plugin.xml Mon Feb 01 12:38:42 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/plugin.xml Mon Feb 01 13:27:18 2010 -0600
@@ -5,6 +5,7 @@
<extension-point id="service" name="Service" schema="schema/service.exsd"/>
<extension-point id="extensionFilter" name="Extension Filter" schema="schema/extensionFilter.exsd"/>
<extension-point id="connectedServiceFactory" name="Connected Service Factory" schema="schema/connectedServiceFactory.exsd"/>
+ <extension-point id="deviceDiscoveryAgent" name="Device Discovery Agent" schema="schema/deviceDiscoveryAgent.exsd"/>
<extension
point="org.eclipse.ui.views">
@@ -76,4 +77,47 @@
</actionSet>
</extension>
+<!-- We use an Eclipse toolbar command to show the ToolItem icon for the
+current connection status. This is required to get the same kind of
+UI as a toolbar item, without resorting to exorbant recreation of
+the platform UI. But this also means we directly depend on being
+able to find the ToolItem at runtime. Thus, this command id
+should not change without syncing with the ConnectionStatusSelectorContribution
+class. -->
+
+<extension point="org.eclipse.ui.commands">
+ <command
+ id="com.nokia.carbide.remoteConnections.commands.openRemoteConnectionsView"
+ name="Open Remote Connections View">
+ </command>
+</extension>
+
+<extension point="org.eclipse.ui.handlers">
+ <handler
+ class="com.nokia.carbide.remoteconnections.internal.ui.OpenConnectionViewCommandHandler"
+ commandId="com.nokia.carbide.remoteConnections.commands.openRemoteConnectionsView">
+ </handler>
+</extension>
+
+<extension point="org.eclipse.ui.menus">
+ <menuContribution
+ locationURI="toolbar:org.eclipse.ui.trim.status">
+ <toolbar
+ id="com.nokia.carbide.remoteConnections.contributions.toolbar.trim">
+ <command
+ commandId="com.nokia.carbide.remoteConnections.commands.openRemoteConnectionsView"
+ icon="icons/connection.png"
+ label=""
+ id="openRemoteConnectionsView"
+
+ tooltip="Current connection status">
+ </command>
+
+ <control
+ class="com.nokia.carbide.remoteconnections.internal.ui.ConnectionStatusSelectorContribution"
+ id="deviceStatusSelectorContribution">
+ </control>
+ </toolbar>
+ </menuContribution>
+</extension>
</plugin>