TabbedPropertySheetPage reorganization [message #334960] |
Thu, 12 March 2009 06:29 |
Eclipse User |
|
|
|
Hello everybody,
I have some problems/questions with the
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPa ge.
1. I want to use my Properties View on the bottom or on the right side of
my perspective. But when I move it from bottom to right there isn't a
reorganization of the view, I have to resize the view only then the
reorganization started. Is there a change to reorganize the Section after
I moved it?
My TestSection:
public class TestSection extends AbstractPropertySection {
@Override
public void createControls(Composite parent,
final TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
final Composite composite = getWidgetFactory().createComposite(parent);
composite.addControlListener(new ControlListener() {
@Override
public void controlMoved(ControlEvent e) {
}
@Override
public void controlResized(ControlEvent e) {
int width = composite.getBounds().width;
System.err.println(width);
System.err.println(composite.getBounds().height);
if (width < 400)
composite.setLayout(new GridLayout(2, false));
else
composite.setLayout(new GridLayout(4, false));
}});
GridLayout gridLayout = new GridLayout(2, false);
gridLayout.verticalSpacing = 2;
composite.setLayout(gridLayout);
CLabel label = getWidgetFactory().createCLabel(composite, "Label:");
Text text = getWidgetFactory().createText(composite, "");
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
label = getWidgetFactory().createCLabel(composite, "Label:");
text = getWidgetFactory().createText(composite, "");
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
...
}
}
2. The Scroll Speed of the Properties View is very slow. How can I make it
faster?
3. Is it possible to move the tabfolders of the TabbedPropertySheetPage
from the left side to the top of the View?
If someone know some advise on resolving this problem it would be greatly
appreciated. Thanks!
Robert
|
|
|
Powered by
FUDForum. Page generated in 0.02309 seconds