SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by domfe » Fri Dec 03, 2010 3:20 am
Hi.
My composite layout is of type FormLayout, the composite has three widgets.
I'm not able in the Tree Structure to move the elements and change the order, for example to
change the tab list (I'm in XWT) as I can do if the Composite has an absolute layout.
Is there a preference to allow this?
Thanks.
-
domfe
-
- Posts: 46
- Joined: Mon Oct 04, 2010 6:42 am
by Eric Clayberg » Thu Dec 09, 2010 4:13 pm
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by domfe » Fri Dec 10, 2010 12:03 am
Thank Eric. I've just upgraded but I can't test it. The designer give me an error when using FormLayout in the container.
- Code: Select all
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" x:Class="test.Example2" text="XWT Application">
<Shell.layout>
<FormLayout/>
</Shell.layout>
<Label text="New Label">
<Label.layoutData>
<FormData>
<FormData.top>
<FormAttachment numerator="0" offset="15"/>
</FormData.top>
<FormData.left>
<FormAttachment numerator="0" offset="35"/>
</FormData.left>
</FormData>
</Label.layoutData>
</Label>
</Shell>
- Code: Select all
Full context stack trace:
java.lang.NullPointerException
at com.instantiations.designer.xwt.model.layout.form.FormAttachmentInfo.readPropertiesValue(FormAttachmentInfo.java:153)
at com.instantiations.designer.xwt.model.layout.form.FormAttachmentInfo.refresh_fetch(FormAttachmentInfo.java:88)
at com.instantiations.designer.core.model.ObjectInfo.refresh_fetch(ObjectInfo.java:566)
at com.instantiations.designer.core.model.ObjectInfo.refresh_fetch(ObjectInfo.java:566)
at com.instantiations.designer.xwt.model.widgets.Control_Info.access$0(Control_Info.java:1)
at com.instantiations.designer.xwt.model.widgets.Control_Info$1.run(Control_Info.java:98)
at com.instantiations.designer.xwt.model.widgets.Control_Info.refresh_fetch(Control_Info.java:165)
at com.instantiations.designer.xwt.model.widgets.Control_Info.refresh_fetch(Control_Info.java:113)
at com.instantiations.designer.xwt.model.widgets.Control_Info.refresh_fetch(Control_Info.java:96)
at com.instantiations.designer.core.model.ObjectInfo.refresh_fetch(ObjectInfo.java:566)
at com.instantiations.designer.xwt.model.widgets.Control_Info.access$0(Control_Info.java:1)
at com.instantiations.designer.xwt.model.widgets.Control_Info$1.run(Control_Info.java:98)
at com.instantiations.designer.xwt.model.widgets.Control_Info.refresh_fetch(Control_Info.java:165)
at com.instantiations.designer.xwt.model.widgets.Control_Info.refresh_fetch(Control_Info.java:113)
at com.instantiations.designer.xwt.model.widgets.Control_Info.refresh_fetch(Control_Info.java:96)
at com.instantiations.designer.xwt.model.widgets.Scrollable_Info.refresh_fetch(Scrollable_Info.java:38)
at com.instantiations.designer.xwt.model.widgets.Composite_Info.refresh_fetch(Composite_Info.java:182)
at com.instantiations.designer.core.model.ObjectInfo$5$1.run(ObjectInfo.java:439)
at com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:121)
at com.instantiations.designer.core.model.ObjectInfo$5.run(ObjectInfo.java:436)
at com.instantiations.designer.core.model.ObjectInfo.doRefresh(ObjectInfo.java:456)
at com.instantiations.designer.core.model.ObjectInfo.refresh(ObjectInfo.java:433)
at com.instantiations.designer.core.xml.editor.XMLDesignPage.internal_refreshGEF(XMLDesignPage.java:379)
at com.instantiations.designer.core.xml.editor.XMLDesignPage.internal_refreshGEF(XMLDesignPage.java:312)
at com.instantiations.designer.core.xml.editor.UndoManager.refreshDesignerEditor(UndoManager.java:218)
at com.instantiations.designer.core.xml.editor.UndoManager.activate(UndoManager.java:71)
at com.instantiations.designer.core.xml.editor.XMLDesignPage.setActive(XMLDesignPage.java:145)
at com.instantiations.designer.core.xml.editor.AbstractXMLEditor.pageChange(AbstractXMLEditor.java:277)
at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:290)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Thanks again.
-
domfe
-
- Posts: 46
- Joined: Mon Oct 04, 2010 6:42 am
by Eric Clayberg » Fri Dec 10, 2010 8:42 am
Please resubmit using the "Contact Support" button in the error window. We need to see the entire ".log" file.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by domfe » Wed Dec 15, 2010 2:53 am
Hi Eric,
now I can move a widget up and down the tree.
I did the test with "FormLayout editing mode" on "Automatic placement".
The "Classic placement" gives me error so I open another post for
this specific problem.
Thank you a lot.
-
domfe
-
- Posts: 46
- Joined: Mon Oct 04, 2010 6:42 am
by Eric Clayberg » Wed Dec 22, 2010 3:51 pm
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
Return to SWT Designer
Who is online
Users browsing this forum: Bing [Bot] and 1 guest