|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.core.resources.ResourcesPlugin
public final class ResourcesPlugin
The plug-in runtime class for the Resources plug-in. This is
the starting point for all workspace and resource manipulation.
A typical sequence of events would be for a dependent plug-in
to call ResourcesPlugin.getWorkspace()
.
Doing so would cause this plug-in to be activated and the workspace
(if any) to be loaded from disk and initialized.
Field Summary | |
---|---|
static java.lang.Object |
FAMILY_AUTO_BUILD
Constant identifying the job family identifier for the background autobuild job. |
static java.lang.Object |
FAMILY_AUTO_REFRESH
Constant identifying the job family identifier for the background auto-refresh job. |
static java.lang.Object |
FAMILY_MANUAL_BUILD
Constant identifying the job family identifier for a background build job. |
static java.lang.Object |
FAMILY_MANUAL_REFRESH
Constant identifying the job family identifier for a background refresh job. |
static java.lang.String |
PI_RESOURCES
Unique identifier constant (value "org.eclipse.core.resources" )
for the standard Resources plug-in. |
static java.lang.String |
PREF_AUTO_BUILDING
Name of a preference for configuring whether the workspace performs auto- builds. |
static java.lang.String |
PREF_AUTO_REFRESH
Name of a preference for configuring whether the workspace performs auto- refresh. |
static java.lang.String |
PREF_BUILD_ORDER
Name of a preference for configuring the order projects in the workspace are built. |
static java.lang.String |
PREF_DEFAULT_BUILD_ORDER
Name of a preference for configuring whether to use the workspace's default order for building projects. |
static java.lang.String |
PREF_DISABLE_LINKING
Name of a preference for turning off support for linked resources. |
static java.lang.String |
PREF_ENCODING
Name of a preference indicating the encoding to use when reading text files in the workspace. |
static java.lang.String |
PREF_FILE_STATE_LONGEVITY
Name of a preference for configuring the maximum number of milliseconds a file state should be kept in the local history |
static java.lang.String |
PREF_MAX_BUILD_ITERATIONS
Name of a preference for configuring the maximum number of times that the workspace should rebuild when builders affect projects that have already been built. |
static java.lang.String |
PREF_MAX_FILE_STATE_SIZE
Name of a preference for configuring the maximum permitted size of a file to be stored in the local history |
static java.lang.String |
PREF_MAX_FILE_STATES
Name of a preference for configuring the maximum number of states per file that can be stored in the local history. |
static java.lang.String |
PREF_MAX_NOTIFICATION_DELAY
Deprecated. Do not use. |
static java.lang.String |
PREF_SNAPSHOT_INTERVAL
Name of a preference for configuring the amount of time in milliseconds between automatic workspace snapshots |
static java.lang.String |
PT_BUILDERS
Simple identifier constant (value "builders" )
for the builders extension point. |
static java.lang.String |
PT_FILE_MODIFICATION_VALIDATOR
Simple identifier constant (value "fileModificationValidator" )
for the file modification validator extension point. |
static java.lang.String |
PT_MARKERS
Simple identifier constant (value "markers" )
for the markers extension point. |
static java.lang.String |
PT_MODEL_PROVIDERS
Simple identifier constant (value "modelProviders" )
for the model providers extension point. |
static java.lang.String |
PT_MOVE_DELETE_HOOK
Simple identifier constant (value "moveDeleteHook" )
for the move/delete hook extension point. |
static java.lang.String |
PT_NATURES
Simple identifier constant (value "natures" )
for the natures extension point. |
static java.lang.String |
PT_REFRESH_PROVIDERS
Simple identifier constant (value "refreshProviders" )
for the auto-refresh refresh providers extension point. |
static java.lang.String |
PT_TEAM_HOOK
Simple identifier constant (value "teamHook" )
for the team hook extension point. |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
ResourcesPlugin()
Constructs an instance of this plug-in runtime class. |
Method Summary | |
---|---|
static java.lang.String |
getEncoding()
Returns the encoding to use when reading text files in the workspace. |
static ResourcesPlugin |
getPlugin()
Returns the Resources plug-in. |
static IWorkspace |
getWorkspace()
Returns the workspace. |
void |
start(org.osgi.framework.BundleContext context)
This implementation of the corresponding BundleActivator method
opens the workspace. |
void |
stop(org.osgi.framework.BundleContext context)
This implementation of the corresponding BundleActivator method
closes the workspace without saving. |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PI_RESOURCES
"org.eclipse.core.resources"
)
for the standard Resources plug-in.
public static final java.lang.String PT_BUILDERS
"builders"
)
for the builders extension point.
public static final java.lang.String PT_NATURES
"natures"
)
for the natures extension point.
public static final java.lang.String PT_MARKERS
"markers"
)
for the markers extension point.
public static final java.lang.String PT_FILE_MODIFICATION_VALIDATOR
"fileModificationValidator"
)
for the file modification validator extension point.
public static final java.lang.String PT_MOVE_DELETE_HOOK
"moveDeleteHook"
)
for the move/delete hook extension point.
public static final java.lang.String PT_TEAM_HOOK
"teamHook"
)
for the team hook extension point.
public static final java.lang.String PT_REFRESH_PROVIDERS
"refreshProviders"
)
for the auto-refresh refresh providers extension point.
public static final java.lang.String PT_MODEL_PROVIDERS
"modelProviders"
)
for the model providers extension point.
public static final java.lang.Object FAMILY_AUTO_BUILD
IJobManager.join(Object, IProgressMonitor)
public static final java.lang.Object FAMILY_AUTO_REFRESH
IJobManager.join(Object, IProgressMonitor)
public static final java.lang.Object FAMILY_MANUAL_BUILD
belongsTo
.
IJobManager.join(Object, IProgressMonitor)
,
Job.belongsTo(Object)
public static final java.lang.Object FAMILY_MANUAL_REFRESH
belongsTo
.
IJobManager.join(Object, IProgressMonitor)
,
Job.belongsTo(Object)
public static final java.lang.String PREF_ENCODING
System.getProperty("file.encoding")
.
There is also a convenience method getEncoding
which returns
the value of this preference, or the file system encoding if this
preference is not set.
Note that there is no guarantee that the value is a supported encoding.
Callers should be prepared to handle UnsupportedEncodingException
where this encoding is used.
getEncoding()
,
UnsupportedEncodingException
,
Constant Field Valuespublic static final java.lang.String PREF_MAX_NOTIFICATION_DELAY
public static final java.lang.String PREF_AUTO_BUILDING
IWorkspaceDescription.isAutoBuilding()
,
IWorkspaceDescription.setAutoBuilding(boolean)
,
Constant Field Valuespublic static final java.lang.String PREF_BUILD_ORDER
IWorkspaceDescription.getBuildOrder()
,
IWorkspaceDescription.setBuildOrder(String[])
,
Constant Field Valuespublic static final java.lang.String PREF_DEFAULT_BUILD_ORDER
public static final java.lang.String PREF_MAX_BUILD_ITERATIONS
IWorkspaceDescription.getMaxBuildIterations()
,
IWorkspaceDescription.setMaxBuildIterations(int)
,
Constant Field Valuespublic static final java.lang.String PREF_FILE_STATE_LONGEVITY
IWorkspaceDescription.getFileStateLongevity()
,
IWorkspaceDescription.setFileStateLongevity(long)
,
Constant Field Valuespublic static final java.lang.String PREF_MAX_FILE_STATE_SIZE
IWorkspaceDescription.getMaxFileStateSize()
,
IWorkspaceDescription.setMaxFileStateSize(long)
,
Constant Field Valuespublic static final java.lang.String PREF_MAX_FILE_STATES
IWorkspaceDescription.getMaxFileStates()
,
IWorkspaceDescription.setMaxFileStates(int)
,
Constant Field Valuespublic static final java.lang.String PREF_SNAPSHOT_INTERVAL
IWorkspaceDescription.getSnapshotInterval()
,
IWorkspaceDescription.setSnapshotInterval(long)
,
Constant Field Valuespublic static final java.lang.String PREF_DISABLE_LINKING
public static final java.lang.String PREF_AUTO_REFRESH
Constructor Detail |
---|
public ResourcesPlugin()
An instance of this plug-in runtime class is automatically created when the facilities provided by the Resources plug-in are required. Clients must never explicitly instantiate a plug-in runtime class.
Method Detail |
---|
public static java.lang.String getEncoding()
PREF_ENCODING
preference, or the
file system encoding (System.getProperty("file.encoding")
)
if the preference is not set.
Note that this method does not check whether the result is a supported
encoding. Callers should be prepared to handle
UnsupportedEncodingException
where this encoding is used.
UnsupportedEncodingException
public static ResourcesPlugin getPlugin()
public static IWorkspace getWorkspace()
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
BundleActivator
method
closes the workspace without saving.
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
BundleActivator.stop(BundleContext)
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
BundleActivator
method
opens the workspace.
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
BundleActivator.start(BundleContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |