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


Java ProblemEditorPart類代碼示例

本文整理匯總了Java中org.eclipse.emf.common.ui.editor.ProblemEditorPart的典型用法代碼示例。如果您正苦於以下問題:Java ProblemEditorPart類的具體用法?Java ProblemEditorPart怎麽用?Java ProblemEditorPart使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProblemEditorPart類屬於org.eclipse.emf.common.ui.editor包,在下文中一共展示了ProblemEditorPart類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: updateProblemIndication

import org.eclipse.emf.common.ui.editor.ProblemEditorPart; //導入依賴的package包/類
/**
 * Updates the problems indication with the information described in the specified diagnostic. <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
protected void updateProblemIndication() {
  if (updateProblemIndication) {
    BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, "org.eclipse.triquetrum.workflow.model.editor", 0, null,
        new Object[] { editingDomain.getResourceSet() });
    for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
      if (childDiagnostic.getSeverity() != Diagnostic.OK) {
        diagnostic.add(childDiagnostic);
      }
    }

    int lastEditorPage = getPageCount() - 1;
    if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
      ((ProblemEditorPart) getEditor(lastEditorPage)).setDiagnostic(diagnostic);
      if (diagnostic.getSeverity() != Diagnostic.OK) {
        setActivePage(lastEditorPage);
      }
    } else if (diagnostic.getSeverity() != Diagnostic.OK) {
      ProblemEditorPart problemEditorPart = new ProblemEditorPart();
      problemEditorPart.setDiagnostic(diagnostic);
      try {
        addPage(++lastEditorPage, problemEditorPart, getEditorInput());
        setPageText(lastEditorPage, problemEditorPart.getPartName());
        setActivePage(lastEditorPage);
        showTabs();
      } catch (PartInitException exception) {
        TriquetrumEditorPlugin.INSTANCE.log(exception);
      }
    }
  }
}
 
開發者ID:eclipse,項目名稱:triquetrum,代碼行數:36,代碼來源:TriqEditor.java

示例2: updateProblemIndication

import org.eclipse.emf.common.ui.editor.ProblemEditorPart; //導入依賴的package包/類
/**
 * Updates the problems indication with the information described in the
 * specified diagnostic. <!-- begin-user-doc --> <!-- end-user-doc -->
 *
 * @generated
 */
protected void updateProblemIndication() {
	if (updateProblemIndication) {
		BasicDiagnostic diagnostic = new BasicDiagnostic(Diagnostic.OK, "org.mondo.wt.cstudy.metamodel.editor", 0,
				null, new Object[] { editingDomain.getResourceSet() });
		for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
			if (childDiagnostic.getSeverity() != Diagnostic.OK) {
				diagnostic.add(childDiagnostic);
			}
		}

		int lastEditorPage = getPageCount() - 1;
		if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
			((ProblemEditorPart) getEditor(lastEditorPage)).setDiagnostic(diagnostic);
			if (diagnostic.getSeverity() != Diagnostic.OK) {
				setActivePage(lastEditorPage);
			}
		} else if (diagnostic.getSeverity() != Diagnostic.OK) {
			ProblemEditorPart problemEditorPart = new ProblemEditorPart();
			problemEditorPart.setDiagnostic(diagnostic);
			try {
				addPage(++lastEditorPage, problemEditorPart, getEditorInput());
				setPageText(lastEditorPage, problemEditorPart.getPartName());
				setActivePage(lastEditorPage);
				showTabs();
			} catch (PartInitException exception) {
				WTSpec4MEditorPlugin.INSTANCE.log(exception);
			}
		}
	}
}
 
開發者ID:mondo-project,項目名稱:mondo-demo-wt,代碼行數:37,代碼來源:WTSpec4MEditor.java

示例3: updateProblemIndication

import org.eclipse.emf.common.ui.editor.ProblemEditorPart; //導入依賴的package包/類
/**
 * Updates the problems indication with the information described in the specified diagnostic.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void updateProblemIndication() {
	if (updateProblemIndication) {
		BasicDiagnostic diagnostic =
			new BasicDiagnostic
				(Diagnostic.OK,
				 "gov.nasa.ensemble.dictionary.editor",
				 0,
				 null,
				 new Object [] { editingDomain.getResourceSet() });
		for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
			if (childDiagnostic.getSeverity() != Diagnostic.OK) {
				diagnostic.add(childDiagnostic);
			}
		}

		int lastEditorPage = getPageCount() - 1;
		if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
			((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
			if (diagnostic.getSeverity() != Diagnostic.OK) {
				setActivePage(lastEditorPage);
			}
		}
		else if (diagnostic.getSeverity() != Diagnostic.OK) {
			ProblemEditorPart problemEditorPart = new ProblemEditorPart();
			problemEditorPart.setDiagnostic(diagnostic);
			try {
				addPage(++lastEditorPage, problemEditorPart, getEditorInput());
				setPageText(lastEditorPage, problemEditorPart.getPartName());
				setActivePage(lastEditorPage);
				showTabs();
			}
			catch (PartInitException exception) {
				DictionaryEditorPlugin.INSTANCE.log(exception);
			}
		}
	}
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:44,代碼來源:DictionaryEditor.java

示例4: updateProblemIndication

import org.eclipse.emf.common.ui.editor.ProblemEditorPart; //導入依賴的package包/類
/**
 * Updates the problems indication with the information described in the specified diagnostic.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void updateProblemIndication() {
	if (updateProblemIndication) {
		BasicDiagnostic diagnostic =
			new BasicDiagnostic
				(Diagnostic.OK,
				 "org.liquidbase.model.editor",
				 0,
				 null,
				 new Object [] { editingDomain.getResourceSet() });
		for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
			if (childDiagnostic.getSeverity() != Diagnostic.OK) {
				diagnostic.add(childDiagnostic);
			}
		}

		int lastEditorPage = getPageCount() - 1;
		if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
			((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
			if (diagnostic.getSeverity() != Diagnostic.OK) {
				setActivePage(lastEditorPage);
			}
		}
		else if (diagnostic.getSeverity() != Diagnostic.OK) {
			ProblemEditorPart problemEditorPart = new ProblemEditorPart();
			problemEditorPart.setDiagnostic(diagnostic);
			try {
				addPage(++lastEditorPage, problemEditorPart, getEditorInput());
				setPageText(lastEditorPage, problemEditorPart.getPartName());
				setActivePage(lastEditorPage);
				showTabs();
			}
			catch (PartInitException exception) {
				DbchangelogEditorPlugin.INSTANCE.log(exception);
			}
		}
	}
}
 
開發者ID:dzonekl,項目名稱:LiquibaseEditor,代碼行數:44,代碼來源:DbchangelogEditor.java

示例5: updateProblemIndication

import org.eclipse.emf.common.ui.editor.ProblemEditorPart; //導入依賴的package包/類
/**
 * Updates the problems indication with the information described in the specified diagnostic.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected void updateProblemIndication() {
	if (updateProblemIndication) {
		BasicDiagnostic diagnostic =
			new BasicDiagnostic
				(Diagnostic.OK,
				 "org.scaledl.overview.editor",
				 0,
				 null,
				 new Object [] { editingDomain.getResourceSet() });
		for (Diagnostic childDiagnostic : resourceToDiagnosticMap.values()) {
			if (childDiagnostic.getSeverity() != Diagnostic.OK) {
				diagnostic.add(childDiagnostic);
			}
		}

		int lastEditorPage = getPageCount() - 1;
		if (lastEditorPage >= 0 && getEditor(lastEditorPage) instanceof ProblemEditorPart) {
			((ProblemEditorPart)getEditor(lastEditorPage)).setDiagnostic(diagnostic);
			if (diagnostic.getSeverity() != Diagnostic.OK) {
				setActivePage(lastEditorPage);
			}
		}
		else if (diagnostic.getSeverity() != Diagnostic.OK) {
			ProblemEditorPart problemEditorPart = new ProblemEditorPart();
			problemEditorPart.setDiagnostic(diagnostic);
			try {
				addPage(++lastEditorPage, problemEditorPart, getEditorInput());
				setPageText(lastEditorPage, problemEditorPart.getPartName());
				setActivePage(lastEditorPage);
				showTabs();
			}
			catch (PartInitException exception) {
				OverviewEditorPlugin.INSTANCE.log(exception);
			}
		}
	}
}
 
開發者ID:CloudScale-Project,項目名稱:Environment,代碼行數:44,代碼來源:ArchitectureEditor.java


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