|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.model.ContentSetHelper
public class ContentSetHelper
The ContentSetHelper handles adding, restoring content, and removing content from a content set.
Note: Because ContentSetHelper methods can be called off the UI thread, subclasses must not invoke any UI during method processing.
Field Summary | |
---|---|
protected ProjectContent |
_projectContent |
Constructor Summary | |
---|---|
ContentSetHelper(java.lang.String key) Constructs a new ContentSetHelper . |
Method Summary | |
---|---|
void |
addContent(java.net.URL url, ProjectContent projectContent, boolean includeSubFolders, ProgressBar progressBar) Adds the URL to the ProjectContent. |
protected void |
addContentImpl(java.net.URL url, ContentSet contentSet, boolean includeSubFolders, ProgressBar progressBar) Adds the URL to the content set. |
boolean |
canAddContent(java.net.URL url, ProjectContent projectContent) Determines whether or not the URL can be added to the project. |
protected ContentSet |
getBaseContentSet(ProjectContent projectContent) Gets the top-level content set for this ContentSetHelper. |
protected ContentSet |
newContentSet() Creates a new constituent content set. |
void |
removeContent(java.net.URL url, ProjectContent projectContent) Removes the URL from the project. |
protected void |
removeContentImpl(java.net.URL url, ContentSet contentSet) Creates an exclude filter to exclude the URL from the content set. |
boolean |
restoreContent(java.net.URL url, ProjectContent projectContent) Restores a URL which has been excluded from the project. |
protected boolean |
restoreContentImpl(java.net.URL url, ContentSet contentSet) Restores a URL which has been excluded from a content set. |
protected boolean |
unExclude(java.lang.String pattern, ContentSet contentSet) Adjusts the filters in the supplied content set to include the relative path described by pattern . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ProjectContent _projectContent
Constructor Detail |
---|
public ContentSetHelper(java.lang.String key)
ContentSetHelper
.
key
- the data key for the content set which is modified by this helperMethod Detail |
---|
public boolean canAddContent(java.net.URL url, ProjectContent projectContent)
true
as long as both the URL and the ProjectContent objects are non-null.
Note: Subclasses that override this method must not invoke any UI during its processing because it may be called off the event thread.
url
- the url you want to addprojectContent
- the ProjectContent you're adding totrue
if the url can be added to the project, false
otherwisepublic final void addContent(java.net.URL url, ProjectContent projectContent, boolean includeSubFolders, ProgressBar progressBar)
url
- a file or folder URLprojectContent
- the target ProjectContent objectincludeSubFolders
- indicates whether or not subfolders are added (ignored if the supplied URL is not a directory)progressBar
- when non-null, use the supplied progressBar
to show progress during a long-running process. If progressBar
is null, this method is being called off the event thread, so no UI should be shown.protected void addContentImpl(java.net.URL url, ContentSet contentSet, boolean includeSubFolders, ProgressBar progressBar)
Note: Subclasses that override this method must not invoke any UI during its processing because it may be called off the event thread.
url
- a file or folder URLcontentSet
- the target content setincludeSubFolders
- indicates whether or not subfolders are added (ignored if the supplied url is a file)progressBar
- when non-null, the supplied progressBar
can be used to show progress during a long-running process. If progressBar
is null, this method is being called off the event thread, so no UI should be shown.public final boolean restoreContent(java.net.URL url, ProjectContent projectContent)
false
.url
- the URL to "unexclude" from the content setprojectContent
- the target projecttrue
if the URL was "unexcluded" from this content set. If the ContentSet
cannot contain this URL, false
is returned.#addContent(URL, ProjectContent, boolean, IndeterminateProgressMonitor)
protected boolean restoreContentImpl(java.net.URL url, ContentSet contentSet)
false
if contentSet
cannot contain the supplied URL.
Note: Subclasses that override this method must not invoke any UI during its processing because it may be called off the event thread.
url
- the URL to "unexclude" from the content setcontentSet
- the content set to updatetrue
if the URL was "unexcluded" from this content set. If the ContentSet
cannot contain this URL, false
is returned.protected final boolean unExclude(java.lang.String pattern, ContentSet contentSet)
pattern
.pattern
- a path relative to the content set's URLPathcontentSet
- the content set to updatetrue
if the filters were modified to include the content, false
if the filters were not modifiedpublic final void removeContent(java.net.URL url, ProjectContent projectContent)
url
- the URL to removeprojectContent
- the target ProjectContent objectprotected void removeContentImpl(java.net.URL url, ContentSet contentSet)
Note: Subclasses that override this method must not invoke any UI during its processing because it may be called off the event thread.
url
- the URL to excludecontentSet
- the target projectprotected final ContentSet newContentSet()
protected final ContentSet getBaseContentSet(ProjectContent projectContent)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |