org.eclipse.jface.text.IEventConsumer Java Examples
The following examples show how to use
org.eclipse.jface.text.IEventConsumer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GeneratedScriptPreviewPage.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
protected void createScriptPreviewComposite(final Composite mainComposite) { final Composite previewComposite = new Composite(mainComposite, SWT.NONE); previewComposite.setLayout(new FillLayout(SWT.VERTICAL)); previewComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).span(2, 0).create()); final GroovyViewer groovyViewer = sourceViewerFactory.createSourceViewer(previewComposite, true); groovyViewer.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 300).create()); final SourceViewer sourceViewer = groovyViewer.getSourceViewer(); sourceViewer.setEditable(false); sourceViewer.setEventConsumer(new IEventConsumer() { @Override public void processEvent(final VerifyEvent event) { event.doit = false; } }); document = groovyViewer.getDocument(); document.set(generatedExpression.getContent()); }
Example #2
Source File: ContentAssistSubjectControlAdapter.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
/** * @see org.eclipse.jface.contentassist.IContentAssistSubjectControl#setEventConsumer(org.eclipse.jface.text.IEventConsumer) */ public void setEventConsumer(IEventConsumer eventConsumer) { if (fContentAssistSubjectControl != null) { fContentAssistSubjectControl.setEventConsumer(eventConsumer); } else { fViewer.setEventConsumer(eventConsumer); } }
Example #3
Source File: DummyTextViewer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void setEventConsumer(IEventConsumer consumer) { throw new UnsupportedOperationException(); }
Example #4
Source File: MockableTextViewer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void setEventConsumer(IEventConsumer consumer) { throw new UnsupportedOperationException(); }
Example #5
Source File: MockableTextViewer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void setEventConsumer(IEventConsumer consumer) { throw new UnsupportedOperationException(); }
Example #6
Source File: DotHtmlLabelHoverFakeSourceViewer.java From gef with Eclipse Public License 2.0 | 4 votes |
@Override public void setEventConsumer(IEventConsumer consumer) { throw new UnsupportedOperationException(); }
Example #7
Source File: DelegatingTextViewer.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 4 votes |
public void setEventConsumer(IEventConsumer consumer) { originalTextViewer.setEventConsumer(consumer); }
Example #8
Source File: ScriptConsoleViewerWrapper.java From Pydev with Eclipse Public License 1.0 | 4 votes |
@Override public void setEventConsumer(IEventConsumer consumer) { viewer.setEventConsumer(consumer); }