org.eclipse.gmf.runtime.common.ui.services.parser.IParser Java Examples

The following examples show how to use org.eclipse.gmf.runtime.common.ui.services.parser.IParser. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getFieldNameType_5011Parser() {
	if (fieldNameType_5011Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getField_Name(),
				CrossflowPackage.eINSTANCE.getField_Type() };
		MessageFormatParser parser = new MessageFormatParser(features);
		parser.setViewPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditorPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditPattern("{0}:{1}"); //$NON-NLS-1$
		fieldNameType_5011Parser = parser;
	}
	return fieldNameType_5011Parser;
}
 
Example #2
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getTopic_2003Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.Topic_2003,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(TopicNameEditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5003); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #3
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getLanguage_2013Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.Language_2013,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(LanguageNameEditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5015); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #4
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getScriptedTask_2015Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.ScriptedTask_2015,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(ScriptedTaskNameEditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5017); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #5
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getField_3001Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.Field_3001,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(FieldNameType3EditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5011); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #6
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getParameter_3002Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.Parameter_3002,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(ParameterNameValueEditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5014); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #7
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getField_3003Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.Field_3003,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(FieldNameType2EditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5018); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #8
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getStreamType_4001Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.StreamType_4001,
			view.getElement() != null ? view.getElement() : view, CommonParserHint.DESCRIPTION);
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 6001); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #9
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getTaskOutput_4003Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.TaskOutput_4003,
			view.getElement() != null ? view.getElement() : view, CommonParserHint.DESCRIPTION);
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 6003); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #10
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getTypeExtending_4004Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.TypeExtending_4004,
			view.getElement() != null ? view.getElement() : view, CommonParserHint.DESCRIPTION);
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 6004); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #11
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getStreamInputOf_4005Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.StreamInputOf_4005,
			view.getElement() != null ? view.getElement() : view, CommonParserHint.DESCRIPTION);
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 6005); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #12
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getType_2011Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.Type_2011,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(TypeNameEditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5012); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #13
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
public IParser getParser(IAdaptable hint) {
	String vid = (String) hint.getAdapter(String.class);
	if (vid != null) {
		return getParser(CrossflowVisualIDRegistry.getVisualID(vid));
	}
	View view = (View) hint.getAdapter(View.class);
	if (view != null) {
		return getParser(CrossflowVisualIDRegistry.getVisualID(view));
	}
	return null;
}
 
Example #14
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected IParser getParser(int visualID) {
	switch (visualID) {
	case CsvSourceNameEditPart.VISUAL_ID:
		return getCsvSourceName_5001Parser();
	case CsvSinkNameEditPart.VISUAL_ID:
		return getCsvSinkName_5002Parser();
	case TopicNameEditPart.VISUAL_ID:
		return getTopicName_5003Parser();
	case QueueNameEditPart.VISUAL_ID:
		return getQueueName_5004Parser();
	case SourceNameEditPart.VISUAL_ID:
		return getSourceName_5005Parser();
	case SinkNameEditPart.VISUAL_ID:
		return getSinkName_5006Parser();
	case CommitmentTaskNameEditPart.VISUAL_ID:
		return getCommitmentTaskName_5007Parser();
	case OpinionatedTaskNameEditPart.VISUAL_ID:
		return getOpinionatedTaskName_5008Parser();
	case ScriptedTaskNameEditPart.VISUAL_ID:
		return getScriptedTaskName_5017Parser();
	case TaskNameEditPart.VISUAL_ID:
		return getTaskName_5010Parser();
	case TypeNameEditPart.VISUAL_ID:
		return getTypeName_5012Parser();
	case FieldNameTypeEditPart.VISUAL_ID:
		return getFieldNameType_5016Parser();
	case LanguageNameEditPart.VISUAL_ID:
		return getLanguageName_5015Parser();
	case FieldNameType2EditPart.VISUAL_ID:
		return getFieldNameType_5018Parser();
	case FieldNameType3EditPart.VISUAL_ID:
		return getFieldNameType_5011Parser();
	case ParameterNameValueEditPart.VISUAL_ID:
		return getParameterNameValue_5014Parser();
	}
	return null;
}
 
Example #15
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getParameterNameValue_5014Parser() {
	if (parameterNameValue_5014Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getParameter_Name(),
				CrossflowPackage.eINSTANCE.getParameter_Value() };
		MessageFormatParser parser = new MessageFormatParser(features);
		parser.setViewPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditorPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditPattern("{0}:{1}"); //$NON-NLS-1$
		parameterNameValue_5014Parser = parser;
	}
	return parameterNameValue_5014Parser;
}
 
Example #16
Source File: CrossflowNavigatorLabelProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private String getCsvSource_2001Text(View view) {
	IParser parser = CrossflowParserProvider.getParser(CrossflowElementTypes.CsvSource_2001,
			view.getElement() != null ? view.getElement() : view,
			CrossflowVisualIDRegistry.getType(CsvSourceNameEditPart.VISUAL_ID));
	if (parser != null) {
		return parser.getPrintString(new EObjectAdapter(view.getElement() != null ? view.getElement() : view),
				ParserOptions.NONE.intValue());
	} else {
		CrossflowDiagramEditorPlugin.getInstance().logError("Parser was not found for label " + 5001); //$NON-NLS-1$
		return ""; //$NON-NLS-1$
	}
}
 
Example #17
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getFieldNameType_5018Parser() {
	if (fieldNameType_5018Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getField_Name(),
				CrossflowPackage.eINSTANCE.getField_Type() };
		MessageFormatParser parser = new MessageFormatParser(features);
		parser.setViewPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditorPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditPattern("{0}:{1}"); //$NON-NLS-1$
		fieldNameType_5018Parser = parser;
	}
	return fieldNameType_5018Parser;
}
 
Example #18
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getLanguageName_5015Parser() {
	if (languageName_5015Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getLanguage_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		languageName_5015Parser = parser;
	}
	return languageName_5015Parser;
}
 
Example #19
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getFieldNameType_5016Parser() {
	if (fieldNameType_5016Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getField_Name(),
				CrossflowPackage.eINSTANCE.getField_Type() };
		MessageFormatParser parser = new MessageFormatParser(features);
		parser.setViewPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditorPattern("{0}:{1}"); //$NON-NLS-1$
		parser.setEditPattern("{0}:{1}"); //$NON-NLS-1$
		fieldNameType_5016Parser = parser;
	}
	return fieldNameType_5016Parser;
}
 
Example #20
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getTypeName_5012Parser() {
	if (typeName_5012Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getType_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		typeName_5012Parser = parser;
	}
	return typeName_5012Parser;
}
 
Example #21
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getTaskName_5010Parser() {
	if (taskName_5010Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		taskName_5010Parser = parser;
	}
	return taskName_5010Parser;
}
 
Example #22
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getScriptedTaskName_5017Parser() {
	if (scriptedTaskName_5017Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		scriptedTaskName_5017Parser = parser;
	}
	return scriptedTaskName_5017Parser;
}
 
Example #23
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getCommitmentTaskName_5007Parser() {
	if (commitmentTaskName_5007Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		commitmentTaskName_5007Parser = parser;
	}
	return commitmentTaskName_5007Parser;
}
 
Example #24
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getSinkName_5006Parser() {
	if (sinkName_5006Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		sinkName_5006Parser = parser;
	}
	return sinkName_5006Parser;
}
 
Example #25
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getSourceName_5005Parser() {
	if (sourceName_5005Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		sourceName_5005Parser = parser;
	}
	return sourceName_5005Parser;
}
 
Example #26
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getQueueName_5004Parser() {
	if (queueName_5004Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getStream_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		queueName_5004Parser = parser;
	}
	return queueName_5004Parser;
}
 
Example #27
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getTopicName_5003Parser() {
	if (topicName_5003Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getStream_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		topicName_5003Parser = parser;
	}
	return topicName_5003Parser;
}
 
Example #28
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getCsvSinkName_5002Parser() {
	if (csvSinkName_5002Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		csvSinkName_5002Parser = parser;
	}
	return csvSinkName_5002Parser;
}
 
Example #29
Source File: CrossflowParserProvider.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private IParser getCsvSourceName_5001Parser() {
	if (csvSourceName_5001Parser == null) {
		EAttribute[] features = new EAttribute[] { CrossflowPackage.eINSTANCE.getTask_Name() };
		MessageFormatParser parser = new MessageFormatParser(features);
		csvSourceName_5001Parser = parser;
	}
	return csvSourceName_5001Parser;
}
 
Example #30
Source File: OpinionatedTaskNameEditPart.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
public IParser getParser() {
	if (parser == null) {
		parser = CrossflowParserProvider.getParser(CrossflowElementTypes.OpinionatedTask_2008, getParserElement(),
				CrossflowVisualIDRegistry
						.getType(crossflow.diagram.edit.parts.OpinionatedTaskNameEditPart.VISUAL_ID));
	}
	return parser;
}