Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF Shapes-RCP example and Property View
GEF Shapes-RCP example and Property View [message #228396] Wed, 20 December 2006 15:58 Go to next message
Jeff Higgins is currently offline Jeff HigginsFriend
Messages: 51
Registered: July 2009
Member
Hi,
another newbie question.

Please outline steps needed to provide a PropertySheetPage
for the GEF Shapes-RCP example.

Thanks,
Jeff Higgins
Lost ball in high weeds.

Must I:

implement an IPropertySheetPage:

public class ShapesPropertyPage extends PropertySheet{

Can I reuse the ShapesTreeEditPartFactory,
DiagramTreeEditPart, and
ShapeTreeEditPart
here?

Where do UndoablePropertySheetEntry
ResetValueCommand
SetValueCommand
fit into the scheme?

}

put a line in ShapesEditor getAdapter method:

public Object getAdapter(Class type) {
if (type.equals(IPropertySheetPage.class)) {
return new ShapesPropertyPage(new TreeViewer());
}
Re: GEF Shapes-RCP example and Property View [message #228430 is a reply to message #228396] Wed, 20 December 2006 18:00 Go to previous messageGo to next message
Jeff Higgins is currently offline Jeff HigginsFriend
Messages: 51
Registered: July 2009
Member
I guess another way to state the question would be.

When I open the GEF Shapes example in the Eclipse IDE
File:New:Examples.. Shapes Diagram
I get a new Shapes Diagram Editor
I open the Properties view with
Window:Show View:Other... General + Properties
I can add shapes to my diagram and select a shape
and it's properties are displayed (and editable) in
the Properties view.
I can open an Outline view and my shapes are displayed.
I can select a shape in the Outline view and the
selections are updated in the Properties view and Editor.

All fine.

But when I open my RCP application which is based
directly on the Shapes-RCP example I have added
menu items which open an Outline View and a
Property view. The Outline view works, but
I can't get the Property view to work.

What am I not doing?

Thanks,
Jeff Higgins



Jeff Higgins wrote:
> Hi,
> another newbie question.
>
> Please outline steps needed to provide a PropertySheetPage
> for the GEF Shapes-RCP example.
>
Re: GEF Shapes-RCP example and Property View [message #228438 is a reply to message #228396] Wed, 20 December 2006 19:24 Go to previous message
Jeff Higgins is currently offline Jeff HigginsFriend
Messages: 51
Registered: July 2009
Member
Poking his head up through the high weeds,
Jeff Higgins exclaims...

Hey.. when I added back the static IPropertyDescriptor[] fields,
and IPropertyDescriptor getProperty() methods that I had previously
deleted, suddenly I got my properties back!

Now...

Jeff Higgins wrote:
> Hi,
> another newbie question.
>
> Please outline steps needed to provide a PropertySheetPage
> for the GEF Shapes-RCP example.
>
> Thanks,
> Jeff Higgins
> Lost ball in high weeds.
>
> Must I:
>
> implement an IPropertySheetPage:
>
> public class ShapesPropertyPage extends PropertySheet{
>
> Can I reuse the ShapesTreeEditPartFactory,
> DiagramTreeEditPart, and
> ShapeTreeEditPart
> here?
>
> Where do UndoablePropertySheetEntry
> ResetValueCommand
> SetValueCommand
> fit into the scheme?
>
> }
>
> put a line in ShapesEditor getAdapter method:
>
> public Object getAdapter(Class type) {
> if (type.equals(IPropertySheetPage.class)) {
> return new ShapesPropertyPage(new TreeViewer());
> }
>
>
>
Previous Topic:Palette Background Color
Next Topic:properties view
Goto Forum:
  


Current Time: Tue Apr 23 13:34:24 GMT 2024

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

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

Back to the top