|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.support.AbstractArgumentChecker
org.schmant.project.eclipse.EclipseWorkspaceSettings
public class EclipseWorkspaceSettings
This object contains settings that are used when creating an
EclipseWorkspace
object.
Much workspace metadata can be parsed from its metadata files. This object may contain extra information that the project parser cannot figure out by itself. If values in this object conflict with parsed values, this object's values takes precedence.
Constructor Summary | |
---|---|
EclipseWorkspaceSettings()
|
Method Summary | |
---|---|
EclipseWorkspaceSettings |
addClasspathVariable(String name,
Object value)
Add one classpath workspace variable. |
EclipseWorkspaceSettings |
addClasspathVariables(Map<String,?> variables)
Add all classpath variables in the supplied Map . |
EclipseWorkspaceSettings |
addLibraries(Map<String,? extends Library> m)
Add all supplied user libraries. |
EclipseWorkspaceSettings |
addLibrary(String name,
Library lib)
Add one user-defined library. |
EclipseWorkspaceSettings |
addProjectDirectories(Object o)
Add one or several project directories. |
EclipseWorkspaceSettings |
addProjectDirectory(Object o)
Add one project directory. |
Map<String,Object> |
getClasspathVariables()
Get all classpath variables that have been added to this object. |
Map<String,Library> |
getLibraries()
Get all user-defined libraries. |
List<Object> |
getProjectDirectories()
Get all user-defined project directories. |
boolean |
isDontAutodetectProjectDirectories()
Is project directory autodetection disabled? |
EclipseWorkspaceSettings |
setDontAutodetectProjectDirectories(boolean b)
If this is enabled, the EclipseWorkspaceInfoCollector will not
try to autodetect project directories in the workspace directory. |
Methods inherited from class org.schmant.support.AbstractArgumentChecker |
---|
check, check, check, check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EclipseWorkspaceSettings()
Method Detail |
---|
public EclipseWorkspaceSettings addClasspathVariable(String name, Object value)
Classpath variables are normally parsed from the workspace metadata, so there should not be any need to add them manually if they are to have the same values as they have in the workspace.
name
- The name of the classpath variable.value
- The classpath variable value.
this
addClasspathVariables(Map)
public EclipseWorkspaceSettings addClasspathVariables(Map<String,?> variables)
Map
.
Classpath variables are normally parsed from the workspace metadata, so there should not be any need to add them manually if they are to have the same values as they have in the workspace.
variables
- A mapping between classpath variable names and their values.
this
addClasspathVariable(String, Object)
public Map<String,Object> getClasspathVariables()
public EclipseWorkspaceSettings addLibrary(String name, Library lib)
null
,
the library will be ignored.
name
- The name of the library, as it occurs in an Eclipse project's
.classpath
file. This name includes a prefix such as org.eclipse.jdt.USER_LIBRARY
. The name for the user-defined library
MyLib
will be org.eclipse.jdt.USER_LIBRARY/MyLib
lib
- The library. This may be set to null
to tell the
workspace object to ignore the library.
this
addLibraries(Map)
public EclipseWorkspaceSettings addLibraries(Map<String,? extends Library> m)
Map
may contain null
values. Libraries with null
values are ignored by the workspace
object.
m
- A mapping between library names and the libraries. The values
may be null
. Libraries with null
values are ignored by
the workspace object.
this
addLibrary(String, Library)
public Map<String,Library> getLibraries()
public EclipseWorkspaceSettings addProjectDirectory(Object o)
EclipseWorkspaceInfoCollector
.)
o
- The project directory.
this
addProjectDirectories(Object)
,
setDontAutodetectProjectDirectories(boolean)
public EclipseWorkspaceSettings addProjectDirectories(Object o)
EclipseWorkspaceInfoCollector
.)
o
- The project directories. This may be a collection or an array.
The list is flattened using FlatteningList
.
this
addProjectDirectory(Object)
,
setDontAutodetectProjectDirectories(boolean)
public List<Object> getProjectDirectories()
public EclipseWorkspaceSettings setDontAutodetectProjectDirectories(boolean b)
EclipseWorkspaceInfoCollector
will not
try to autodetect project directories in the workspace directory. Then
all project directories have to be added manually to this object.
b
- Should project directory autodetection be disabled?
this
addProjectDirectories(Object)
,
addProjectDirectory(Object)
public boolean isDontAutodetectProjectDirectories()
true
if project directory autodetection is disabled.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |