GEF Shapes-RCP example and Property View [message #228396] |
Wed, 20 December 2006 10:58  |
Eclipse User |
|
|
|
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 #228438 is a reply to message #228396] |
Wed, 20 December 2006 14:24  |
Eclipse User |
|
|
|
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());
> }
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03533 seconds