|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.JET1TemplateManager
public class JET1TemplateManager
Mananger for operations that dynamically invoke JET1 templates.
Manager for invoking dymanic JET1 templates. A replacement for (and simplification of) org.eclipse.emf.codegen.jet.JETEmitter
.
Operations implement JET1TemplateManager.ITemplateOperation
and are run via run(String[], org.eclipse.jet.JET1TemplateManager.ITemplateOperation, IProgressMonitor)
.
The operation may then dynamically load and execute templates found in the provided plug-ins via the passed JET1TemplateManager.ITemplateRunner
.
Loads JET1 templates dynamically from Eclipse plug-ins and/or in workspace plug-in projects, so long as the projects were compiled with the org.eclipse.jet compiler (rather than org.eclipse.emf.codegen JET compiler).
Provisional API. This API is subject to breaking change or removal.
Nested Class Summary | |
---|---|
static interface |
JET1TemplateManager.ITemplateOperation
Protocol for a dynamic template operation. |
static interface |
JET1TemplateManager.ITemplateRunner
Defines the protocol for an operation that dynamically invokes JET1 templates. |
Method Summary | |
---|---|
static void |
run(java.lang.String[] pluginIDs,
JET1TemplateManager.ITemplateOperation operation,
org.eclipse.core.runtime.IProgressMonitor monitor)
Execute a JET templates that are loaded dynamically from the provided Eclipse plug-ins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void run(java.lang.String[] pluginIDs, JET1TemplateManager.ITemplateOperation operation, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.osgi.framework.BundleException
pluginIDs
- a non-empty list of Eclipse plug-in ids.operation
- an operation that will consume the templatesmonitor
- a progress monitor
org.osgi.framework.BundleException
- if one of the plug-ins cannot be loaded
java.lang.NullPointerException
- if pluginIDs is null
, or if any element is null
java.lang.IllegalArgumentException
- if pluginIDs has zero length
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |