Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Page Designer and absolute position
Page Designer and absolute position [message #475393] Wed, 09 January 2008 08:53 Go to next message
Eclipse UserFriend
Originally posted by: al.rivs.gmail.com

Hello,

In order to use eclipse as a WYSIWYG application, I have to modify the Page
Designer's drag and drop feature to allow users to place elements from the
palette in the sheat with absolute positioning.
The element must been seen at its right position in editor's view and not
only in preview (like frontPage for exemple).

So I have to modify two classes in the Page Designer Plugin :

org.eclipse.jst.pagedesigner.commands.moveNodeCommand
org.eclipse.jst.pagedesigner.editpolicies.DragMoveEditPolicy

My question is : how do I do to create my own plugin which integrate these
two classes ?

Regards,

Al Rivs.
Re: Page Designer and absolute position [message #475394 is a reply to message #475393] Fri, 11 January 2008 05:37 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Hi Al,

The answer depends on what your change is doing. If it is an improvement
to the editor that is applicable to all users, then we may be able to
integrate it directly into the codebase if you can contribute it.

Otherwise, you have several options. One option would be to create a
plugin that installs its own IElementEditFactory for all tags. From there
you should be able change what DragMoveEditPolicy is installed on all
ElementEditParts.

Another option that might work, although I don't know much about it, would
be to use either the Fragment or Feature Patch. These allow you to modify
existing components at class load time. I'm not sure of the specifics and
I'm not certain if it allows you to affect the existing classes being
loaded or just add new ones.

Of course, last but not least would be to the import source project for
org.eclipse.jst.jsf.pagedesigner and rebuild and repackage the plugin
yourself. There is an export plugin wizard in PDE to help with this.


--Cam

Al Rivs wrote:

> Hello,

> In order to use eclipse as a WYSIWYG application, I have to modify the Page
> Designer's drag and drop feature to allow users to place elements from the
> palette in the sheat with absolute positioning.
> The element must been seen at its right position in editor's view and not
> only in preview (like frontPage for exemple).

> So I have to modify two classes in the Page Designer Plugin :

> org.eclipse.jst.pagedesigner.commands.moveNodeCommand
> org.eclipse.jst.pagedesigner.editpolicies.DragMoveEditPolicy

> My question is : how do I do to create my own plugin which integrate these
> two classes ?

> Regards,

> Al Rivs.
Re: Page Designer and absolute position [message #616453 is a reply to message #475393] Fri, 11 January 2008 05:37 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Hi Al,

The answer depends on what your change is doing. If it is an improvement
to the editor that is applicable to all users, then we may be able to
integrate it directly into the codebase if you can contribute it.

Otherwise, you have several options. One option would be to create a
plugin that installs its own IElementEditFactory for all tags. From there
you should be able change what DragMoveEditPolicy is installed on all
ElementEditParts.

Another option that might work, although I don't know much about it, would
be to use either the Fragment or Feature Patch. These allow you to modify
existing components at class load time. I'm not sure of the specifics and
I'm not certain if it allows you to affect the existing classes being
loaded or just add new ones.

Of course, last but not least would be to the import source project for
org.eclipse.jst.jsf.pagedesigner and rebuild and repackage the plugin
yourself. There is an export plugin wizard in PDE to help with this.


--Cam

Al Rivs wrote:

> Hello,

> In order to use eclipse as a WYSIWYG application, I have to modify the Page
> Designer's drag and drop feature to allow users to place elements from the
> palette in the sheat with absolute positioning.
> The element must been seen at its right position in editor's view and not
> only in preview (like frontPage for exemple).

> So I have to modify two classes in the Page Designer Plugin :

> org.eclipse.jst.pagedesigner.commands.moveNodeCommand
> org.eclipse.jst.pagedesigner.editpolicies.DragMoveEditPolicy

> My question is : how do I do to create my own plugin which integrate these
> two classes ?

> Regards,

> Al Rivs.
Previous Topic:Page Designer and absolute position
Next Topic:Re: How to use MyFaces trinidad
Goto Forum:
  


Current Time: Thu Apr 25 22:41:53 GMT 2024

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

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

Back to the top