|
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.jdeveloper.externaltools.macro.MacroRegistry
Macros use information from the current JDeveloper context to pass into or influence the behavior of external tools.
The MacroRegistry stores MacroExpander instances, which are capable of translating specific, escaped macro strings (e.g. "${mymacro}") into context specific strings (e.g. "c:\currently\selected\File.java").
You can use the macro registry to query registered MacroExpanders, register additional MacroExpanders, or to actually carry out macro expansion on a given string for a given context.
Constructor Summary | |
MacroRegistry()
|
Method Summary | |
abstract void |
deregister(MacroExpander expander)
Deregister a previously registered MacroExpander. |
java.lang.String |
expand(java.lang.String inputString,
Context context)
Expand macros in the specified String for the specified IDE context, and return a String containing expanded macros. |
abstract java.lang.String |
expand(java.lang.String inputString,
Context context,
boolean isSample)
Expand macros in the specified String for the specified IDE context, and return a String containing expanded macros. |
abstract MacroPicker |
getPicker(ExternalToolType type,
boolean onlyDirectories)
Get the macro picker UI. |
MacroTextField |
getTextField(ExternalToolType type,
boolean onlyDirectories)
Get a completion-insight enabled text field for this registry. |
abstract java.util.Iterator |
iterator()
Get an iterator over all registered MacroExpanders. |
abstract void |
register(MacroExpander expander)
Register a MacroExpander with the registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MacroRegistry()
Method Detail |
public abstract java.util.Iterator iterator()
public abstract void register(MacroExpander expander)
expander
- the expander to registerpublic abstract void deregister(MacroExpander expander)
expander
- the expander to deregisterpublic abstract java.lang.String expand(java.lang.String inputString, Context context, boolean isSample)
inputString
- the string to expandcontext
- the IDE context to use for macro expansion
public java.lang.String expand(java.lang.String inputString, Context context)
inputString
- the string to expandcontext
- the IDE context to use for macro expansion
public abstract MacroPicker getPicker(ExternalToolType type, boolean onlyDirectories)
type
- the external tool type to get a picker foronlyDirectories
- if true, only directory macros will be displayed.public MacroTextField getTextField(ExternalToolType type, boolean onlyDirectories)
type
- if not null, the available macros will be filtered
to only show macros for the specified external tool typeonlyDirectories
- if true, only directory based macros will be
displayed
|
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.