Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Advice on property editing for Newbie
Advice on property editing for Newbie [message #212035] Fri, 17 March 2006 10:16
Martin Holmes is currently offline Martin HolmesFriend
Messages: 79
Registered: July 2009
Member
This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C649AB.CA508E30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,
I have an object that implements IPropertySource and voila I =
can instantly edit my properties in the properties view as long as I use =
the correct property descripter.

The TextPropertyDescriptor provides a text editor that isn't really =
suitable for one of the properties because it can contain xhtml.


I would like some advice on how I should go about editing the property, =
I believe that perhaps it should be consistent with the Eclipse/GEF way =
of doing things. I am a newbie so I am not entirely sure what these are.

Here are some solutions which I have thought of:

1.. Use the Direct edit feature to provide a dialog that presents a =
textarea large enough for editing xhtml.
2.. Provide a custom text editor for the properties view.
3.. Use a standard platform dialog that permits the editing of xhtml.
4.. Cut/paste between a standard Eclipse editor of my choice and the =
properties view=20
5.. When a diagrams object is selected use the context menu with an =
"edit the xhtml property" item, that opens the default editor for xhtml =
.. Set its content with that of the xhtml property, listen for the save, =
update the objects property and close the editor.
6.. Provide a navigation view similar to package explorer that shows =
each diagram object and its properties. This will have an "open with" =
context menu item to edit any property with any editor.
Any thoughts, ideas, would be appreciated.

many thanks

Martin
------=_NextPart_000_001A_01C649AB.CA508E30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1528" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; I have =
an object=20
that implements IPropertySource and voila I can instantly edit my =
properties in=20
the properties view as long as I use the correct property=20
descripter.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The&nbsp;TextPropertyDescriptor =
provides a text=20
editor that isn't really suitable for one of the properties because it =
can=20
contain xhtml.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I would like some advice on how I =
should go about=20
editing the property, I believe that perhaps it should be consistent =
with the=20
Eclipse/GEF way of doing things. I am a newbie so I am not entirely sure =
what=20
these are.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Here are some solutions which I have =
thought=20
of:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<OL>
<LI><FONT face=3DArial size=3D2>Use the Direct edit feature to provide =
a dialog=20
that presents a textarea large enough for editing xhtml.</FONT></LI>
<LI><FONT face=3DArial size=3D2>Provide a custom text editor for the =
properties=20
view.</FONT></LI>
<LI><FONT face=3DArial size=3D2>Use a standard platform dialog =
that&nbsp;permits=20
the editing of xhtml.</FONT></LI>
<LI><FONT face=3DArial size=3D2>Cut/paste between a standard Eclipse =
editor of my=20
choice&nbsp;and the properties view </FONT></LI>
<LI><FONT face=3DArial size=3D2>When a diagrams object is selected use =
the context=20
menu with an "edit the xhtml property" item, that opens the default =
editor for=20
xhtml . Set its content with that of the xhtml property, listen for =
the save,=20
update the objects property and close the editor.</FONT></LI>
<LI><FONT face=3DArial size=3D2>Provide a navigation view similar to =
package=20
explorer that shows each diagram object and its properties. This will =
have an=20
"open with" context menu item to edit any property with any=20
editor.</FONT></LI></OL>
<DIV><FONT face=3DArial size=3D2>Any thoughts, ideas, would be=20
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>many thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Martin</FONT></DIV></BODY></HTML>

------=_NextPart_000_001A_01C649AB.CA508E30--
Previous Topic:When should i create an edit part?
Next Topic:GEF problem - Needed help urgently
Goto Forum:
  


Current Time: Sun Dec 04 10:12:44 GMT 2022

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

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

Back to the top