Skip to content

Commit

Permalink
Removed the tool-tip part
Browse files Browse the repository at this point in the history
  • Loading branch information
KlasJoensson committed Aug 14, 2012
1 parent d25b9fe commit 58fa088
Showing 1 changed file with 2 additions and 15 deletions.
@@ -1,7 +1,5 @@
package net.bioclipse.usermanager.handlers;

import java.util.Map;

import net.bioclipse.usermanager.Activator;

import org.eclipse.core.commands.AbstractHandler;
Expand All @@ -10,13 +8,9 @@
import org.eclipse.core.commands.HandlerEvent;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.commands.ICommandService;
import org.eclipse.ui.commands.IElementUpdater;
import org.eclipse.ui.internal.commands.CommandService;
import org.eclipse.ui.internal.commands.CommandServiceFactory;
import org.eclipse.ui.menus.UIElement;
import org.eclipse.ui.services.IEvaluationService;

public class LogoutHandler extends AbstractHandler implements IElementUpdater {
public class LogoutHandler extends AbstractHandler {

public Object execute( ExecutionEvent event ) throws ExecutionException {

Expand All @@ -25,18 +19,11 @@ public Object execute( ExecutionEvent event ) throws ExecutionException {

IEvaluationService es = (IEvaluationService)PlatformUI.getWorkbench().getService( IEvaluationService.class );
es.requestEvaluation( "net.bioclipse.usermanager.isLoggedIn" );

ICommandService commandService = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
commandService.refreshElements("net.bioclipse.usermanager.commands.login", null);

return null;
}

@Override
public void updateElement( UIElement element, Map parameters ) {
element.setTooltip( "Hej hopp!" );
// TODO Auto-generated method stub
// When rebased here's where to update the tooltip... But will it work if I log-in to e.g. OpenTox when I create a new account?
}

}

0 comments on commit 58fa088

Please sign in to comment.