public class ContentSetProviderReference
extends java.lang.Object
ContentSetProvider
. This wrapper is
necessary to have a uniform list of content set providers that have been
registered programmatically and content set providers that have been
registered declaratively through the context-set-providers-hook hook.Constructor and Description |
---|
ContentSetProviderReference(ContentSetProvider provider)
Deprecated.
|
ContentSetProviderReference(java.lang.String label,
java.lang.String navigableLabel,
java.lang.String key,
boolean isDefaultContentSet,
boolean showInDefaultProject,
boolean applicationLevelContent,
boolean displayFoldersAsPackages,
boolean canContainJavaSources,
boolean flatLevelEnabled,
boolean alwaysShowEmptyFolders,
MetaClass<ContentSetProvider> type,
java.lang.String defaultSourceFolder,
PatternFilters patternFilters)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
boolean |
alwaysShowEmptyFolders()
Controls when the content set provider shows its empty folders.
|
boolean |
applicationLevelContent()
Indicates whether the content set provider represents content associated
with the application workspace rather than with projects within the
workspace.
|
boolean |
canContainJavaSources()
Indicates whether the content set provider may point to Java sources.
|
ContentSetProvider |
contentSetProvider()
Returns the instance of the referenced content set provider.
|
boolean |
displayFoldersAsPackages()
Indicates whether the content set provider wants its folders to be rendered
in the UI as if they are Java packages.
|
java.lang.String |
extensionId() |
void |
extensionId(java.lang.String extensionId) |
boolean |
hasNavigable()
Indicates whether this content set provider has a
Navigable . |
void |
initContentSet(ContentSet contentSet,
java.net.URL projectDir,
Context context) |
boolean |
isAlreadyInitialized() |
boolean |
isDefaultContentSet()
Indicates whether the Navigable for this content set is shown in the
Project Properties dialog when "Project Source Paths" is selected,
or whether it is added as a child of that root node.
|
boolean |
isFlatLevelEnabled()
Indicates whether the flat level feature of the navigator should be enabled
for this content set provider.
|
boolean |
isShowInDefaultProject()
Indicates whether the Navigable for this content set is shown in the
Project Properties dialog when Default Project Properties is selected
from the menu.
|
java.lang.String |
key()
Returns the key of the content set provider.
|
java.lang.String |
label()
Returns the label of this content set provider.
|
java.lang.String |
navigableLabel()
Returns the navigableLabel of the
Navigable of the content set
provider. |
public ContentSetProviderReference(ContentSetProvider provider)
ContentSetProviderReference
.provider
- the ContentSetProvider
that has been
registered programmatically.ProjectContent.registerContentSetProvider(ContentSetProvider)
public ContentSetProviderReference(java.lang.String label, java.lang.String navigableLabel, java.lang.String key, boolean isDefaultContentSet, boolean showInDefaultProject, boolean applicationLevelContent, boolean displayFoldersAsPackages, boolean canContainJavaSources, boolean flatLevelEnabled, boolean alwaysShowEmptyFolders, MetaClass<ContentSetProvider> type, java.lang.String defaultSourceFolder, PatternFilters patternFilters)
ContentSetProviderReference
. This
constructor is called to create a "meta"-reference to a content set provider
registered declaratively through the content-set-provider-hook.label
- the label of the content set provider.navigableLabel
- the label of the navigable of the content set provider.key
- the key of the content set provider.isDefaultContentSet
- indicates whether the content set is the default
to be shown as the root level node in Project PropertiesapplicationLevelContent
- indicates whether the content set provider
represents content associated with the application workspace rather
than project level content.displayFoldersAsPackages
- indicates whether the content set provider
wants its folders to be rendered in the UI as if they are Java packages.canContainJavaSources
- indicates whether the content set provider may
point to Java sources.flatLevelEnabled
- indicates whether the flat level feature of the
navigator should be enabled for this content set provider.type
- the MetaClass
used to lazily instantiate the
content set provider.public java.lang.String label()
public java.lang.String navigableLabel()
Navigable
of the content set
provider. It may return null
or an empty string if the content
set provider does not provide a Navigable
.Navigable
of the content set
provider, or null
or an empty string if the content set
provider does not provide a Navigable
.public boolean hasNavigable()
Navigable
.true
if this content set provider has a
Navigable
; false
otherwise.public java.lang.String key()
public boolean applicationLevelContent()
true
if the content set provider represents application
workspace level content; false
means the content set
provider represents project content.public boolean isDefaultContentSet()
Note that this will only return true if hasNavigable()
also returns
true.
public boolean isShowInDefaultProject()
public boolean displayFoldersAsPackages()
true
if the content set provider wants its folders to
be rendered in the UI as if they are Java packages; false
otherwise.public boolean alwaysShowEmptyFolders()
true
if empty folders must always be shown, false
otherwisepublic ContentSetProvider contentSetProvider()
MetaClass
especified in the content-set-providers-hook
hook to create a content set provider lazily.public boolean isAlreadyInitialized()
public boolean canContainJavaSources()
true
if the content set provider may point to Java
sources; false
otherwise.public boolean isFlatLevelEnabled()
true
if the flat level feature of the navigator should
be enabled for this content set provider; false
otherwise.public void extensionId(java.lang.String extensionId)
public java.lang.String extensionId()
public void initContentSet(ContentSet contentSet, java.net.URL projectDir, Context context)