Java 类org.eclipse.ui.texteditor.ContentAssistAction 实例源码
项目:velocity-edit
文件:VelocityEditor.java
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);
}
项目:pgcodekeeper
文件:SQLEditor.java
@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);
}
项目:vertigo-chroma-kspplugin
文件:KspEditor.java
@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);
}
项目:eclipse-asciidoctools
文件:AsciidocEditor.java
@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);
}
项目:bts
文件:ContentAssistHandler.java
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;
}
项目:umple
文件:UMPEditor.java
@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);
}
项目:textuml
文件:SourceEditor.java
@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);
}
项目:myLOGO4Eclipse
文件:LogoScriptEditor.java
@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);
}