|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PseudoTechnologyCallback
interface allows clients to
register "pseudo-technologies" with the TechnologyRegistry
.
Unlike normal technologies, pseudo-technologies do not appear in the
user interface; instead, they are used to afford clients greater control
over when particular items should appear in the gallery.
Clients may tag items in the gallery with the technology key for a
pseudo-technology. When the gallery's 'Project technologies' filter is
active, the client is then asked via the isInScope(TechnologyScope)
method whether or not the tagged items
should appear given the specified technology scope.
The logic defined by the isInScope()
method may be
arbitrary, but typically tests for specific technologies in the
technology scope using a combination of boolean expressions involving
the TechnologyScope.contains(TechId)
method.
As an example, the IdeTechnologies.GENERAL_KEY
technology is
implemented as a pseudo-technology. It's isInScope()
method always returns true
, which means that any gallery
items tagged with this technology key always appear in the gallery
regardless of the project's technology scope.
TechnologyRegistry.registerPseudoTechnology(String,PseudoTechnologyCallback)
Method Summary | |
boolean |
isInScope(TechnologyScope scope)
Returns true if this pseudo-technology should be
considered part of the specified technology scope; otherwise, returns
false . |
Method Detail |
public boolean isInScope(TechnologyScope scope)
true
if this pseudo-technology should be
considered part of the specified technology scope; otherwise, returns
false
.
scope
- The current technology scope.
|
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.