How to implement Dialog action in PropertySheet Editor - like in VE [message #60699] |
Wed, 22 September 2004 17:08  |
Eclipse User |
|
|
|
Originally posted by: vladimir.bogus.com
This is a multi-part message in MIME format.
------=_NextPart_000_0050_01C4A0C6.D6238F80
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0051_01C4A0C6.D6238F80"
------=_NextPart_001_0051_01C4A0C6.D6238F80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am to implement a pop-up dialog in a Properties View like the one in =
VE:
What is the general approach in implementing this button as a part of =
the property sheet entry? Any leads would be appreciated a lot.=20
Thanks.
Vladimir
------=_NextPart_001_0051_01C4A0C6.D6238F80
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.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I am to implement a pop-up dialog in a =
Properties=20
View like the one in VE:</FONT><IMG alt=3D"" hspace=3D0=20
src=3D"cid:004b01c4a0e8$5d307490$026fa8c0@Xe" align=3Dbaseline =
border=3D0></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What is the general approach in =
implementing this=20
button as a part of the property sheet entry? Any leads would be =
appreciated a=20
lot. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Vladimir</FONT></DIV></BODY></HTML>
------=_NextPart_001_0051_01C4A0C6.D6238F80--
------=_NextPart_000_0050_01C4A0C6.D6238F80
Content-Type: image/gif;
name="action.gif"
Content-Transfer-Encoding: base64
Content-ID: <004b01c4a0e8$5d307490$026fa8c0@Xe>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1hWps3WBhzTe3R0zLS5ZOQuJeL4PWmpV/0yl9tk5jK2MVMDveYA/46e RXnoLb5q6ktOt7EV
tsl2I/rtNL/awmtgcIiTnesfV/bJ1W3xM7PdYaGUstlBPu9q+3yYZ9e70B8P ecYrvMcwz7zmu9Fz
yj+QhF+XZecpD/cqy53nnq+84CmO8tSH/mFOX8/oFa/A0nP59Eh3PfhWH/KK S6iHi1s16COfbMfz
Hd6HJL7OYh87MGNbdeezPdNeL3sgaH2C0c978UXOcDre3evKX4HN+X5EIWY/ /Cymt+5ZTzXmB2H2
RNf+zzG/+frbP2knyL/+98//Cf77//8AyAERAAA7
------=_NextPart_000_0050_01C4A0C6.D6238F80--
|
|
|
|
Re: How to implement Dialog action in PropertySheet Editor - like in VE [message #60711 is a reply to message #60707] |
Thu, 23 September 2004 08:24  |
Eclipse User |
|
|
|
Originally posted by: vladimir.bogus.com
Joe,
Thank you for your kind response. It helps me move in the right direction.
In the meantime, I would like to clarify that the pop-up I am looking for is
quite generic and not related to VE per se. In my case, the property editor
is used for a regular GEF editor, and I need to be able to customize the
drop list in the property editor via a pop-up dialog.
Thanks again.
Vladimir
"Joe Winchester" <winchest@uk.ibm.com> wrote in message
news:ciu892$col$1@eclipse.org...
> Vladimir wrote:
>
> > I am to implement a pop-up dialog in a Properties View like the one in
VE:
> >
> > What is the general approach in implementing this button as a part of
> > the property sheet entry? Any leads would be appreciated a lot.
> > Thanks.
>
> I presume you have your own JavaBean with a property where you want to
> do this. The simplest way is to create a BeanInfo class and specify a
> property editor, although this doesn't give you the ability to have
> combo and additional editor. It is fairly straightforward however and
> doesn't involve writing any Eclipse code - you just create a
> java.beans.PropertyEditor for the java.beans.PropertyDescriptor and
> specify whether you have tags (which creates a drop down list) or a
> custom editor (in which case the ... button will appear allowing it to
> be launched)
>
> However if you want a combo and drop down provided you must write an
> Eclipse plugin. There are several steps involved and we do intend to
> document this property shortly, however I'll give you the rough pointers .
>
> First - create a plugin. This will use the beaninfo.overrides extension
> point and declares to the Visual Editor the location of a /overrides
> folder containing information about your JavaBeans. Look at the
> org.eclipse.ve.jfc (Swing plugin) to see how this is done.
>
> Second - create a .override file for your JavaBean. This is an XMI file
> that contains the delta that will be applied to your introspected
> JavaBean. The format can be quite tricky to read at first, but the best
> thing to do is copy an existing one (perhaps AbstractButton that has a
> mnemonic property that's very similar to what you want to do) and rename
> stuff and chop out what looks like it doesn't belong. The only thing
> you really want in the file is a PropertyDescriptorDecorator that
> specifies a cellEditorClassName.
>
> Third - create a cellEditorClassName. This is a standard JFace cell
> editor but it has to implemented a few extra interfaces. Look at the
> Font one to get ideas to steal from.
>
> I'm sorry this is such a brief reply right now, but we do intend to
> write more complete documentation on how to extend the Visual Editor and
> adding custom property editors is one of the examples that will be
> covered. Let us know how you get on or whether you want me to expand
> any of the steps in more detail.
>
> Best regards,
>
> Joe Winchester
|
|
|
Re: How to implement Dialog action in PropertySheet Editor - like in VE [message #598985 is a reply to message #60699] |
Thu, 23 September 2004 06:28  |
Eclipse User |
|
|
|
Vladimir wrote:
> I am to implement a pop-up dialog in a Properties View like the one in VE:
>
> What is the general approach in implementing this button as a part of
> the property sheet entry? Any leads would be appreciated a lot.
> Thanks.
I presume you have your own JavaBean with a property where you want to
do this. The simplest way is to create a BeanInfo class and specify a
property editor, although this doesn't give you the ability to have
combo and additional editor. It is fairly straightforward however and
doesn't involve writing any Eclipse code - you just create a
java.beans.PropertyEditor for the java.beans.PropertyDescriptor and
specify whether you have tags (which creates a drop down list) or a
custom editor (in which case the ... button will appear allowing it to
be launched)
However if you want a combo and drop down provided you must write an
Eclipse plugin. There are several steps involved and we do intend to
document this property shortly, however I'll give you the rough pointers .
First - create a plugin. This will use the beaninfo.overrides extension
point and declares to the Visual Editor the location of a /overrides
folder containing information about your JavaBeans. Look at the
org.eclipse.ve.jfc (Swing plugin) to see how this is done.
Second - create a .override file for your JavaBean. This is an XMI file
that contains the delta that will be applied to your introspected
JavaBean. The format can be quite tricky to read at first, but the best
thing to do is copy an existing one (perhaps AbstractButton that has a
mnemonic property that's very similar to what you want to do) and rename
stuff and chop out what looks like it doesn't belong. The only thing
you really want in the file is a PropertyDescriptorDecorator that
specifies a cellEditorClassName.
Third - create a cellEditorClassName. This is a standard JFace cell
editor but it has to implemented a few extra interfaces. Look at the
Font one to get ideas to steal from.
I'm sorry this is such a brief reply right now, but we do intend to
write more complete documentation on how to extend the Visual Editor and
adding custom property editors is one of the examples that will be
covered. Let us know how you get on or whether you want me to expand
any of the steps in more detail.
Best regards,
Joe Winchester
|
|
|
Re: How to implement Dialog action in PropertySheet Editor - like in VE [message #599014 is a reply to message #60707] |
Thu, 23 September 2004 08:24  |
Eclipse User |
|
|
|
Joe,
Thank you for your kind response. It helps me move in the right direction.
In the meantime, I would like to clarify that the pop-up I am looking for is
quite generic and not related to VE per se. In my case, the property editor
is used for a regular GEF editor, and I need to be able to customize the
drop list in the property editor via a pop-up dialog.
Thanks again.
Vladimir
"Joe Winchester" <winchest@uk.ibm.com> wrote in message
news:ciu892$col$1@eclipse.org...
> Vladimir wrote:
>
> > I am to implement a pop-up dialog in a Properties View like the one in
VE:
> >
> > What is the general approach in implementing this button as a part of
> > the property sheet entry? Any leads would be appreciated a lot.
> > Thanks.
>
> I presume you have your own JavaBean with a property where you want to
> do this. The simplest way is to create a BeanInfo class and specify a
> property editor, although this doesn't give you the ability to have
> combo and additional editor. It is fairly straightforward however and
> doesn't involve writing any Eclipse code - you just create a
> java.beans.PropertyEditor for the java.beans.PropertyDescriptor and
> specify whether you have tags (which creates a drop down list) or a
> custom editor (in which case the ... button will appear allowing it to
> be launched)
>
> However if you want a combo and drop down provided you must write an
> Eclipse plugin. There are several steps involved and we do intend to
> document this property shortly, however I'll give you the rough pointers .
>
> First - create a plugin. This will use the beaninfo.overrides extension
> point and declares to the Visual Editor the location of a /overrides
> folder containing information about your JavaBeans. Look at the
> org.eclipse.ve.jfc (Swing plugin) to see how this is done.
>
> Second - create a .override file for your JavaBean. This is an XMI file
> that contains the delta that will be applied to your introspected
> JavaBean. The format can be quite tricky to read at first, but the best
> thing to do is copy an existing one (perhaps AbstractButton that has a
> mnemonic property that's very similar to what you want to do) and rename
> stuff and chop out what looks like it doesn't belong. The only thing
> you really want in the file is a PropertyDescriptorDecorator that
> specifies a cellEditorClassName.
>
> Third - create a cellEditorClassName. This is a standard JFace cell
> editor but it has to implemented a few extra interfaces. Look at the
> Font one to get ideas to steal from.
>
> I'm sorry this is such a brief reply right now, but we do intend to
> write more complete documentation on how to extend the Visual Editor and
> adding custom property editors is one of the examples that will be
> covered. Let us know how you get on or whether you want me to expand
> any of the steps in more detail.
>
> Best regards,
>
> Joe Winchester
|
|
|
Powered by
FUDForum. Page generated in 0.04003 seconds