Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Testing to change the tooltip
  • Loading branch information
KlasJoensson committed Aug 14, 2012
1 parent c1580a9 commit d25b9fe
Showing 1 changed file with 12 additions and 1 deletion.
@@ -1,5 +1,7 @@
package net.bioclipse.usermanager.handlers;

import java.util.Map;

import net.bioclipse.usermanager.Activator;

import org.eclipse.core.commands.AbstractHandler;
Expand All @@ -8,11 +10,13 @@
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 {
public class LogoutHandler extends AbstractHandler implements IElementUpdater {

public Object execute( ExecutionEvent event ) throws ExecutionException {

Expand All @@ -28,4 +32,11 @@ public Object execute( ExecutionEvent event ) throws ExecutionException {
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 d25b9fe

Please sign in to comment.