source: default/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/refactoring/rename/RenamePageComposite.java @ 5

Last change on this file since 5 was 5, checked in by zeiss, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 1.3 KB
Line 
1package de.ugoe.cs.swe.bnftools.ui.refactoring.rename;
2
3import org.eclipse.swt.SWT;
4import org.eclipse.swt.layout.GridData;
5import org.eclipse.swt.layout.GridLayout;
6import org.eclipse.swt.widgets.Composite;
7import org.eclipse.swt.widgets.Label;
8import org.eclipse.swt.widgets.Text;
9
10public 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}
Note: See TracBrowser for help on using the repository browser.