Class PathEnvironmentFactory
java.lang.Object
net.ssehub.easy.producer.eclipse.persistency.eclipse.PathEnvironmentFactory
Creates path environments in a generic way considering information from projects
such as relevant classpaths.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandles a certain type of project. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrevents this class from being instantiated from outside. -
Method Summary
Modifier and TypeMethodDescriptionstatic net.ssehub.easy.producer.core.persistence.datatypes.PathEnvironmentcreatePathEnvironment(org.eclipse.core.resources.IProject project) Creates a new path environment and takes project specific paths such as classpaths into account.static voidRegisters a project handler.static voidUnregisters a project handler.static voidupdatePathEnvironment(net.ssehub.easy.producer.core.persistence.datatypes.PathEnvironment pathEnv, org.eclipse.core.resources.IProject project) Updates a given path environment with data fromproject.
-
Field Details
-
handlers
-
-
Constructor Details
-
PathEnvironmentFactory
private PathEnvironmentFactory()Prevents this class from being instantiated from outside. [utility class/factory class]
-
-
Method Details
-
registerHandler
Registers a project handler.- Parameters:
handler- the handler to register
-
unregisterHandler
Unregisters a project handler.- Parameters:
handler- the handler to unregister
-
createPathEnvironment
public static net.ssehub.easy.producer.core.persistence.datatypes.PathEnvironment createPathEnvironment(org.eclipse.core.resources.IProject project) Creates a new path environment and takes project specific paths such as classpaths into account. CallsupdatePathEnvironment(PathEnvironment, IProject)on the new instance.- Parameters:
project- the project to build the path environment for (may be null)- Returns:
- the path environment
-
updatePathEnvironment
public static void updatePathEnvironment(net.ssehub.easy.producer.core.persistence.datatypes.PathEnvironment pathEnv, org.eclipse.core.resources.IProject project) Updates a given path environment with data fromproject. This method takes the registered instances ofPathEnvironmentFactory.IProjectHandlerinto account.- Parameters:
pathEnv- the path environment to updateproject- the project to be considered
-