當前位置: 首頁>>代碼示例>>Java>>正文


Java IWorkbenchPartReference.isDirty方法代碼示例

本文整理匯總了Java中org.eclipse.ui.IWorkbenchPartReference.isDirty方法的典型用法代碼示例。如果您正苦於以下問題:Java IWorkbenchPartReference.isDirty方法的具體用法?Java IWorkbenchPartReference.isDirty怎麽用?Java IWorkbenchPartReference.isDirty使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.ui.IWorkbenchPartReference的用法示例。


在下文中一共展示了IWorkbenchPartReference.isDirty方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof de.darwinspl.preferences.resource.dwprofile.ui.DwprofileEditor) {
		de.darwinspl.preferences.resource.dwprofile.ui.DwprofileEditor editor = (de.darwinspl.preferences.resource.dwprofile.ui.DwprofileEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:DwprofileCodeFoldingManager.java

示例2: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionEditor) {
		eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionEditor editor = (eu.hyvar.feature.expression.resource.hyexpression.ui.HyexpressionEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:HyexpressionCodeFoldingManager.java

示例3: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaEditor) {
		eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaEditor editor = (eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.HyvalidityformulaEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:HyvalidityformulaCodeFoldingManager.java

示例4: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueEditor) {
		eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueEditor editor = (eu.hyvar.dataValues.resource.hydatavalue.ui.HydatavalueEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:HydatavalueCodeFoldingManager.java

示例5: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingEditor) {
		eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingEditor editor = (eu.hyvar.feature.mapping.resource.hymapping.ui.HymappingEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:HymappingCodeFoldingManager.java

示例6: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsEditor) {
		eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsEditor editor = (eu.hyvar.feature.constraint.resource.hyconstraints.ui.HyconstraintsEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:HyconstraintsCodeFoldingManager.java

示例7: partClosed

import org.eclipse.ui.IWorkbenchPartReference; //導入方法依賴的package包/類
public void partClosed(IWorkbenchPartReference partRef) {
	if (partRef.isDirty()) {
		return;
	}
	IWorkbenchPart workbenchPart = partRef.getPart(false);
	if (workbenchPart instanceof eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestEditor) {
		eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestEditor editor = (eu.hyvar.mspl.manifest.resource.hymanifest.ui.HymanifestEditor) workbenchPart;
		Resource editorResource = editor.getResource();
		if (editorResource == null) {
			return;
		}
		String uri = editorResource.getURI().toString();
		Resource thisEditorResource = this.editor.getResource();
		URI thisEditorResourceURI = thisEditorResource.getURI();
		if (uri.equals(thisEditorResourceURI.toString())) {
			saveCodeFoldingStateFile(uri);
			editor.getSite().getPage().removePartListener(this);
		}
	}
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:21,代碼來源:HymanifestCodeFoldingManager.java


注:本文中的org.eclipse.ui.IWorkbenchPartReference.isDirty方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。