|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.workshop.controls.ui.actions.DefaultControlInsertionDelegate
com.bea.workshop.controls.ui.actions.InsertGenericControlDelegate
public class InsertGenericControlDelegate
A generic control insertion delegate for inserting a reference to an extensible control, which requires a control extension to be created first.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bea.workshop.controls.ui.actions.DefaultControlInsertionDelegate |
---|
DefaultControlInsertionDelegate.AnnotationInfo |
Constructor Summary | |
---|---|
InsertGenericControlDelegate()
|
Method Summary | |
---|---|
static String |
getJavaResourcePackageName(IPath absolutePath)
Given the absolutePath of a Java resource, returns the
package name of the resource or null if the resource is not properly
located in a project or folder on the build classpath or that is the
build output path. |
protected NewFileWizard |
getNewControlFileWizard(com.bea.workshop.controls.core.model.IControlInsertionDelegateContext context)
Method for subclasses to instantiate particular control file wizards. |
static IProject |
getProjectOf(IPath absolutePath)
Returns the handle of the IProject at the beginning of the given absolutePath . |
static IWorkspaceRoot |
getWorkspaceRoot()
Returns the IWorkspaceRoot object. |
IJavaElement |
insertControl(com.bea.workshop.controls.core.model.IControlInsertionDelegateContext context)
This default implementation does only the work of inserting a control field into the compilation unit's primary type. |
Methods inherited from class com.bea.workshop.controls.ui.actions.DefaultControlInsertionDelegate |
---|
copyJarIfNecessary, getDefaultControlDeclarationFieldName, getFileFromPlugin, insertControl, insertControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertGenericControlDelegate()
Method Detail |
---|
public IJavaElement insertControl(com.bea.workshop.controls.core.model.IControlInsertionDelegateContext context)
DefaultControlInsertionDelegate
import org.apache.beehive.controls.api.bean.Control;
import com.somecontrolprovider.AnExampleControl;
...
@Control
private AnExampleControl control1;
insertControl
in interface com.bea.workshop.controls.core.model.IControlInsertionDelegate
insertControl
in class DefaultControlInsertionDelegate
context
- the IControlInsertionDelegateContext that provides contextual information
for the control insertion, and also allows some parameterization of the insertion.
public static String getJavaResourcePackageName(IPath absolutePath)
absolutePath
of a Java resource, returns the
package name of the resource or null if the resource is not properly
located in a project or folder on the build classpath or that is the
build output path.
absolutePath
- The absolute path of the Java resource.
public static IProject getProjectOf(IPath absolutePath)
absolutePath
. Neither the given path nor the project need
exist in the workspace. The path must be absolute, and must consist of at
least one segment.
absolutePath
, or null if the path does not
specify a project.public static IWorkspaceRoot getWorkspaceRoot()
protected NewFileWizard getNewControlFileWizard(com.bea.workshop.controls.core.model.IControlInsertionDelegateContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |