public class JavaContentSetProvider extends ContentSetProvider
Constructor and Description |
---|
JavaContentSetProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canContainJavaSources()
Returns
true if the ContentSetProvider may point to
Java sources. |
boolean |
displayFoldersAsPackages()
Returns
true if the ContentSetProvider wants its folders
to be rendered in the UI as if they are Java packages. |
ContentSetHelper |
getContentSetHelper()
Returns a
ContentSetHelper , which is used to validate
content before it is added to the content set, and to handle adding
new content to the content set. |
Navigable |
getNavigable()
Implement this method to return a Navigable that represents the
UI for this provider's ContentSet in the Project Properties
dialog.
|
void |
initContentSet(ContentSet contentSet,
java.net.URL projectDir,
Context context) |
alwaysShowEmptyFolders, applicationLevelContent, canExtendURLPath, getKey, getShortLabel, isFlatLevelEnabled, toString
public boolean displayFoldersAsPackages()
ContentSetProvider
true
if the ContentSetProvider wants its folders
to be rendered in the UI as if they are Java packages. This method
only affects how folders are displayed in the UI and does not affect
the Java root directories of a project in the same way that
ContentSetProvider.canContainJavaSources()
does.displayFoldersAsPackages
in class ContentSetProvider
public boolean canContainJavaSources()
ContentSetProvider
true
if the ContentSetProvider may point to
Java sources. Returns false
otherwise. The default
return value is false
. When the provider returns
true
, this affects how the Java root directories for a
Project
are determined by the ProjectContent.getJavaRootDirs()
method. Typically, when a provider returns true
from
this method, it will also return true
from
ContentSetProvider.displayFoldersAsPackages()
.canContainJavaSources
in class ContentSetProvider
public void initContentSet(ContentSet contentSet, java.net.URL projectDir, Context context)
initContentSet
in class ContentSetProvider
public Navigable getNavigable()
ContentSetProvider
getNavigable
in class ContentSetProvider
public ContentSetHelper getContentSetHelper()
ContentSetProvider
ContentSetHelper
, which is used to validate
content before it is added to the content set, and to handle adding
new content to the content set.getContentSetHelper
in class ContentSetProvider
ContentSetHelper
.