[5] | 1 | package de.ugoe.cs.swe.bnftools.ui.refactoring.rename;
|
---|
| 2 |
|
---|
| 3 | import org.eclipse.swt.SWT;
|
---|
| 4 | import org.eclipse.swt.layout.GridData;
|
---|
| 5 | import org.eclipse.swt.layout.GridLayout;
|
---|
| 6 | import org.eclipse.swt.widgets.Composite;
|
---|
| 7 | import org.eclipse.swt.widgets.Label;
|
---|
| 8 | import org.eclipse.swt.widgets.Text;
|
---|
| 9 |
|
---|
| 10 | public class RenamePageComposite extends Composite {
|
---|
| 11 | private Text renameText;
|
---|
| 12 |
|
---|
| 13 | public RenamePageComposite(Composite parent, int style) {
|
---|
| 14 | super(parent, style);
|
---|
| 15 | final GridLayout gridLayout = new GridLayout();
|
---|
| 16 | setLayout(gridLayout);
|
---|
| 17 |
|
---|
| 18 | final Composite composite = new Composite(this, SWT.NONE);
|
---|
| 19 | composite.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING,
|
---|
| 20 | true, false));
|
---|
| 21 | final GridLayout gridLayout_1 = new GridLayout();
|
---|
| 22 | gridLayout_1.numColumns = 2;
|
---|
| 23 | composite.setLayout(gridLayout_1);
|
---|
| 24 |
|
---|
| 25 | final Label renameLabel = new Label(composite, SWT.NONE);
|
---|
| 26 | renameLabel.setLayoutData(new GridData(GridData.BEGINNING,
|
---|
| 27 | GridData.CENTER, false, true));
|
---|
| 28 | renameLabel.setText("New Name:");
|
---|
| 29 |
|
---|
| 30 | renameText = new Text(composite, SWT.BORDER);
|
---|
| 31 | renameText.setLayoutData(new GridData(GridData.FILL, GridData.CENTER,
|
---|
| 32 | true, true));
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | @Override
|
---|
| 36 | public void dispose() {
|
---|
| 37 | super.dispose();
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | public Text getRenameText() {
|
---|
| 41 | return renameText;
|
---|
| 42 | }
|
---|
| 43 | }
|
---|