getElementAt() from VisualEditor [message #78786] |
Wed, 02 February 2005 13:41  |
Eclipse User |
|
|
|
Hello,
I want to add an menu/action to the JavaVisualEditor, so that when a
user selects an element (Label/Text/Button/etc...), and click on action,
it retrieves the name and type of the selected field, and do something
with it. Is this possible? Thanks.
|
|
|
Re: getElementAt() from VisualEditor [message #78992 is a reply to message #78786] |
Thu, 03 February 2005 16:24  |
Eclipse User |
|
|
|
Hi Hung,
> I want to add an menu/action to the JavaVisualEditor, so that when a
> user selects an element (Label/Text/Button/etc...), and click on action,
> it retrieves the name and type of the selected field, and do something
> with it. Is this possible? Thanks.
Look at the class
org.eclipse.ve.internal.java.codegen.editorpart.RenameJavaBe anObjectActionDelegate.
The plugin that defines this is org.eclipse.ve.java.core so also look at
the extension point used. This should be a good place to start digging
around and find the API you need.
Best regards,
Joe
|
|
|
Re: getElementAt() from VisualEditor [message #79017 is a reply to message #78786] |
Thu, 03 February 2005 12:32  |
Eclipse User |
|
|
|
Hung wrote:
> Hello,
> I want to add an menu/action to the JavaVisualEditor, so that when a
> user selects an element (Label/Text/Button/etc...), and click on action,
> it retrieves the name and type of the selected field, and do something
> with it. Is this possible? Thanks.
Put a break point on
org.eclipse.ve.internal.java.core.DefaultInstanceProcessor and
org.eclipse.ve.internal.java.core.DefaultMethodProcessor createFigure()
methods.
These are the guys the provide the instance/method information for the
yellow tool tip that comes up when you hover over an edit part.
|
|
|
Re: getElementAt() from VisualEditor [message #604944 is a reply to message #78786] |
Thu, 03 February 2005 16:24  |
Eclipse User |
|
|
|
Hi Hung,
> I want to add an menu/action to the JavaVisualEditor, so that when a
> user selects an element (Label/Text/Button/etc...), and click on action,
> it retrieves the name and type of the selected field, and do something
> with it. Is this possible? Thanks.
Look at the class
org.eclipse.ve.internal.java.codegen.editorpart.RenameJavaBe anObjectActionDelegate.
The plugin that defines this is org.eclipse.ve.java.core so also look at
the extension point used. This should be a good place to start digging
around and find the API you need.
Best regards,
Joe
|
|
|
Re: getElementAt() from VisualEditor [message #604956 is a reply to message #78786] |
Thu, 03 February 2005 12:32  |
Eclipse User |
|
|
|
Hung wrote:
> Hello,
> I want to add an menu/action to the JavaVisualEditor, so that when a
> user selects an element (Label/Text/Button/etc...), and click on action,
> it retrieves the name and type of the selected field, and do something
> with it. Is this possible? Thanks.
Put a break point on
org.eclipse.ve.internal.java.core.DefaultInstanceProcessor and
org.eclipse.ve.internal.java.core.DefaultMethodProcessor createFigure()
methods.
These are the guys the provide the instance/method information for the
yellow tool tip that comes up when you hover over an edit part.
|
|
|
Powered by
FUDForum. Page generated in 0.04194 seconds