Skip to main content



      Home
Home » Archived » Visual Editor (VE) » getElementAt() from VisualEditor
getElementAt() from VisualEditor [message #78786] Wed, 02 February 2005 13:41 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:How to set what VE does ?
Next Topic:EclipseI20050202 and VE-SDK-1.0.2RC1
Goto Forum:
  


Current Time: Mon May 12 01:19:23 EDT 2025

Powered by FUDForum. Page generated in 0.04194 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top