Skip to main content



      Home
Home » Eclipse Projects » GEF » Question on EditParts as an IPropertySource
Question on EditParts as an IPropertySource [message #87092] Mon, 14 July 2003 08:56 Go to next message
Eclipse UserFriend
Originally posted by: jgreen.upb.de

Hi,
all my EditParts are now IPropertySources, so I can use the Properties
View to edit them. (as described in the article "Take control of your
properties" by Dicky Johan)

Everything works fine, but now I have to implement the "Reset to
Default" feature for some properties.
Is it possible that another "resetPropertyValue(Object id)" method is
called when I hit the associated button in the Properties View? Not the
one in the associated EditPart?

Does anyone have a hint on this?
Thanks a lot

Joel



Heres my log message:
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.gef.internal.ui.properties.UndoablePropertySheet Entry.resetPropertyValue(UndoablePropertySheetEntry.java:562 )
at
org.eclipse.ui.views.properties.PropertySheetViewer.resetPro perties(PropertySheetViewer.java:743)
at
org.eclipse.ui.views.properties.DefaultsAction.run(DefaultsA ction.java:36)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
at
....
Re: Question on EditParts as an IPropertySource [message #87121 is a reply to message #87092] Mon, 14 July 2003 09:38 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could also implement IProperySource directly on your model, in some
cases. The only other alternative is to wrapper the editpart (or model)
with an adapter which implements IProperySource.

"Joel Greenyer" <jgreen@upb.de> wrote in message
news:beu9cs$q1b$1@eclipse.org...
> Hi,
> all my EditParts are now IPropertySources, so I can use the Properties
> View to edit them. (as described in the article "Take control of your
> properties" by Dicky Johan)
>
> Everything works fine, but now I have to implement the "Reset to
> Default" feature for some properties.
> Is it possible that another "resetPropertyValue(Object id)" method is
> called when I hit the associated button in the Properties View? Not the
> one in the associated EditPart?
>
> Does anyone have a hint on this?
> Thanks a lot
>
> Joel
>
>
>
> Heres my log message:
> !MESSAGE java.lang.NullPointerException
> !STACK 0
> java.lang.NullPointerException
> at
>
org.eclipse.gef.internal.ui.properties.UndoablePropertySheet Entry.resetPrope
rtyValue(UndoablePropertySheetEntry.java:562)
> at
>
org.eclipse.ui.views.properties.PropertySheetViewer.resetPro perties(Property
SheetViewer.java:743)
> at
> org.eclipse.ui.views.properties.DefaultsAction.run(DefaultsA ction.java:36)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:842 )
> at
> ...
>
Previous Topic:tracking tool activate in palette-less applications
Next Topic:ScrollableThumbnail - image disposal
Goto Forum:
  


Current Time: Fri Apr 25 23:30:59 EDT 2025

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

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

Back to the top