|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.resources.Resource
org.eclipse.core.internal.resources.Container
org.eclipse.core.internal.resources.Folder
public class Folder
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.core.resources.IContainer |
|---|
EXCLUDE_DERIVED, INCLUDE_HIDDEN, INCLUDE_PHANTOMS, INCLUDE_TEAM_PRIVATE_MEMBERS |
| Fields inherited from interface org.eclipse.core.resources.IResource |
|---|
ALLOW_MISSING_LOCAL, ALWAYS_DELETE_PROJECT_CONTENT, AVOID_NATURE_CONFIG, BACKGROUND_REFRESH, CHECK_ANCESTORS, DEPTH_INFINITE, DEPTH_ONE, DEPTH_ZERO, DERIVED, FILE, FOLDER, FORCE, HIDDEN, KEEP_HISTORY, NEVER_DELETE_PROJECT_CONTENT, NONE, NULL_STAMP, PROJECT, REPLACE, ROOT, SHALLOW, TEAM_PRIVATE |
| Method Summary | |
|---|---|
IFile |
changeToFile()
|
void |
create(boolean force,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a new folder resource as a member of this handle's parent resource. |
void |
create(int updateFlags,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a new folder resource as a member of this handle's parent resource. |
void |
ensureExists(org.eclipse.core.runtime.IProgressMonitor monitor)
Ensures that this folder exists in the workspace. |
java.lang.String |
getDefaultCharset(boolean checkImplicit)
Returns the default charset for resources in this container. |
int |
getType()
Returns the type of this resource. |
void |
internalCreate(int updateFlags,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
| Methods inherited from class org.eclipse.core.internal.resources.Container |
|---|
convertToPhantom, exists, findDeletedMembersWithHistory, findMember, findMember, findMember, findMember, getDefaultCharset, getFile, getFile, getFolder, getFolder, isLocal, members, members, members, setDefaultCharset, setDefaultCharset |
| Methods inherited from class org.eclipse.core.runtime.PlatformObject |
|---|
getAdapter |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.resources.IFolder |
|---|
createLink, createLink, delete, getFile, getFolder, move |
| Methods inherited from interface org.eclipse.core.resources.IContainer |
|---|
exists, findDeletedMembersWithHistory, findMember, findMember, findMember, findMember, getDefaultCharset, getFile, getFolder, members, members, members, setDefaultCharset, setDefaultCharset |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.core.runtime.jobs.ISchedulingRule |
|---|
contains, isConflicting |
| Method Detail |
|---|
public IFile changeToFile()
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void create(int updateFlags,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
IFolder
The FORCE update flag controls how this method deals with
cases where the workspace is not completely in sync with the local file
system. If FORCE is not specified, the method will only attempt
to create a directory in the local file system if there isn't one already.
This option ensures there is no unintended data loss; it is the recommended
setting. However, if FORCE is specified, this method will
be deemed a success even if there already is a corresponding directory.
The IResource.DERIVED update flag indicates that this resource
should immediately be set as a derived resource. Specifying this flag
is equivalent to atomically calling IResource.setDerived(boolean)
with a value of true immediately after creating the resource.
The IResource.TEAM_PRIVATE update flag indicates that this resource
should immediately be set as a team private resource. Specifying this flag
is equivalent to atomically calling IResource.setTeamPrivateMember(boolean)
with a value of true immediately after creating the resource.
The IResource.HIDDEN update flag indicates that this resource
should immediately be set as a hidden resource. Specifying this flag
is equivalent to atomically calling IResource.setHidden(boolean)
with a value of true immediately after creating the resource.
Update flags other than those listed above are ignored.
This method synchronizes this resource with the local file system.
This method changes resources; these changes will be reported in a subsequent resource change event, including an indication that the folder has been added to its parent.
This method is long-running; progress and cancellation are provided by the given progress monitor.
create in interface IFolderupdateFlags - bit-wise or of update flag constants
(IResource.FORCE, IResource.DERIVED, and IResource.TEAM_PRIVATE)local - a flag controlling whether or not the folder will be local
after the creationmonitor - a progress monitor, or null if progress
reporting is not desired
org.eclipse.core.runtime.CoreException - if this method fails. Reasons include:
IWorkspace.validateName).FORCE is not specified.IResourceChangeEvent for more details.IResourceRuleFactory.createRule(IResource)
public void create(boolean force,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
IFolderThis is a convenience method, fully equivalent to:
create((force ? FORCE : IResource.NONE), local, monitor);
This method changes resources; these changes will be reported in a subsequent resource change event, including an indication that the folder has been added to its parent.
This method is long-running; progress and cancellation are provided by the given progress monitor.
create in interface IFolderforce - a flag controlling how to deal with resources that
are not in sync with the local file systemlocal - a flag controlling whether or not the folder will be local
after the creationmonitor - a progress monitor, or null if progress
reporting is not desired
org.eclipse.core.runtime.CoreException - if this method fails. Reasons include:
IWorkspace.validateName).force is false.IResourceChangeEvent for more details.IFolder.create(int,boolean,IProgressMonitor)
public void ensureExists(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic java.lang.String getDefaultCharset(boolean checkImplicit)
IContainer
If checkImplicit is false, this method
will return the charset defined by calling #setDefaultCharset, provided this
container exists, or null otherwise.
If checkImplicit is true, this method uses the following
algorithm to determine the charset to be returned:
Note that this method does not check whether the result is a supported
charset name. Callers should be prepared to handle
UnsupportedEncodingException where this charset is used.
getDefaultCharset in interface IContainernullIFile.getCharset()public int getType()
IResourceFILE,
FOLDER, PROJECT, ROOT.
FILE implement IFile.FOLDER implement IFolder.PROJECT implement IProject.ROOT implement IWorkspaceRoot.This is a resource handle operation; the resource need not exist in the workspace.
getType in interface IResourcegetType in class ResourceIResource.FILE,
IResource.FOLDER,
IResource.PROJECT,
IResource.ROOT
public void internalCreate(int updateFlags,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||