Java 类org.eclipse.xtext.ui.editor.IDirtyStateManager 实例源码

项目:n4js    文件:AbstractBuilderParticipantTest.java   
/***/
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();
}
项目:dsl-devkit    文件:DirtyStateAwareResourceDescriptions2.java   
@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));
}
项目:n4js    文件:EditorAwareCanLoadFromDescriptionHelper.java   
@Inject
private void setDirtyStateManager(IDirtyStateManager dirtyStateManager) {
    if (dirtyStateManager instanceof IDirtyStateManagerExtension) {
        this.dirtyStateManager = (IDirtyStateManagerExtension) dirtyStateManager;
    }
}
项目:bts    文件:DefaultUiModule.java   
public Class<? extends IExternalContentSupport.IExternalContentProvider> bindIExternalContentSupport$IExternalContentProvider() {
    return IDirtyStateManager.class;
}