本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}