protected void createActions() { super.createActions(); // Add content assist propsal action ContentAssistAction action = new ContentAssistAction(Plugin .getDefault().getResourceBundle(), "VelocityEditor.ContentAssist", this); action .setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); setAction("Velocity.ContentAssist", action); action.setEnabled(true); // add toggle comment action ToggleCommentAction toggleCommentAction = new ToggleCommentAction(Plugin .getDefault().getResourceBundle(), "VelocityEditor.ToggleComment", this); toggleCommentAction.configure(getSourceViewer(), getSourceViewerConfiguration()); setAction("Velocity.ToggleComment", toggleCommentAction ); toggleCommentAction.setEnabled(true); }
@Override protected void createActions() { super.createActions(); ResourceBundle bundle = ResourceBundle.getBundle(Messages.getBundleName()); ContentAssistAction action = new ContentAssistAction(bundle, "contentAssist.", this); //$NON-NLS-1$ action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); setAction(CONTENT_ASSIST, action); }
@Override protected void createActions() { super.createActions(); /* Configure l'autocomplétion. */ ContentAssistAction action = new ContentAssistAction(new ContentAssistBundle(), "ContentAssistProposal.", this); action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); setAction("ContentAssist", action); }
@Override protected void createActions() { super.createActions(); IAction action = new ContentAssistAction(ResourceBundle.getBundle("AsciidocEditorAction"), "ContentAssistProposal.", this); String id = Activator.PLUGIN_ID.concat(".contentassist"); action.setActionDefinitionId(id); setAction("ContentAssistProposal", action); markAsStateDependentAction("ContentAssistProposal", true); setActionActivationCode(id, ' ', -1, SWT.CTRL); }
public Object execute(ExecutionEvent event) throws ExecutionException { // Due to an Handler ExtensionPoint declaration, we have an XtextEditor as Active // Editor so can just cast to an ITextEditor new ContentAssistAction(XtextUIMessages.getResourceBundle(), "ContentAssistProposal.", (ITextEditor) HandlerUtil.getActiveEditor(event)).run(); return this; }
@Override protected void createActions() { super.createActions(); IAction action = new ContentAssistAction(new UmpResourceBoundle(), "ContentAssistProposal.", this); String id = ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS; action.setActionDefinitionId(id); setAction("ContentAssistProposal", action); markAsStateDependentAction("ContentAssistProposal", true); }
@Override protected void createActions() { super.createActions(); IAction contentAssistAction = new ContentAssistAction(Messages.RESOURCE_BUNDLE, "ContentAssistProposal.", this); contentAssistAction.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS); setAction("ContentAssistProposal", contentAssistAction); markAsStateDependentAction("ContentAssistProposal", true); }
@Override protected void createActions() { super.createActions(); ResourceBundle resourceBundle = ResourceBundle.getBundle("ynn.eclipse.mylogo.ui.res.contentAssist"); Action action = new ContentAssistAction(resourceBundle, "ContentAssistProposal.", this); String id = ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS; action.setActionDefinitionId(id); setAction("ContentAssistProposal", action); markAsStateDependentAction("ContentAssistProposal", true); }