}
}
if (editor != null) {
- editor.openContextHelp();
+ ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection();
+ IDocument doc = editor.getDocumentProvider().getDocument(editor.getEditorInput());
+ int pos = selection.getOffset();
+ String word = getFunctionName(doc, pos);
+ openContextHelp(word);
+
}
}
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
if (targetEditor != null && (targetEditor instanceof PHPEditor)) {
editor = (PHPEditor) targetEditor;
- IDocument doc = editor.getDocumentProvider().getDocument(editor.getEditorInput());
- ITextSelection selection = (ITextSelection) editor.getSelectionProvider().getSelection();
- int pos = selection.getOffset();
- String word = getFunctionName(doc, pos);
- openContextHelp(word);
}
}
class="net.sourceforge.phpeclipse.PHPeclipsePlugin">
<runtime>
- <library name="phpeclipse.jar"/>
+ <library name="phpeclipse.jar">
+ <export name="*"/>
+ </library>
</runtime>
<requires>
<import plugin="org.eclipse.core.resources"/>
id="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction">
</action>
</actionSet>
- <!-- <actionSet
- label="%phpActionSet.label"
- visible="false"
- id="net.sourceforge.phpeclipse.phpeditor.actions.phpActionSet">
- <menu
- label="%php.menu.label"
- path="edit"
- id="net.sourceforge.phpeclipse.phpeditor.menu">
- <separator
- name="editGroup">
- </separator>
- </menu>
- <action
- label="%phpUncommentAction.label"
- retarget="true"
- menubarPath="net.sourceforge.phpeclipse.phpeditor.menu/editGroup"
- id="net.sourceforge.phpeclipse.phpeditor.uncomment">
- </action>
- <action
- label="%phpCommentAction.label"
- retarget="true"
- menubarPath="net.sourceforge.phpeclipse.phpeditor.menu/editGroup"
- id="net.sourceforge.phpeclipse.phpeditor.comment">
- </action>
- </actionSet> -->
</extension>
- <!-- <extension
+<!-- <extension
point="org.eclipse.ui.actionDefinitions">
<actionDefinition
id="net.sourceforge.phpeclipse.phpeditor.comment">
id="net.sourceforge.phpeclipse.views.phpconsoleview">
</view>
</extension>
+
</plugin>