|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.AbstractArgumentChecker org.schmant.project.intellij.IntelliJWorkspaceSettings
public class IntelliJWorkspaceSettings
This object contains configuration used when building an
IntelliJWorkspace
object.
Most of the workspace configuration is parsed from its ipr
and
iml
files. This object contains information that cannot be parsed
from them.
Constructor Summary | |
---|---|
IntelliJWorkspaceSettings()
|
Method Summary | |
---|---|
IntelliJWorkspaceSettings |
addGlobalLibraries(Map<String,? extends Library> m)
Add all global libraries in the supplied Map . |
IntelliJWorkspaceSettings |
addGlobalLibrary(String name,
Library lib)
Add one global library definition. |
DirectoryView |
getApplicationHomeDirectory()
Get the IntelliJ IDEA installation directory. |
Map<String,Library> |
getGlobalLibraries()
Get all global libraries. |
IntelliJWorkspaceSettings |
setApplicationHomeDirectory(Object appHomeDir)
Set the IntelliJ IDEA installation 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 IntelliJWorkspaceSettings()
Method Detail |
---|
public IntelliJWorkspaceSettings setApplicationHomeDirectory(Object appHomeDir)
If no IDEA installation is available, the supplied directory may be a directory containing all IntelliJ-supplied libraries used by the workspace in the locations where they are expected. (Those locations should be possible to derive from the error messages that are logged if the workspace is missing library files.)
appHomeDir
- The installation directory. This argument is
interpreted by
InterpretAsReadOnlyDirectoryStrategy
.
If the argument is a DirectoryRepresentation
, its
filter is ignored.
this
.public DirectoryView getApplicationHomeDirectory()
public IntelliJWorkspaceSettings addGlobalLibrary(String name, Library lib)
The library may be set to null
if the workspace should ignore it.
name
- The name of the library.lib
- The library. This may be null
if the workspace should
ignore the library.
this
public IntelliJWorkspaceSettings addGlobalLibraries(Map<String,? extends Library> m)
Map
.
The Map
may contain null
values. The workspace object
will ignore all null
:ed libraries.
m
- The global library map
this
public Map<String,Library> getGlobalLibraries()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |