本文整理汇总了Java中org.eclipse.gmf.runtime.common.ui.services.parser.IParser类的典型用法代码示例。如果您正苦于以下问题:Java IParser类的具体用法?Java IParser怎么用?Java IParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IParser类属于org.eclipse.gmf.runtime.common.ui.services.parser包,在下文中一共展示了IParser类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getState_2001Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getState_2001Text(View view) {
IParser parser = StatemachineParserProvider.getParser(
StatemachineElementTypes.State_2001,
view.getElement() != null ? view.getElement() : view,
StatemachineVisualIDRegistry
.getType(StateNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
StatemachineDiagramEditorPlugin.getInstance().logError(
"Parser was not found for label " + 5001); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:20,代码来源:StatemachineNavigatorLabelProvider.java
示例2: getOR_3002Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getOR_3002Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.OR_3002,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.ORName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5015); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例3: getPool_2005Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getPool_2005Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.Pool_2005,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.PoolNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5005); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例4: getGroup_2009Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getGroup_2009Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.Group_2009,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.GroupNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5009); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例5: getLane_2004Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getLane_2004Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.Lane_2004,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.LaneNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5004); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例6: getAND_2003Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getAND_2003Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.AND_2003,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.ANDNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5003); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例7: getEndEvent_2012Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getEndEvent_2012Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.EndEvent_2012,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.EndEventNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5013); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例8: getPool_3005Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getPool_3005Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.Pool_3005,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.PoolName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5018); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例9: getAND_3003Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getAND_3003Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.AND_3003,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.ANDName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5016); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例10: getAssociation_4006Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getAssociation_4006Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.Association_4006,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.AssociationNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 6006); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例11: getStartEvent_2010Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getStartEvent_2010Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.StartEvent_2010,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.StartEventNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5011); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例12: getEndEvent_3008Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getEndEvent_3008Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.EndEvent_3008,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.EndEventName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5021); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例13: getEliminationMatch_2001Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getEliminationMatch_2001Text(View view) {
IParser parser = Wc2014ParserProvider.getParser(
Wc2014ElementTypes.EliminationMatch_2001,
view.getElement() != null ? view.getElement() : view,
Wc2014VisualIDRegistry
.getType(EliminationMatchIdEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
Wc2014DiagramEditorPlugin.getInstance().logError(
"Parser was not found for label " + 5001); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:20,代码来源:Wc2014NavigatorLabelProvider.java
示例14: getTeam_2002Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getTeam_2002Text(View view) {
IParser parser = Wc2014ParserProvider.getParser(
Wc2014ElementTypes.Team_2002,
view.getElement() != null ? view.getElement() : view,
Wc2014VisualIDRegistry.getType(TeamCountryEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
Wc2014DiagramEditorPlugin.getInstance().logError(
"Parser was not found for label " + 5002); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:19,代码来源:Wc2014NavigatorLabelProvider.java
示例15: getGroup_2003Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getGroup_2003Text(View view) {
IParser parser = Wc2014ParserProvider.getParser(
Wc2014ElementTypes.Group_2003,
view.getElement() != null ? view.getElement() : view,
Wc2014VisualIDRegistry
.getType(GroupGroupNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
Wc2014DiagramEditorPlugin.getInstance().logError(
"Parser was not found for label " + 5003); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:20,代码来源:Wc2014NavigatorLabelProvider.java
示例16: getStartEvent_3006Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getStartEvent_3006Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.StartEvent_3006,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.StartEventName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5019); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例17: getIntermediateEvent_3007Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getIntermediateEvent_3007Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.IntermediateEvent_3007,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.IntermediateEventName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5020); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例18: getOR_2002Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getOR_2002Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.OR_2002,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.ORNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5002); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例19: getXOR_2001Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getXOR_2001Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.XOR_2001,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.XORNameEditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5001); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
示例20: getDataObject_3010Text
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser; //导入依赖的package包/类
/**
* @generated
*/
private String getDataObject_3010Text(View view) {
IParser parser = SimpleBPMN.diagram.providers.SimpleBPMNParserProvider
.getParser(
SimpleBPMN.diagram.providers.SimpleBPMNElementTypes.DataObject_3010,
view.getElement() != null ? view.getElement() : view,
SimpleBPMN.diagram.part.SimpleBPMNVisualIDRegistry
.getType(SimpleBPMN.diagram.edit.parts.DataObjectName2EditPart.VISUAL_ID));
if (parser != null) {
return parser.getPrintString(new EObjectAdapter(
view.getElement() != null ? view.getElement() : view),
ParserOptions.NONE.intValue());
} else {
SimpleBPMN.diagram.part.SimpleBPMNDiagramEditorPlugin.getInstance()
.logError("Parser was not found for label " + 5023); //$NON-NLS-1$
return ""; //$NON-NLS-1$
}
}
开发者ID:bluezio,项目名称:simplified-bpmn-example,代码行数:21,代码来源:SimpleBPMNNavigatorLabelProvider.java
注:本文中的org.eclipse.gmf.runtime.common.ui.services.parser.IParser类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论