import org.eclipse.ui.actions.ActionContext;
import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.ui.editors.text.TextEditor;
+import org.eclipse.ui.texteditor.ContentAssistAction;
import org.eclipse.ui.texteditor.DefaultRangeIndicator;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
import org.eclipse.ui.texteditor.TextOperationAction;
*/
protected void createActions() {
super.createActions();
- setAction(
- "ContentAssistProposal",
- new TextOperationAction(
- PHPEditorMessages.getResourceBundle(),
- "ContentAssistProposal.",
- this,
- ISourceViewer.CONTENTASSIST_PROPOSALS));
+
+ Action action;
+// setAction(
+// "ContentAssistProposal",
+// new TextOperationAction(
+// PHPEditorMessages.getResourceBundle(),
+// "ContentAssistProposal.",
+// this,
+// ISourceViewer.CONTENTASSIST_PROPOSALS));
+ action= new ContentAssistAction(PHPEditorMessages.getResourceBundle(), "ContentAssistProposal.", this); //$NON-NLS-1$
+ action.setActionDefinitionId(PHPEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
+ setAction("ContentAssistProposal", action); //$NON-NLS-1$
+
+
+// System.out.println(action.getId());
+// System.out.println(action.getActionDefinitionId());
+
setAction(
"ContentAssistTip",
new TextOperationAction(
this,
ISourceViewer.CONTENTASSIST_CONTEXT_INFORMATION));
- Action action = new TextOperationAction(PHPEditorMessages.getResourceBundle(), "Comment.", this, ITextOperationTarget.PREFIX);
+ action = new TextOperationAction(PHPEditorMessages.getResourceBundle(), "Comment.", this, ITextOperationTarget.PREFIX);
action.setActionDefinitionId(PHPEditorActionDefinitionIds.COMMENT);
setAction("Comment", action);
-
+
+// System.out.println(action.getId());
+// System.out.println(action.getActionDefinitionId());
+
action = new TextOperationAction(PHPEditorMessages.getResourceBundle(), "Uncomment.", this, ITextOperationTarget.STRIP_PREFIX);
action.setActionDefinitionId(PHPEditorActionDefinitionIds.UNCOMMENT);
setAction("Uncomment", action);
+// System.out.println(action.getId());
+// System.out.println(action.getActionDefinitionId());
+
+
// fActionGroups = new PHPActionGroup(this, ITextEditorActionConstants.GROUP_EDIT);
markAsStateDependentAction("Comment", true); //$NON-NLS-1$