Skip to content

Commit

Permalink
Added the icons
Browse files Browse the repository at this point in the history
  • Loading branch information
KlasJoensson committed Aug 14, 2012
1 parent 8318ad1 commit 4391318
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 7 deletions.
Expand Up @@ -330,8 +330,7 @@ protected void fillCoolBar(ICoolBarManager coolBar) {
manager.add(helpAction);

}



private void removeUnwantedActions(){

String actionSetId = "org.eclipse.ui.edit.text.actionSet.navigation";
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 53 additions & 5 deletions plugins/net.bioclipse.usermanager/plugin.xml
Expand Up @@ -123,8 +123,9 @@
icon="icons/login_16.png">
<visibleWhen >
<test
property="net.bioclipse.usermanager.accountTypeExists"
value="true">
forcePluginActivation="true"
property="net.bioclipse.usermanager.accountTypeExists"
value="true">
</test>
</visibleWhen>
</command>
Expand All @@ -134,11 +135,12 @@
<command
commandId="net.bioclipse.usermanager.commands.logout"
label="Log Out"
icon="icons/login_16.png">
icon="icons/login_green_16.png">
<visibleWhen >
<test
property="net.bioclipse.usermanager.accountTypeExists"
value="true">
forcePluginActivation="true"
property="net.bioclipse.usermanager.isLoggedIn"
value="true">
</test>
</visibleWhen>
</command>
Expand All @@ -155,5 +157,51 @@
name="Account">
</wizard>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
locationURI="toolbar:org.eclipse.ui.trim.status">
<toolbar
id="net.bioclipse.usermanager.toolbar1">
<command
commandId="net.bioclipse.usermanager.commands.login"
icon="icons/login_16.png"
mode="FORCE_TEXT"
style="push"
tooltip="Not logged in, click to logg in.">
<visibleWhen>
<test
forcePluginActivation="true"
property="net.bioclipse.usermanager.isLoggedIn"
value="false">
</test>
</visibleWhen>
</command>
<command
commandId="net.bioclipse.usermanager.commands.logout"
icon="icons/login_green_16.png"
mode="FORCE_TEXT"
style="push"
tooltip="Logged in, click to log out.">
<visibleWhen>
<test
forcePluginActivation="true"
property="net.bioclipse.usermanager.isLoggedIn"
value="true">
</test>
</visibleWhen>
</command>
<visibleWhen
checkEnabled="false">
<test
forcePluginActivation="true"
property="net.bioclipse.usermanager.accountTypeExists"
value="true">
</test>
</visibleWhen>
</toolbar>
</menuContribution>
</extension>

</plugin>

0 comments on commit 4391318

Please sign in to comment.