1 | String getLabelResource() {↵ | | 1 | String getLabelResource() {↵
|
2 | return "runtime_controller_title"; // $NON-NLS-1$↵ | | 2 | return "if_controller_title"; // $NON-NLS-1$↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Initialize the GUI components and layout for this component.↵ | | 5 | * Initialize the GUI components and layout for this component.↵
|
6 | */↵ | | 6 | */↵
|
7 | private void init() {↵ | | 7 | private void init() {↵
|
8 | // The Loop Controller panel can be displayed standalone or inside↵ | | |
|
9 | // another panel. For standalone, we want to display the TITLE, NAME,↵ | | |
|
10 | // etc. (everything). However, if we want to display it within another↵ | | |
|
11 | // panel, we just display the Loop Count fields (not the TITLE and↵ | | |
|
12 | // NAME).↵ | | |
|
|
13 | // Standalone↵ | | 8 | // Standalone↵
|
14 | if (displayName) {↵ | | 9 | if (displayName) {↵
|
15 | setLayout(new BorderLayout(0, 5));↵ | | 10 | setLayout(new BorderLayout(0, 5));↵
|
16 | setBorder(makeBorder());↵ | | 11 | setBorder(makeBorder());↵
|
17 | add(makeTitlePanel(), BorderLayout.NORTH);↵ | | 12 | add(makeTitlePanel(), BorderLayout.NORTH);↵
|
|
18 | JPanel mainPanel = new JPanel(new BorderLayout());↵ | | 13 | JPanel mainPanel = new JPanel(new BorderLayout());↵
|
19 | mainPanel.add(createLoopCountPanel(), BorderLayout.NORTH);↵ | | 14 | mainPanel.add(createConditionPanel(), BorderLayout.NORTH);↵
|
20 | add(mainPanel, BorderLayout.CENTER);↵ | | 15 | add(mainPanel, BorderLayout.CENTER);↵
|
|
21 | } else {↵ | | 16 | } else {↵
|
22 | // Embedded↵ | | 17 | // Embedded↵
|
23 | setLayout(new BorderLayout());↵ | | 18 | setLayout(new BorderLayout());↵
|
24 | add(createLoopCountPanel(), BorderLayout.NORTH);↵ | | 19 | add(createConditionPanel(), BorderLayout.NORTH);↵
|
25 | }↵ | | 20 | }↵
|
26 | } | | 21 | }
|