• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CreateDiagramViewOperation类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: validatePage

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean validatePage() {
	if (selectedModelElement == null) {
		setErrorMessage(Messages.SmcNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
		return false;
	}
	boolean result = ViewService.getInstance().provides(
			new CreateDiagramViewOperation(new EObjectAdapter(
					selectedModelElement), SystemEditPart.MODEL_ID,
					SmcDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
	setErrorMessage(result ? null
			: Messages.SmcNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
	return result;
}
 
开发者ID:road-framework,项目名称:ROADDesigner,代码行数:17,代码来源:SmcNewDiagramFileWizard.java


示例17: provides

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


示例18: provides

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean provides(CreateDiagramViewOperation op) {
	return SimpleBPMN.diagram.edit.parts.BusinessProcessDiagramEditPart.MODEL_ID
			.equals(op.getSemanticHint())
			&& SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
					.getDiagramVisualID(getSemanticElement(op
							.getSemanticAdapter())) != -1;
}
 
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:11,代码来源:SimpleBPMNViewProvider.java


示例19: provides

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
* @generated
*/
protected boolean provides(CreateDiagramViewOperation op) {
	return edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.edit.parts.SequenceDiagramEditPart.MODEL_ID
			.equals(op.getSemanticHint())
			&& edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.part.ICSE15_SequenceDiagram_MAVOVisualIDRegistry
					.getDiagramVisualID(getSemanticElement(op.getSemanticAdapter())) != -1;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:10,代码来源:ICSE15_SequenceDiagram_MAVOViewProvider.java


示例20: provides

import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation; //导入依赖的package包/类
/**
 * @generated
 */
protected boolean provides(CreateDiagramViewOperation op) {
	return edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.edit.parts.ClassDiagramEditPart.MODEL_ID
			.equals(op.getSemanticHint())
			&& edu.toronto.cs.se.modelepedia.necsis14_classdiagram.diagram.part.NECSIS14_ClassDiagramVisualIDRegistry
					.getDiagramVisualID(getSemanticElement(op
							.getSemanticAdapter())) != -1;
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:11,代码来源:NECSIS14_ClassDiagramViewProvider.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Effect类代码示例发布时间:2022-05-22
下一篇:
Java ParseException类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap