org.eclipse.emf.common.CommonPlugin Java Examples

The following examples show how to use org.eclipse.emf.common.CommonPlugin. 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: EipModelWizard.java    From eip-designer with Apache License 2.0 6 votes vote down vote up
/**
   * Returns the names of the types that can be created as the root object.
   * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
   * @generated
   */
protected Collection<String> getInitialObjectNames() {
     if (initialObjectNames == null) {
        initialObjectNames = new ArrayList<String>();
        for (EClassifier eClassifier : eipPackage.getEClassifiers()) {
           if (eClassifier instanceof EClass) {
              EClass eClass = (EClass)eClassifier;
              if (!eClass.isAbstract()) {
                 initialObjectNames.add(eClass.getName());
              }
           }
        }
        Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
     }
     return initialObjectNames;
  }
 
Example #2
Source File: BeansModelWizard.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 6 votes vote down vote up
/**
 * Returns the names of the features representing global elements.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
	if (initialObjectNames == null) {
		initialObjectNames = new ArrayList<String>();
		for (EStructuralFeature eStructuralFeature : ExtendedMetaData.INSTANCE.getAllElements(ExtendedMetaData.INSTANCE.getDocumentRoot(beansPackage))) {
			if (eStructuralFeature.isChangeable()) {
				EClassifier eClassifier = eStructuralFeature.getEType();
				if (eClassifier instanceof EClass) {
					EClass eClass = (EClass)eClassifier;
					if (!eClass.isAbstract()) {
						initialObjectNames.add(eStructuralFeature.getName());
					}
				}
			}
		}
		Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
	}
	return initialObjectNames;
}
 
Example #3
Source File: GenconfModelWizard.java    From M2Doc with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
    if (initialObjectNames == null) {
        initialObjectNames = new ArrayList<String>();
        for (EClassifier eClassifier : genconfPackage.getEClassifiers()) {
            if (eClassifier instanceof EClass) {
                EClass eClass = (EClass) eClassifier;
                if (!eClass.isAbstract()) {
                    initialObjectNames.add(eClass.getName());
                }
            }
        }
        Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
    }
    return initialObjectNames;
}
 
Example #4
Source File: CrossflowModelWizard.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
	if (initialObjectNames == null) {
		initialObjectNames = new ArrayList<String>();
		for (EClassifier eClassifier : crossflowPackage.getEClassifiers()) {
			if (eClassifier instanceof EClass) {
				EClass eClass = (EClass)eClassifier;
				if (!eClass.isAbstract()) {
					initialObjectNames.add(eClass.getName());
				}
			}
		}
		Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
	}
	return initialObjectNames;
}
 
Example #5
Source File: ConfigurationModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the features representing global elements.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EStructuralFeature eStructuralFeature : ExtendedMetaData.INSTANCE.getAllElements ( ExtendedMetaData.INSTANCE.getDocumentRoot ( configurationPackage ) ) )
        {
            if ( eStructuralFeature.isChangeable () )
            {
                EClassifier eClassifier = eStructuralFeature.getEType ();
                if ( eClassifier instanceof EClass )
                {
                    EClass eClass = (EClass)eClassifier;
                    if ( !eClass.isAbstract () )
                    {
                        initialObjectNames.add ( eStructuralFeature.getName () );
                    }
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #6
Source File: ItemModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : itemPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #7
Source File: ComponentModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : componentPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #8
Source File: GlobalizeModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : globalizePackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #9
Source File: SecurityModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : securityPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #10
Source File: InfrastructureModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : infrastructurePackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #11
Source File: WorldModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( this.initialObjectNames == null )
    {
        this.initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : this.worldPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    this.initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( this.initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return this.initialObjectNames;
}
 
Example #12
Source File: ProfileModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : profilePackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #13
Source File: SetupModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : setupPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #14
Source File: DeploymentModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : deploymentPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #15
Source File: CoreModelWizard.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
	if (initialObjectNames == null) {
		initialObjectNames = new ArrayList<String>();
		for (EClassifier eClassifier : corePackage.getEClassifiers()) {
			if (eClassifier instanceof EClass) {
				EClass eClass = (EClass) eClassifier;
				if (!eClass.isAbstract()) {
					initialObjectNames.add(eClass.getName());
				}
			}
		}
		Collections.sort(initialObjectNames,
				CommonPlugin.INSTANCE.getComparator());
	}
	return initialObjectNames;
}
 
Example #16
Source File: DetailViewModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : detailViewPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #17
Source File: ExtensionsModelWizard.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames() {
	if (initialObjectNames == null) {
		initialObjectNames = new ArrayList<String>();
		for (EClassifier eClassifier : extensionsPackage.getEClassifiers()) {
			if (eClassifier instanceof EClass) {
				EClass eClass = (EClass)eClassifier;
				if (!eClass.isAbstract()) {
					initialObjectNames.add(eClass.getName());
				}
			}
		}
		Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
	}
	return initialObjectNames;
}
 
Example #18
Source File: ProtocolModelWizard.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( initialObjectNames == null )
    {
        initialObjectNames = new ArrayList<String> ();
        for ( EClassifier eClassifier : protocolPackage.getEClassifiers () )
        {
            if ( eClassifier instanceof EClass )
            {
                EClass eClass = (EClass)eClassifier;
                if ( !eClass.isAbstract () )
                {
                    initialObjectNames.add ( eClass.getName () );
                }
            }
        }
        Collections.sort ( initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return initialObjectNames;
}
 
Example #19
Source File: TxtUMLExporter.java    From txtUML with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Creates a Visualizer with the correct settings
 * 
 * @param layoutDescriptor
 * @return The Visualizer
 */
public PapyrusVisualizer createVisualizer(TxtUMLLayoutDescriptor layoutDescriptor) {
	URI umlFileURI = URI.createFileURI(projectName + "/" + this.outputFolder + "/" + this.txtUMLModelName + ".uml");
	URI UmlFileResURI = CommonPlugin.resolve(umlFileURI);
	IFile UmlFile = ResourcesPlugin.getWorkspace().getRoot()
			.getFile(new org.eclipse.core.runtime.Path(UmlFileResURI.toFileString()));

	PapyrusVisualizer pv = new PapyrusVisualizer(projectName, this.outputFolder + "/" + this.txtUMLModelName,
			UmlFile.getRawLocationURI().toString(), layoutDescriptor);
	return pv;
}
 
Example #20
Source File: Bpmn2ResourceImpl.java    From fixflow with Apache License 2.0 5 votes vote down vote up
/**
 * Used from the <extension><definition> tag to load referenced extension schemes.
 * The extension scheme will be loaded and converted to EMF Ecore on the fly.
 * 
 * @param id
 */
private EObject loadExtensionSchema(QName xsdQname) {
    EPackage extensionPackage = extendedMetaData.getPackage(xsdQname.getNamespaceURI());
    if (extensionPackage == null) {

        try {
            @SuppressWarnings("unchecked")
            Class<XSDEcoreBuilder> theXSDEcoreBuilderClass = (Class<XSDEcoreBuilder>) CommonPlugin
                    .loadClass("org.eclipse.xsd", "org.eclipse.xsd.ecore.XSDEcoreBuilder");

            Constructor<XSDEcoreBuilder> theXSDEcoreBuilderConstructor = theXSDEcoreBuilderClass
                    .getConstructor(new Class[] { ExtendedMetaData.class, Map.class });
            Field theOptionField = theXSDEcoreBuilderClass
                    .getField("OPTION_REUSE_REGISTERED_PACKAGES");
            Object theXsdOption = theOptionField.get(null);

            URI location = urisToLocations.get(xsdQname.getNamespaceURI());
            Map<Object, Object> options = new HashMap<Object, Object>();
            options.put(theXsdOption, Boolean.TRUE);
            XSDEcoreBuilder builder = theXSDEcoreBuilderConstructor.newInstance(
                    extendedMetaData, options);
            builder.generate(location);
        } catch (Exception e) {
        }
    }

    return extendedMetaData.getElement(xsdQname.getNamespaceURI(), xsdQname.getLocalPart());
}
 
Example #21
Source File: TxtUMLExporter.java    From txtUML with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Closes the editor and deletes the files that have the same name as the
 * generated ones will have
 * 
 * @throws CoreException
 *             if this method fails. Reasons include:
 *             <ul>
 *             <li>This resource could not be deleted for some reason.</li>
 *             <li>This resource or one of its descendents is out of sync
 *             with the local file system and force is false.</li>
 *             <li>Resource changes are disallowed during certain types of
 *             resource change event notification. See IResourceChangeEvent
 *             for more details.</li>
 *             </ul>
 */
public void cleanBeforeVisualization() throws CoreException, IOException {

	// TODO: Has to be separated so that Papyrus and JointJS resources can
	// be deleted separately
	String projectAbsLocation = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName).getLocation()
			.toFile().getAbsolutePath();

	Path modelFolderPath = Paths.get(projectAbsLocation, this.outputFolder, "js", this.txtUMLModelName);
	Path umlFilePath = Paths.get(projectAbsLocation, this.outputFolder, this.txtUMLModelName + ".uml");
	Path profileFilePath = Paths.get(projectAbsLocation, this.outputFolder, this.txtUMLModelName + ".profile.uml");
	Path mappingFilePath = Paths.get(projectAbsLocation, this.outputFolder, this.txtUMLModelName + ".mapping");
	Path diFilePath = Paths.get(projectAbsLocation, this.outputFolder, this.txtUMLModelName + ".notation");
	Path notationFilePath = Paths.get(projectAbsLocation, this.outputFolder, this.txtUMLModelName + ".di");

	Path htmlFilePath = Paths.get(modelFolderPath.toString(), "visualize.html");
	URI htmlFileURI = URI.createFileURI(htmlFilePath.toString());

	IFile htmlFile = ResourcesPlugin.getWorkspace().getRoot()
			.getFile(new org.eclipse.core.runtime.Path(CommonPlugin.resolve(htmlFileURI).toFileString()));

	IEditorInput input = new FileEditorInput(htmlFile);

	IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findEditor(input);
	if (editor != null) {
		PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeEditor(editor, false);
	}

	deleteFolderRecursively(modelFolderPath);

	profileFilePath.toFile().delete();
	mappingFilePath.toFile().delete();
	umlFilePath.toFile().delete();
	diFilePath.toFile().delete();
	notationFilePath.toFile().delete();
}
 
Example #22
Source File: URIUtils.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
/** Converts any emf URI to a file URI */
public static URI toFileUri(URI rUri) {
	URI fileUri = rUri;
	if (!rUri.isFile()) {
		fileUri = CommonPlugin.resolve(rUri);
	}
	return addEmptyAuthority(fileUri);
}
 
Example #23
Source File: PapyrusModelCreator.java    From txtUML with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Gets an IFile from the given String path
 * @param path - The path of the File
 * @return - The File
 */
private IFile fileFromPath(String path){
	URI FileURI =  URI.createFileURI(path);
	URI resolvedFile = CommonPlugin.resolve(FileURI);
	IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(resolvedFile.toFileString()));
	return file;
}
 
Example #24
Source File: RecipeModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( this.initialObjectNames == null )
    {
        this.initialObjectNames = new ArrayList<String> ();
        this.initialObjectNames.add ( RecipePackage.Literals.DEFINITION.getName () );
        Collections.sort ( this.initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return this.initialObjectNames;
}
 
Example #25
Source File: VisualInterfaceModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( this.initialObjectNames == null )
    {
        this.initialObjectNames = new ArrayList<String> ();
        this.initialObjectNames.add ( VisualInterfacePackage.Literals.SYMBOL.getName () );
        Collections.sort ( this.initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return this.initialObjectNames;
}
 
Example #26
Source File: ChartModelWizard.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Returns the names of the types that can be created as the root object.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
protected Collection<String> getInitialObjectNames ()
{
    if ( this.initialObjectNames == null )
    {
        this.initialObjectNames = new ArrayList<String> ();
        this.initialObjectNames.add ( ChartPackage.Literals.CHART.getName () );
        Collections.sort ( this.initialObjectNames, CommonPlugin.INSTANCE.getComparator () );
    }
    return this.initialObjectNames;
}
 
Example #27
Source File: NpmCLI.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
/** See {@link NodeYarnProcessBuilder#isYarnUsed(Path)}. */
public boolean isYarnUsed(SafeURI<?> safeURI) {
	URI projectURI = safeURI.toURI();
	// convert platform URI to local (e.g. file) URI
	URI projectFileURI = projectURI.isFile() ? projectURI : CommonPlugin.asLocalURI(projectURI);
	File projectFile = URIUtils.toFile(projectFileURI).getAbsoluteFile();
	return isYarnUsed(projectFile);
}