creating my own PropertySheetPage [message #466392] |
Wed, 18 April 2007 08:54 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds