Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » creating my own PropertySheetPage
creating my own PropertySheetPage [message #466392] Wed, 18 April 2007 08:54
Eclipse UserFriend
Originally posted by: unidad.gmx.net

Hi NG!

I have problems with a standalone-RCP-App 3.2.2 with GEF.

I use the standard properties-view.

If I change a properties-value in the properties-view an editor gets
state dirty and I can save the editor plus undoing the
properties-value-change.

So far, so good, but I did not like the alphabetical ordering in
standard properties-view.

So I create an own class extending the class PropertySheetPage
from package org.eclipse.ui.views.properties.

In my own class I set a new Sorter that fits my needs:

************************************************************ *******

package thisandthat;

import org.eclipse.ui.views.properties.PropertySheetPage;

public class MyPropertySheetPage extends PropertySheetPage {

public MyPropertySheetPage() {
setSorter(new MyPropertySheetSorter());
}
}

************************************************************ *******

On first glance, everything looked fine,
but when I use MyPropertySheetPage, the editor don't gets state dirty
and I can't undo the properties-value-change, which both is quite badly.

The only chance I see is changing the original class PropertySheetPage
and set the visibility of method setSorter(PropertySheetSorter sorter)
from protected to public, but this would mean breaking up the plugin
org.eclipse.ui.views.properties, which I don't want to do.

Anybody can help with this one?

Regards,

Ralf
Previous Topic:Tableviewer
Next Topic:line tracking
Goto Forum:
  


Current Time: Mon May 13 23:10:48 GMT 2024

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

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

Back to the top