|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.model.TechnologyRegistry
The TechnologyRegistry
is used to create and look up
technologies in the system.
Method Summary | |
TechId[] |
getAllTechIds()
Returns all registered technologies. |
TechId[] |
getAncestorTechIds(TechId techId)
Returns all ancestors of the specified technology. |
TechId[] |
getDescendantTechIds(TechId techId)
Returns all descendants of the specified technology. |
static TechnologyRegistry |
getInstance()
Returns an instance of the technology registry. |
TechId |
getTechId(java.lang.String key)
Looks up a registered technology given the technology key. |
TechId[] |
getVisibleTechIds()
Returns all visible registered technologies. |
void |
registerPseudoTechnology(java.lang.String key,
PseudoTechnologyCallback callback)
Registers a pseudo-technology with the technology registry. |
void |
registerTechnology(java.lang.String key,
java.lang.String name,
java.lang.String description)
Registers a top-level technology with the technology registry. |
void |
registerTechnology(java.lang.String key,
java.lang.String name,
java.lang.String description,
TechId parent)
Registers a child technology with the technology registry. |
void |
unregisterTechnology(java.lang.String key)
Unregisters a technology from the technology registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TechnologyRegistry getInstance()
public void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description)
key
- a well-defined string that identifies the technology
programmatically; the key is used to bind items in the gallery to a
technology.name
- a translatable string that identifies the technology in
the user interface.description
- a translatable string that describes the purpose of
the technology in the user interface.public void registerTechnology(java.lang.String key, java.lang.String name, java.lang.String description, TechId parent)
key
- a well-defined string that identifies the technology
programmatically; the key is used to bind items in the gallery to a
technology.name
- a translatable string that identifies the technology in
the user interface.description
- a translatable string that describes the purpose of
the technology in the user interface.parent
- the parent technology.public void registerPseudoTechnology(java.lang.String key, PseudoTechnologyCallback callback)
key
- a well-defined string that identifies the technology
programmatically; the key is used to bind items in the gallery to a
technology.callback
- the callback object used to determine the visibility
of gallery items tagged with the specified technology key.PseudoTechnologyCallback
public void unregisterTechnology(java.lang.String key)
key
- a string that identifies a technology.public TechId getTechId(java.lang.String key)
key
- a string that identifies a technology.
TechId
for the specified technology, or
null
if no technology is registered with the specified
identifier.public TechId[] getAllTechIds()
TechId
instances comprising all registered
technologies.public TechId[] getVisibleTechIds()
TechId
instances comprising those
registered technologies that are visible.public TechId[] getAncestorTechIds(TechId techId)
techId
- a technology.
TechId
instances comprising the ancestors
of the specified technology.public TechId[] getDescendantTechIds(TechId techId)
techId
- a technology.
TechId
instances comprising the
descendants of the specified technology.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.