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.
*
private ICommand fCommand;
{
- ICommandManager commandManager = PlatformUI.getWorkbench()
- .getCommandSupport().getCommandManager();
+// ICommandManager commandManager = PlatformUI.getWorkbench()
+// .getCommandSupport().getCommandManager();
// fCommand=
// commandManager.getCommand(PHPEditorActionDefinitionIds.SHOW_JAVADOC);
// if (!fCommand.isDefined())
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));
}
};
}