|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pvx.ooadide.eventmanager.ResourceManager
public class ResourceManager
Provides access to resources in Eclipse for ProvideX programs
Constructor Summary | |
---|---|
ResourceManager()
|
Method Summary | |
---|---|
static void |
addToPropertyUpdateList(java.lang.String filePath,
java.lang.String pref,
java.lang.String value)
|
static void |
doUpdateProps()
|
static java.lang.String |
getDefaultPvxExePath()
Returns a path to the ProvideX executable associated with the specified file |
static java.lang.String |
getDefaultPvxExePath(java.lang.String filePath)
Returns a path to the ProvideX executable associated with the specified file |
static java.util.ArrayList |
getDependentPlugins()
|
static org.eclipse.core.resources.IFile |
getFile(java.lang.String filePath)
Returns the File for the specified path |
static java.lang.String |
getFilesPvxExePath(java.lang.String filePath)
|
static org.eclipse.core.resources.IContainer |
getFolder(java.lang.String folderPath)
Returns the IContainer folder for specified path |
java.lang.String |
getPathToSelectedResourceInNavigator()
This method will return the string value of the first resources selected |
static org.eclipse.core.resources.IProject |
getProject(java.lang.String projectName)
Returns a handle to the project resource with the given name which is a child of this root. |
static java.lang.String |
getProperty(org.eclipse.core.resources.IResource file,
java.lang.String pref)
Returns the value of the persistent property of this resource identified by the given key, or null if this resource has no such property. |
static java.lang.String |
getRequestSocket()
|
static org.eclipse.core.resources.IResource |
getResource(java.lang.String filePath)
Returns the Resource for the specified path |
org.eclipse.core.resources.IResource |
getSelectedResourceInNavigator()
This method will return the first resources selected |
org.eclipse.jface.viewers.TreeSelection |
getSelectedTreeResourcesInNavigator()
This method enables retrieve of all selected resources |
static java.lang.String |
getWorkspace()
|
static boolean |
isResourceInSourceDirectory(org.eclipse.core.resources.IResource resource)
Returns true if the specified resource is located in a Project's input directory |
static boolean |
isValidPvxExtension(java.lang.String extension)
Returns true if the specified extension is associated with the ProvideX Editor |
static boolean |
setProperty(org.eclipse.core.resources.IResource file,
java.lang.String pref,
java.lang.String value)
Sets the value of the persistent property of this resource identified by the given key. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceManager()
Method Detail |
---|
public static final org.eclipse.core.resources.IProject getProject(java.lang.String projectName)
IPath.isValidSegment(String)
.
Note: This method deals exclusively with resource handles, independent of whether the resources exist in the workspace. With the exception of validating that the name is a valid path segment, validation checking of the project name is not done when the project handle is constructed; rather, it is done automatically as the project is created.
name
- the name of the project
public java.lang.String getPathToSelectedResourceInNavigator()
public org.eclipse.jface.viewers.TreeSelection getSelectedTreeResourcesInNavigator()
public org.eclipse.core.resources.IResource getSelectedResourceInNavigator()
public static final org.eclipse.core.resources.IContainer getFolder(java.lang.String folderPath)
public static final org.eclipse.core.resources.IResource getResource(java.lang.String filePath)
public static final org.eclipse.core.resources.IFile getFile(java.lang.String filePath)
public static final java.lang.String getProperty(org.eclipse.core.resources.IResource file, java.lang.String pref)
null
if this resource has no such property.
file
- the target filepref
- the qualified name of the property
null
if this resource has no such property
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
public static final boolean setProperty(org.eclipse.core.resources.IResource file, java.lang.String pref, java.lang.String value)
null
,
the persistent property is removed from this resource. The change
is made immediately on disk.
Persistent properties are intended to be used by plug-ins to store resource-specific information that should be persisted across platform sessions. The value of a persistent property is a string that must be short - 2KB or less in length. Unlike session properties, persistent properties are stored on disk and maintained across workspace shutdown and restart.
file
- the resource to set the property onpref
- the name of the propertyvalue
- the string value of the property,
or null
if the property is to be removed
org.eclipse.core.runtime.CoreException
- if this method fails. Reasons include:
IResourceChangeEvent
for more details.public static final boolean isValidPvxExtension(java.lang.String extension)
public static final void addToPropertyUpdateList(java.lang.String filePath, java.lang.String pref, java.lang.String value)
public static final void doUpdateProps()
public static java.lang.String getFilesPvxExePath(java.lang.String filePath)
public static java.lang.String getDefaultPvxExePath(java.lang.String filePath)
public static java.lang.String getDefaultPvxExePath()
public static boolean isResourceInSourceDirectory(org.eclipse.core.resources.IResource resource)
public static java.lang.String getWorkspace()
public static java.lang.String getRequestSocket()
public static java.util.ArrayList getDependentPlugins()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |