Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » WindowBuilder Bug. Control position in Designer View is opposite(windowbuilder sashform control position opposite)
WindowBuilder Bug. Control position in Designer View is opposite [message #1057952] Fri, 10 May 2013 00:39
MOONKI PARK is currently offline MOONKI PARK
Messages: 5
Registered: May 2013
Junior Member
Eclipse: Juno

- Design Program Coding
: EditorPart , SashForm, Composite(Fill)
- open Windowbuilder Design
- Shown Design Control is deployed by opposite
RightComposite <-> LeftComposite Position is opposite in Windowbuilder Design View
Label, Text Position is opposite
- ViewPart, EditorPart is same result.
- Show my attached capture file

please ansewer this solution!!!

------------------------------------
My Coding

@Override
public void createPartControl(Composite parent) {
FillLayout fl_parent = new FillLayout(SWT.HORIZONTAL);
parent.setLayout(fl_parent);
Composite container = new Composite(parent, SWT.NONE);
container.setTouchEnabled(true);
container.setLayout(new GridLayout(1, false));

SashForm sashForm = new SashForm(container, SWT.NONE);
sashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));

Composite compositeLeft = new Composite(sashForm, SWT.BORDER);
compositeLeft.setLayout(new GridLayout(1, false));

Label lblNewLabel_1 = new Label(compositeLeft, SWT.NONE);
lblNewLabel_1.setText("Left");

Composite compositeRight = new Composite(sashForm, SWT.BORDER);
compositeRight.setLayout(new GridLayout(2, false));

Label lblNewLabel = new Label(compositeRight, SWT.NONE);
lblNewLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
lblNewLabel.setText("Right");

textRight = new Text(compositeRight, SWT.BORDER);
textRight.setText("rightText");
textRight.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
sashForm.setWeights(new int[] {1, 1});
}

[Updated on: Mon, 13 May 2013 20:49]

Report message to a moderator

Previous Topic:about rap help integration
Next Topic:RAP Locale - not working on Chrome/Firefox
Goto Forum:
  


Current Time: Thu Apr 24 06:36:53 EDT 2014

Powered by FUDForum. Page generated in 0.01519 seconds