Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.model
Class JavaContentSetHelper

java.lang.Object
  extended by oracle.ide.model.ContentSetHelper
      extended by oracle.jdeveloper.model.JavaContentSetHelper

public class JavaContentSetHelper
extends ContentSetHelper


Field Summary
 
Fields inherited from class oracle.ide.model.ContentSetHelper
_projectContent
 
Constructor Summary
JavaContentSetHelper(java.lang.String key)
           
 
Method Summary
protected  void addContentImpl(java.net.URL url, ContentSet contentSet, boolean includeSubFolders, ProgressBar progressBar)
          Adds the URL to the content set.
protected  void removeContentImpl(java.net.URL url, ContentSet contentSet)
          Creates an exclude filter to exclude the URL from the content set.
protected  boolean restoreContentImpl(java.net.URL url, ContentSet contentSet)
          Restores a URL which has been excluded from a content set.
 
Methods inherited from class oracle.ide.model.ContentSetHelper
addContent, canAddContent, getBaseContentSet, newContentSet, removeContent, restoreContent, unExclude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaContentSetHelper

public JavaContentSetHelper(java.lang.String key)
Method Detail

addContentImpl

protected void addContentImpl(java.net.URL url,
                              ContentSet contentSet,
                              boolean includeSubFolders,
                              ProgressBar progressBar)
Description copied from class: ContentSetHelper
Adds the URL to the content set. Subclasses should override this to do any special processing that needs to happen to correctly add the URL to the content set. For Java content, for example, the source root must be determined and set for the content set.

Note: Subclasses that override this method must not invoke any UI during its processing because it may be called off the event thread.

Overrides:
addContentImpl in class ContentSetHelper
Parameters:
url - a file or folder URL
contentSet - the target content set
includeSubFolders - 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.

restoreContentImpl

protected boolean restoreContentImpl(java.net.URL url,
                                     ContentSet contentSet)
Description copied from class: ContentSetHelper
Restores a URL which has been excluded from a content set. This returns 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.

Overrides:
restoreContentImpl in class ContentSetHelper
Parameters:
url - the URL to "unexclude" from the content set
contentSet - the content set to update
Returns:
true if the URL was "unexcluded" from this content set. If the ContentSet cannot contain this URL, false is returned.

removeContentImpl

protected void removeContentImpl(java.net.URL url,
                                 ContentSet contentSet)
Description copied from class: ContentSetHelper
Creates an exclude filter to exclude the URL from the content set.

Note: Subclasses that override this method must not invoke any UI during its processing because it may be called off the event thread.

Overrides:
removeContentImpl in class ContentSetHelper
Parameters:
url - the URL to exclude
contentSet - the target project

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.