org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource Java Examples
The following examples show how to use
org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource.
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: PrevStateAwareDirtyStateManager.java From n4js with Eclipse Public License 1.0 | 6 votes |
private DocumentBasedDirtyResource reflectiveGetInnerResource(final IDirtyResource dirtyResource) { Field[] declaredFields = dirtyResource.getClass().getDeclaredFields(); DocumentBasedDirtyResource myDirtyResource = null; try { Field field = declaredFields[0]; field.setAccessible(true); Object fieldValue = field.get(dirtyResource); if (fieldValue instanceof DirtyStateEditorSupport) { myDirtyResource = ((DirtyStateEditorSupport) fieldValue).getDirtyResource(); } } catch (IllegalArgumentException | IllegalAccessException e) { // ignore } return myDirtyResource; }
Example #2
Source File: DocumentBasedDirtyResourceTest.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@Override public void setUp() throws Exception { super.setUp(); with(XtextStandaloneSetup.class); uri = URI.createURI("scheme:/foobar.xtext"); documentContent = "grammar foo with org.eclipse.xtext.common.Terminals\n" + "generate test 'http://test'\n" + "Model: name=ID;"; resource = getResource(documentContent, uri.toString()); DefaultResourceServiceProvider provider = new DefaultResourceServiceProvider() { @Override public org.eclipse.xtext.resource.IResourceDescription.Manager getResourceDescriptionManager() { return DocumentBasedDirtyResourceTest.this; } }; resource.setResourceServiceProvider(provider); dirtyResource = new DocumentBasedDirtyResource(); description = this; }
Example #3
Source File: AbstractXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #4
Source File: AbstractCodetemplatesUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #5
Source File: AbstractSingleCodetemplateUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #6
Source File: XtextUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #7
Source File: AbstractEcore2XtextTestUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #8
Source File: AbstractDomainmodelUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #9
Source File: AbstractStatemachineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #10
Source File: AbstractRuleEngineUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #11
Source File: AbstractArithmeticsUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #12
Source File: AbstractBuilderTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #13
Source File: AbstractSARLUiModule.java From sarl with Apache License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #14
Source File: AbstractXbaseWithAnnotationsUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #15
Source File: AbstractPureXbaseUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #16
Source File: AbstractBug462047LangUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #17
Source File: AbstractXImportSectionTestLangUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #18
Source File: AbstractContentAssistFragmentTestLangUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #19
Source File: AbstractXtendUiModule.java From xtext-xtend with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #20
Source File: AbstractHelloWorldUiModule.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #21
Source File: AbstractGamlUiModule.java From gama with GNU General Public License v3.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #22
Source File: AbstractN4JSUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #23
Source File: AbstractNoJdtTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #24
Source File: N4JSUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
@Override public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PrevStateAwareDocumentBasedDirtyResource.class; }
Example #25
Source File: AbstractRegularExpressionUiModule.java From n4js with Eclipse Public License 1.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #26
Source File: AbstractBromiumUiModule.java From bromium with MIT License | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #27
Source File: AbstractMyDslUiModule.java From M2Doc with Eclipse Public License 1.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #28
Source File: AbstractFileAwareTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #29
Source File: AbstractExBeeLangTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }
Example #30
Source File: AbstractSimpleBeeLangTestLanguageUiModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { return PersistentDataAwareDirtyResource.class; }