当前位置: 首页>>代码示例>>Java>>正文


Java CreateDiagramViewOperation类代码示例

本文整理汇总了Java中org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation的典型用法代码示例。如果您正苦于以下问题:Java CreateDiagramViewOperation类的具体用法?Java CreateDiagramViewOperation怎么用?Java CreateDiagramViewOperation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CreateDiagramViewOperation类属于org.eclipse.gmf.runtime.diagram.core.services.view包,在下文中一共展示了CreateDiagramViewOperation类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(Messages.StatemachineNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							StatemachineEditPart.MODEL_ID,
							StatemachineDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: Messages.StatemachineNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:20,代码来源:StatemachineNewDiagramFileWizard.java

示例2: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(Messages.Wc2014NewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							WorldCupEditPart.MODEL_ID,
							Wc2014DiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: Messages.Wc2014NewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:20,代码来源:Wc2014NewDiagramFileWizard.java

示例3: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(SimpleBPMN.diagram.part.Messages.SimpleBPMNNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							SimpleBPMN.diagram.edit.parts.BusinessProcessDiagramEditPart.MODEL_ID,
							SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: SimpleBPMN.diagram.part.Messages.SimpleBPMNNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:20,代码来源:SimpleBPMNNewDiagramFileWizard.java

示例4: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(
				edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.part.Messages.ICSE15_SequenceDiagram_MAVONewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance()
			.provides(new CreateDiagramViewOperation(new EObjectAdapter(
					getModelElement()),
			edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.edit.parts.SequenceDiagramEditPart.MODEL_ID,
			edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.part.ICSE15_SequenceDiagram_MAVODiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.part.Messages.ICSE15_SequenceDiagram_MAVONewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:19,代码来源:ICSE15_SequenceDiagram_MAVONewDiagramFileWizard.java

示例5: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.part.Messages.NECSIS14_ClassDiagramNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.edit.parts.ClassDiagramEditPart.MODEL_ID,
							edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.part.NECSIS14_ClassDiagramDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.part.Messages.NECSIS14_ClassDiagramNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:20,代码来源:NECSIS14_ClassDiagramNewDiagramFileWizard.java

示例6: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.part.Messages.NECSIS14_DatabaseSchemaNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.edit.parts.DatabaseSchemaEditPart.MODEL_ID,
							edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.part.NECSIS14_DatabaseSchemaDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.necsis14_databaseschema.diagram.part.Messages.NECSIS14_DatabaseSchemaNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:20,代码来源:NECSIS14_DatabaseSchemaNewDiagramFileWizard.java

示例7: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(
				edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.part.Messages.RelationalDatabase_MAVONewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance()
			.provides(new CreateDiagramViewOperation(new EObjectAdapter(
					getModelElement()),
			edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.edit.parts.RelationalDatabaseEditPart.MODEL_ID,
			edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.part.RelationalDatabase_MAVODiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.relationaldatabase_mavo.diagram.part.Messages.RelationalDatabase_MAVONewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:19,代码来源:RelationalDatabase_MAVONewDiagramFileWizard.java

示例8: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (selectedModelElement == null) {
		setErrorMessage(Messages.RelationalDatabaseNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(selectedModelElement),
							RelationalDatabaseEditPart.MODEL_ID,
							RelationalDatabaseDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: Messages.RelationalDatabaseNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:20,代码来源:RelationalDatabaseNewDiagramFileWizard.java

示例9: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(
				edu.toronto.cs.se.modelepedia.istar_mavo.diagram.part.Messages.IStar_MAVONewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance()
			.provides(new CreateDiagramViewOperation(new EObjectAdapter(
					getModelElement()),
			edu.toronto.cs.se.modelepedia.istar_mavo.diagram.edit.parts.IStarEditPart.MODEL_ID,
			edu.toronto.cs.se.modelepedia.istar_mavo.diagram.part.IStar_MAVODiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.istar_mavo.diagram.part.Messages.IStar_MAVONewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:19,代码来源:IStar_MAVONewDiagramFileWizard.java

示例10: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(Messages.StateMachineNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							StateMachineEditPart.MODEL_ID,
							StateMachineDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: Messages.StateMachineNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:20,代码来源:StateMachineNewDiagramFileWizard.java

示例11: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(
				edu.toronto.cs.se.modelepedia.statemachine_mavo.diagram.part.Messages.StateMachine_MAVONewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance()
			.provides(new CreateDiagramViewOperation(new EObjectAdapter(
					getModelElement()),
			edu.toronto.cs.se.modelepedia.statemachine_mavo.diagram.edit.parts.StateMachineEditPart.MODEL_ID,
			edu.toronto.cs.se.modelepedia.statemachine_mavo.diagram.part.StateMachine_MAVODiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.statemachine_mavo.diagram.part.Messages.StateMachine_MAVONewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:19,代码来源:StateMachine_MAVONewDiagramFileWizard.java

示例12: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(Messages.EconomyNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService
			.getInstance()
			.provides(
					new CreateDiagramViewOperation(
							new EObjectAdapter(getModelElement()),
							EconomyEditPart.MODEL_ID,
							EconomyDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: Messages.EconomyNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:20,代码来源:EconomyNewDiagramFileWizard.java

示例13: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(
				edu.toronto.cs.se.modelepedia.classdiagram_mavo.diagram.part.Messages.ClassDiagram_MAVONewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance()
			.provides(new CreateDiagramViewOperation(new EObjectAdapter(
					getModelElement()),
			edu.toronto.cs.se.modelepedia.classdiagram_mavo.diagram.edit.parts.ClassDiagramEditPart.MODEL_ID,
			edu.toronto.cs.se.modelepedia.classdiagram_mavo.diagram.part.ClassDiagram_MAVODiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.classdiagram_mavo.diagram.part.Messages.ClassDiagram_MAVONewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:19,代码来源:ClassDiagram_MAVONewDiagramFileWizard.java

示例14: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean validatePage() {
	if (getModelElement() == null) {
		setErrorMessage(
				edu.toronto.cs.se.modelepedia.graph_mavo.diagram.part.Messages.Graph_MAVONewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance()
			.provides(new CreateDiagramViewOperation(new EObjectAdapter(
					getModelElement()),
			edu.toronto.cs.se.modelepedia.graph_mavo.diagram.edit.parts.GraphEditPart.MODEL_ID,
			edu.toronto.cs.se.modelepedia.graph_mavo.diagram.part.Graph_MAVODiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: edu.toronto.cs.se.modelepedia.graph_mavo.diagram.part.Messages.Graph_MAVONewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:19,代码来源:Graph_MAVONewDiagramFileWizard.java

示例15: provides

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean provides(CreateDiagramViewOperation op) {
	return StatemachineEditPart.MODEL_ID.equals(op.getSemanticHint())
			&& StatemachineVisualIDRegistry
					.getDiagramVisualID(getSemanticElement(op
							.getSemanticAdapter())) != -1;
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:10,代码来源:StatemachineViewProvider.java


注:本文中的org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。