Class ProjectURIByClasspathRegistration
- java.lang.Object
-
- tools.mdsd.library.standalone.initialization.impl.ProjectURIByClasspathRegistration
-
- All Implemented Interfaces:
InitializationTask
public class ProjectURIByClasspathRegistration extends Object implements InitializationTask
Registers URIs in the EMF platform for a given project. After the registration, platform resource and platform plugin URIs can properly be resolved for this project. The location of the project is determined by a class of this project and a root folder name.
-
-
Constructor Summary
Constructors Constructor Description ProjectURIByClasspathRegistration(Class<?> classOfProject, String projectName, String projectRootFolderName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Optional<File>
getProjectLocation(Class<?> clz, String projectRootFolderName)
Determine the location of a project from a given class.void
initilizationWithoutPlatform()
Performs an initialization if running outside of Eclipse.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tools.mdsd.library.standalone.initialization.InitializationTask
init, initializationWithPlatform, isPlatformRunning
-
-
-
-
Method Detail
-
initilizationWithoutPlatform
public void initilizationWithoutPlatform() throws StandaloneInitializationException
Description copied from interface:InitializationTask
Performs an initialization if running outside of Eclipse.- Specified by:
initilizationWithoutPlatform
in interfaceInitializationTask
- Throws:
StandaloneInitializationException
- In case of an error during the initialization.
-
getProjectLocation
protected static Optional<File> getProjectLocation(Class<?> clz, String projectRootFolderName)
Determine the location of a project from a given class.- Parameters:
clz
- The class to derive the project path from.projectRootFolderName
- The name of the root folder to get the absolute path for.- Returns:
- Location of the project root.
-
-