public class ProjectPropertyStore
extends PreferenceStore
Store for saving all project related preferences.
The properties will be stored using the file defined by the
constant PROJECT_PROPERTY_STORE_FILE
. The file will be
created for each project automatically.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
P_PRJ_PROP_DATA_FOLDER |
static java.lang.String |
P_PRJ_PROP_INCLUDE_FOLDER |
static java.lang.String |
P_PRJ_PROP_INICOMMANDLINE |
static java.lang.String |
P_PRJ_PROP_LIB_PATH |
static java.lang.String |
P_PRJ_PROP_OUTPUT_FOLDER |
static java.lang.String |
P_PRJ_PROP_SCENE_FOLDER |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandLine(java.lang.String iniFile) |
static java.lang.String |
getDefaultIncludePath(java.lang.String executeablePath) |
java.util.List<java.lang.String> |
getDefaultLibraryPath(java.util.List<java.lang.String> lstLibPath)
If the given List does not include the default entries these will be included.
|
java.util.List<java.lang.String> |
getLibraryPath() |
java.util.List<java.lang.String> |
getLibraryPathIncludingBaseFolder(java.io.File folder) |
java.util.List<java.lang.String> |
getLibraryPathIncludingBaseFolderForFile(java.io.File file) |
static ProjectPropertyStore |
getProjectPropertyStore(IProject project)
Gets an
ProjectPropertyStore instance related to a specific
project. |
static boolean |
hasListElement(java.util.List<?> lst,
java.lang.Object element)
Checks if the given List includes the given element.
|
void |
setCommandLine(IPath iniFile,
java.lang.String cl) |
void |
setLibraryPath(java.util.List<java.lang.String> lstLibPath)
Sets the list of library path entries.
|
public static final java.lang.String P_PRJ_PROP_LIB_PATH
public static final java.lang.String P_PRJ_PROP_SCENE_FOLDER
public static final java.lang.String P_PRJ_PROP_INCLUDE_FOLDER
public static final java.lang.String P_PRJ_PROP_DATA_FOLDER
public static final java.lang.String P_PRJ_PROP_OUTPUT_FOLDER
public static final java.lang.String P_PRJ_PROP_INICOMMANDLINE
public static ProjectPropertyStore getProjectPropertyStore(IProject project) throws PovrayException
ProjectPropertyStore
instance related to a specific
project.project
- The project this ProjectPropertyStore
belongs to.PovrayException
- if the store could not be loaded.public java.util.List<java.lang.String> getLibraryPathIncludingBaseFolderForFile(java.io.File file)
public java.util.List<java.lang.String> getLibraryPathIncludingBaseFolder(java.io.File folder)
public java.util.List<java.lang.String> getLibraryPath()
public void setLibraryPath(java.util.List<java.lang.String> lstLibPath)
lstLibPath
- A List of Strings, each representing a single library path entry.public static java.lang.String getDefaultIncludePath(java.lang.String executeablePath)
empty
String if the library pat can not be extracted.
Never null
!public java.util.List<java.lang.String> getDefaultLibraryPath(java.util.List<java.lang.String> lstLibPath)
If the given List does not include the default entries these will be included.
lstLibPath
- The List to be checked. If NULL
a new, empty
List will be created.
The default entries are:
[MEGAPOV_PATH]/include
[POVRAY_PATH]/include
[PROJECT_PATH]
All referenced Projects
public static boolean hasListElement(java.util.List<?> lst, java.lang.Object element)
lst
- The List to be checkedelement
- The element to be checkedtrue
if the list has the element,
false
otherwise.public java.lang.String getCommandLine(java.lang.String iniFile)
public void setCommandLine(IPath iniFile, java.lang.String cl)