|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A workspace description represents the workspace preferences. It can be used to query the current preferences and set new ones.
This interface is not intended to be implemented by clients.
IWorkspace.getDescription()
,
IWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
Method Summary | |
String[] |
getBuildOrder()
Returns the order in which projects in the workspace should be built. |
long |
getFileStateLongevity()
Returns the maximum length of time, in milliseconds, a file state should be kept in the local history. |
int |
getMaxFileStates()
Returns the maximum number of states per file that can be stored in the local history. |
long |
getMaxFileStateSize()
Returns the maximum permited size of a file, in bytes, to be stored in the local history. |
long |
getSnapshotInterval()
Returns the interval between automatic workspace snapshots. |
boolean |
isAutoBuilding()
Returns whether this workspace performs auto-builds. |
void |
setAutoBuilding(boolean value)
Records whether this workspace performs auto-builds. |
void |
setBuildOrder(String[] value)
Sets the order in which projects in the workspace should be built. |
void |
setFileStateLongevity(long time)
Sets the maximum time, in milliseconds, a file state should be kept in the local history. |
void |
setMaxFileStates(int number)
Sets the maximum number of states per file that can be stored in the local history. |
void |
setMaxFileStateSize(long size)
Sets the maximum permited size of a file, in bytes, to be stored in the local history. |
void |
setSnapshotInterval(long delay)
Sets the interval between automatic workspace snapshots. |
Method Detail |
public String[] getBuildOrder()
null
if the workspace's default build
order is being used.
null
if the default build order should be usedsetBuildOrder(java.lang.String[])
public long getFileStateLongevity()
setFileStateLongevity(long)
public int getMaxFileStates()
setMaxFileStates(int)
public long getMaxFileStateSize()
setMaxFileStateSize(long)
public long getSnapshotInterval()
setSnapshotInterval(long)
public boolean isAutoBuilding()
true
if auto-building is on, otherwise
false
setAutoBuilding(boolean)
public void setAutoBuilding(boolean value)
When auto-build is on, any changes made to a project and its resources automatically triggers an incremental build of that project. If resources in several projects are changed within the scope of a workspace runnable, the affected projects are auto-built in no particular order.
Users must call IWorkspace.setDescription
before changes
made to this description take effect.
value
- true
to turn on auto-building,
and false
to turn it offIWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
,
isAutoBuilding()
public void setBuildOrder(String[] value)
null
to use the
default ordering for all projects. Projects not named in the list are
built in unspecified order after all ordered projects.
Users must call IWorkspace.setDescription
before changes
made to this description take effect.
value
- the names of projects in the order in which they are built,
or null
to use the workspace's default order for all projectsIWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
,
getBuildOrder()
public void setFileStateLongevity(long time)
Users must call IWorkspace.setDescription
before changes
made to this description take effect.
time
- the maximum number of milliseconds a file state should be
kept in the local historyIWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
,
getFileStateLongevity()
public void setMaxFileStates(int number)
Users must call IWorkspace.setDescription
before changes
made to this description take effect.
number
- the maximum number of states per file that can be stored in the local historyIWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
,
getMaxFileStates()
public void setMaxFileStateSize(long size)
Users must call IWorkspace.setDescription
before changes
made to this description take effect.
size
- the maximum permited size of a file to be stored in the local historyIWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
,
getMaxFileStateSize()
public void setSnapshotInterval(long delay)
Users must call IWorkspace.setDescription
before changes
made to this description take effect.
delay
- the amount of time in milliseconds between automatic workspace snapshotsIWorkspace.setDescription(org.eclipse.core.resources.IWorkspaceDescription)
,
getSnapshotInterval()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |