X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/java/hover/AbstractJavaEditorTextHover.java b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/java/hover/AbstractJavaEditorTextHover.java index 70669e4..ba23080 100644 --- a/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/java/hover/AbstractJavaEditorTextHover.java +++ b/net.sourceforge.phpeclipse.ui/src/net/sourceforge/phpdt/internal/ui/text/java/hover/AbstractJavaEditorTextHover.java @@ -26,15 +26,15 @@ import org.eclipse.jface.text.IInformationControl; import org.eclipse.jface.text.IInformationControlCreator; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.ITextViewer; -import org.eclipse.swt.SWT; +//import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.IEditorPart; -import org.eclipse.ui.PlatformUI; +//import org.eclipse.ui.PlatformUI; import org.eclipse.ui.commands.ICommand; -import org.eclipse.ui.commands.ICommandManager; +//import org.eclipse.ui.commands.ICommandManager; import org.eclipse.ui.commands.IKeySequenceBinding; import org.eclipse.ui.keys.KeySequence; - +//import org.eclipse.jface.bindings.keys.KeySequence; /** * Abstract class for providing hover information for Java elements. * @@ -47,8 +47,8 @@ public abstract class AbstractJavaEditorTextHover implements private ICommand fCommand; { - ICommandManager commandManager = PlatformUI.getWorkbench() - .getCommandSupport().getCommandManager(); +// ICommandManager commandManager = PlatformUI.getWorkbench() +// .getCommandSupport().getCommandManager(); // fCommand= // commandManager.getCommand(PHPEditorActionDefinitionIds.SHOW_JAVADOC); // if (!fCommand.isDefined()) @@ -137,9 +137,12 @@ public abstract class AbstractJavaEditorTextHover implements public IInformationControlCreator getHoverControlCreator() { return new IInformationControlCreator() { public IInformationControl createInformationControl(Shell parent) { - return new DefaultInformationControl(parent, SWT.NONE, - new HTMLTextPresenter(true), - getTooltipAffordanceString()); + //incastrix + // return new DefaultInformationControl(parent, SWT.NONE, +// new HTMLTextPresenter(true), +// getTooltipAffordanceString()); + return new DefaultInformationControl(parent, getTooltipAffordanceString(), + new HTMLTextPresenter(true)); } }; }