org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider.
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: DotOutlineTreeProvider.java From gef with Eclipse Public License 2.0 | 5 votes |
/** * Create proper outline subtree from the dot attribute value if possible. * * @param parent * @param attribute */ protected void _createChildren(IOutlineNode parent, Attribute attribute) { if (attribute.getValue().getType() == ID.Type.HTML_STRING) { String htmlLabelValue = attribute.getValue().toValue(); Injector injector = DotActivator.getInstance().getInjector( DotActivator.ORG_ECLIPSE_GEF_DOT_INTERNAL_LANGUAGE_DOTHTMLLABEL); IOutlineTreeStructureProvider outlineTreeStructureProvider = injector .getInstance(IOutlineTreeStructureProvider.class); IXtextDocument xtextDocument = null; try { xtextDocument = DotEditorUtils.getDocument(injector, htmlLabelValue); } catch (Exception e) { DotActivatorEx.logError(e); } if (xtextDocument != null && outlineTreeStructureProvider instanceof DotHtmlLabelOutlineTreeProvider) { DotHtmlLabelOutlineTreeProvider dotHtmlLabelOutlineTreeProvider = (DotHtmlLabelOutlineTreeProvider) outlineTreeStructureProvider; dotHtmlLabelOutlineTreeProvider.setXtextDocument(xtextDocument); attributeValueStartOffset = getAttributeValueStartOffset( attribute); dotHtmlLabelOutlineTreeProvider .setOffset(attributeValueStartOffset); HtmlLabel htmlLabel = getModel(xtextDocument); outlineTreeStructureProvider.createChildren(parent, htmlLabel); } } }
Example #2
Source File: OutlineNodeTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected DocumentRootNode createRootNode() { XtextDocument document = get(XtextDocument.class); document.setInput(resource); IOutlineTreeStructureProvider treeStructureProvider = new IOutlineTreeStructureProvider() { @Override public void createChildren(IOutlineNode parentNode, EObject modelElement) { new EObjectNode(child0Element, parentNode, (ImageDescriptor) null, "child", false); } }; DocumentRootNode rootNode = new DocumentRootNode((ImageDescriptor) null, "root", document, treeStructureProvider); return rootNode; }
Example #3
Source File: AbstractSingleCodetemplateUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return SingleCodetemplateOutlineTreeProvider.class; }
Example #4
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return SARLOutlineTreeProvider.class; }
Example #5
Source File: AbstractGamlUiModule.java From gama with GNU General Public License v3.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return GamlOutlineTreeProvider.class; }
Example #6
Source File: AbstractHelloWorldUiModule.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return HelloWorldOutlineTreeProvider.class; }
Example #7
Source File: AbstractXtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return XtendOutlineTreeProvider.class; }
Example #8
Source File: AbstractPureXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return PureXbaseOutlineTreeProvider.class; }
Example #9
Source File: AbstractXbaseWithAnnotationsUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return XbaseWithAnnotationsOutlineTreeProvider.class; }
Example #10
Source File: AbstractXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return XbaseOutlineTreeProvider.class; }
Example #11
Source File: AbstractArithmeticsUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return ArithmeticsOutlineTreeProvider.class; }
Example #12
Source File: AbstractRuleEngineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return RuleEngineOutlineTreeProvider.class; }
Example #13
Source File: AbstractStatemachineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return StatemachineOutlineTreeProvider.class; }
Example #14
Source File: AbstractDomainmodelUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return DomainmodelOutlineTreeProvider.class; }
Example #15
Source File: XtextUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return XtextOutlineTreeProvider.class; }
Example #16
Source File: AbstractN4JSUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return N4JSOutlineTreeProvider.class; }
Example #17
Source File: AbstractCodetemplatesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return CodetemplatesOutlineTreeProvider.class; }
Example #18
Source File: AbstractNestedRefsTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return NestedRefsTestLanguageOutlineTreeProvider.class; }
Example #19
Source File: AbstractNoJdtTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return NoJdtTestLanguageOutlineTreeProvider.class; }
Example #20
Source File: AbstractBeeLangTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return BeeLangTestLanguageOutlineTreeProvider.class; }
Example #21
Source File: AbstractSimpleBeeLangTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return SimpleBeeLangTestLanguageOutlineTreeProvider.class; }
Example #22
Source File: AbstractExBeeLangTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return ExBeeLangTestLanguageOutlineTreeProvider.class; }
Example #23
Source File: AbstractFileAwareTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return FileAwareTestLanguageOutlineTreeProvider.class; }
Example #24
Source File: AbstractMyDslUiModule.java From M2Doc with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return MyDslOutlineTreeProvider.class; }
Example #25
Source File: AbstractBromiumUiModule.java From bromium with MIT License | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return BromiumOutlineTreeProvider.class; }
Example #26
Source File: AbstractTypesUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return TypesOutlineTreeProvider.class; }
Example #27
Source File: AbstractJSONUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return JSONOutlineTreeProvider.class; }
Example #28
Source File: AbstractRegularExpressionUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { return RegularExpressionOutlineTreeProvider.class; }