/***/ protected void setDocumentContent(String context, IFile file, XtextEditor fileEditor, String newContent) { IDirtyStateManager dirtyStateManager = getInjector().getInstance(IDirtyStateManager.class); TestEventListener eventListener = new TestEventListener(context, file); dirtyStateManager.addListener(eventListener); setDocumentContent(fileEditor, newContent); eventListener.waitForFiredEvent(); dirtyStateManager.removeListener(eventListener); waitForUpdateEditorJob(); }
@Inject public DirtyStateAwareResourceDescriptions2(final IBuilderState globalDescriptions, final IDirtyStateManager dirtyStateManager, final IStateChangeEventBroker stateChangeEventBroker) { super(globalDescriptions, dirtyStateManager, stateChangeEventBroker); dirtyResources = Sets.newHashSet(); this.dirtyStateManager = dirtyStateManager; this.globalDescriptions = (IResourceDescriptions2) (globalDescriptions instanceof IResourceDescriptions2 ? globalDescriptions : new ResourceDescriptions2(globalDescriptions)); }
@Inject private void setDirtyStateManager(IDirtyStateManager dirtyStateManager) { if (dirtyStateManager instanceof IDirtyStateManagerExtension) { this.dirtyStateManager = (IDirtyStateManagerExtension) dirtyStateManager; } }
public Class<? extends IExternalContentSupport.IExternalContentProvider> bindIExternalContentSupport$IExternalContentProvider() { return IDirtyStateManager.class; }