本文整理了Java中org.eclipse.emf.common.util.URI.isPlatformPlugin()
方法的一些代码示例,展示了URI.isPlatformPlugin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.isPlatformPlugin()
方法的具体详情如下:
包路径:org.eclipse.emf.common.util.URI
类名称:URI
方法名:isPlatformPlugin
[英]Returns true
if this is a platform plug-in URI, that is, a #isPlatform whose first segment is "plugin"; false
is returned otherwise.
[中]
代码示例来源:origin: fr.inria.atlanmod.neoemf/neoemf-core
@Override
public boolean isPlatformPlugin() {
return internalUri.isPlatformPlugin();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.common
@Override
public boolean isPlatformPlugin()
{
return uri.isPlatformPlugin();
}
代码示例来源:origin: atlanmod/NeoEMF
@Override
public boolean isPlatformPlugin() {
return base.isPlatformPlugin();
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.workbench.fx
@Override
public boolean isPlatformPlugin() {
return this.uri.isPlatformPlugin();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.e4.ui.workbench
if (timestamp instanceof Long) {
appLastModified = ((Long) timestamp).longValue();
} else if (applicationDefinitionInstance.isPlatformPlugin()) {
try {
java.net.URL url = new java.net.URL(applicationDefinitionInstance.toString());
代码示例来源:origin: io.sarl.lang/io.sarl.lang
return false;
if (uri.isPlatformResource() || uri.isPlatformPlugin()) {
segments.remove(0);
代码示例来源:origin: com.reprezen.rapidml/com.reprezen.rapidml.model
if (baseURI.isPlatformPlugin() || baseURI.isPlatformResource()) {
realizationUri = URI.createURI(getUri(), true).resolve(baseURI);
} else {
代码示例来源:origin: com.reprezen.rapidml/com.reprezen.rapidml
if (baseURI.isPlatformPlugin() || baseURI.isPlatformResource()) {
uri = URI.createURI(location.getUri(), true).resolve(baseURI);
} else {
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
if (uri.isPlatformPlugin())
if (uri.isPlatformPlugin())
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
if (uri.isPlatformPlugin())
if (uri.isPlatformPlugin())
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.converter
/**
* Returns the label of a given object.
*/
protected String getLabel(Object object, String defaultText)
{
if (object instanceof GenModel)
{
GenModel genModel = (GenModel)object;
Resource resource = genModel.eResource();
URI uri = resource != null ? resource.getURI() : null;
if (uri != null)
{
String location = uri.toString();
boolean plugin = uri.isPlatformPlugin();
if (plugin || uri.isPlatformResource())
{
String path = uri.toPlatformString(true);
location = ConverterPlugin.INSTANCE.getString(plugin ? "_UI_PlatformPlugin_label" : "_UI_PlatformResource_label", new String[]{path});
}
return ConverterPlugin.INSTANCE.getString("_UI_ReferencedGenModel_label", new Object [] { defaultText, location });
}
}
else if (object instanceof GenPackage)
{
return getLabel((GenPackage)object);
}
return defaultText;
}
代码示例来源:origin: eclipse/acceleo
if (uri.isPlatformPlugin()) {
final String bundleName = uri.segment(1);
final Bundle bundle = Platform.getBundle(bundleName);
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.converter
if ("xcore".equals(genModelURI.fileExtension()) && genModelURI.isPlatformPlugin())
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.codegen
else if (templateURI.isPlatformPlugin())
代码示例来源:origin: org.eclipse/org.eclipse.emf.codegen
else if (templateURI.isPlatformPlugin())
内容来源于网络,如有侵权,请联系作者删除!