本文整理汇总了Java中org.eclipse.gmf.runtime.common.ui.services.parser.ParserService类的典型用法代码示例。如果您正苦于以下问题:Java ParserService类的具体用法?Java ParserService怎么用?Java ParserService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParserService类属于org.eclipse.gmf.runtime.common.ui.services.parser包,在下文中一共展示了ParserService类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Method getParser.
*
* @return IParser
*/
private IParser getParser() {
if (parser == null) {
if (referenceAdapter != null
&& referenceAdapter.getAdapter(EObject.class) != null) {
parser = ParserService.getInstance()
.getParser(referenceAdapter);
}
}
return parser;
}
示例2: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Returns the parser.
*
* @return the parser.
*/
private IParser getParser() {
if (parser == null) {
if (referenceAdapter != null
&& referenceAdapter.getAdapter(EObject.class) != null) {
parser = ParserService.getInstance()
.getParser(referenceAdapter);
}
}
return parser;
}
示例3: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Utility method that consults ParserService
* @generated
*/
public static IParser getParser(IElementType type, EObject object,
String parserHint) {
return ParserService.getInstance().getParser(
new HintAdapter(type, object, parserHint));
}
示例4: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Utility method that consults ParserService
* @generated
*/
public static IParser getParser(IElementType type, EObject object,
String parserHint) {
return ParserService.getInstance().getParser(
new HintAdapter(type, object, parserHint));
}
示例5: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Utility method that consults ParserService
* @generated
*/
public static IParser getParser(IElementType type, EObject object, String parserHint) {
return ParserService.getInstance().getParser(new HintAdapter(type, object, parserHint));
}
示例6: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Utility method that consults ParserService
* @generated
*/
public static IParser getParser(IElementType type, EObject object, String parserHint) {
return ParserService.getInstance().getParser(new HintAdapter(type, object, parserHint));
}
示例7: getParser
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService; //导入依赖的package包/类
/**
* Utility method that consults ParserService
* @generated
*/
public static IParser getParser(IElementType type, EObject object, String parserHint) {
return ParserService.getInstance().getParser(new HintAdapter(type, object, parserHint));
}