attributes in Properties view don't appear for new objects [message #144762] |
Wed, 28 July 2004 05:08  |
Eclipse User |
|
|
|
Originally posted by: victorm.classys.net
Hello,
I have a problem with the new inserted objects in GEF Editor.
When I drag a new object from pallete, and I select it, his properties =
does not appear in Properties view. Even I deselect and reselect it, the=
=
Properties View is empty.
I put a breakpoint in model at the method getPropertyValue and didn't =
arrive there.
I think I had a problem with the PropertyChangeListener for the new =
inserted objects.
Can anybody give me an advice how can i solve this problem.
A good day.
|
|
|
|
|
|
Re: attributes in Properties view don't appear for new objects [message #145613 is a reply to message #144762] |
Fri, 30 July 2004 04:27   |
Eclipse User |
|
|
|
Originally posted by: word-up.gmx.de
Hi Victor,
Look at the IBM Redbook sample applications. There you'll find a class
named EObjectPropertySource. If you're building upon an emf model, you'll
just have to change the name of the package attribute and you have a
generic way of creating the propertyDescriptors.
If you're using your own model, you can rewrite the
getPropertyDescriptors() method using ordinary JAVA reflection to have a
generic solution, or just write the method for each Class you have, if
you've got not too much.
Victor Moga wrote:
> Hello,
> I have a problem with the new inserted objects in GEF Editor.
> When I drag a new object from pallete, and I select it, his properties
> does not appear in Properties view. Even I deselect and reselect it, the
> Properties View is empty.
> I put a breakpoint in model at the method getPropertyValue and didn't
> arrive there.
> I think I had a problem with the PropertyChangeListener for the new
> inserted objects.
> Can anybody give me an advice how can i solve this problem.
> A good day.
|
|
|
Re: attributes in Properties view don't appear for new objects [message #145889 is a reply to message #144762] |
Mon, 02 August 2004 06:32  |
Eclipse User |
|
|
|
Originally posted by: victorm.classys.net
My model implements IPropertySource and my parts implement =
IPropertyChangeListener. I have a MultiPageEditor with a text editor and=
a =
GEF Editor. New object for me means object just added from palette.
For this object properties do not anymore appear and when i move and =
resize other objects yet existing in model, the attributes in properties=
=
view don't update.
I added a property change listener to my model and i activated this =
listener in the part.
At deselection and selection the debugger arrives in the getPropertyValu=
e =
method of the model, but when i move an object yet selected or add an =
object from the palette the debugger does not arrive there(at the point =
=
getPropertyValue method of the model)
|
|
|
Powered by
FUDForum. Page generated in 0.10906 seconds