Class EclipseProjectByClassRegistration
- java.lang.Object
-
- tools.mdsd.library.standalone.initialization.core.EclipseProjectByClassRegistration
-
- All Implemented Interfaces:
InitializationTask
public class EclipseProjectByClassRegistration extends Object implements InitializationTask
This Initialization Task allows to register the eclipse project which encloses a given class. The task looks for Eclipse Project files (".project") files and Jar-File Manifests ("META-INF/MANIFEST.MF"). It should be added to a Standalone Initialization sequence throughStandaloneInitializerBuilder.addCustomTask(InitializationTask)
.
-
-
Constructor Summary
Constructors Constructor Description EclipseProjectByClassRegistration(Class<?> clazz)
Creates a new instance of the initialization task.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initilizationWithoutPlatform()
Performs an initialization if running outside of Eclipse.protected static Map<String,File>
tryFindProjectContaining(Class<?> clz)
-
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
-
-
-
-
Constructor Detail
-
EclipseProjectByClassRegistration
public EclipseProjectByClassRegistration(Class<?> clazz)
Creates a new instance of the initialization task.- Parameters:
clazz
- the class which is used to look up the enclosing project. Therefore, it needs to be located on the file system.
-
-
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.
-
tryFindProjectContaining
protected static Map<String,File> tryFindProjectContaining(Class<?> clz) throws StandaloneInitializationException
-
-