93 if (supportsTargetAll) |
93 if (supportsTargetAll) |
94 { |
94 { |
95 targetingRulesCombo.add(Messages.getString("ExecutablesTab.4")); //$NON-NLS-1$ |
95 targetingRulesCombo.add(Messages.getString("ExecutablesTab.4")); //$NON-NLS-1$ |
96 } |
96 } |
97 targetingRulesCombo.setText(Messages.getString("ExecutablesTab.5")); //$NON-NLS-1$ |
97 targetingRulesCombo.setText(Messages.getString("ExecutablesTab.5")); //$NON-NLS-1$ |
|
98 targetingRulesCombo.setData(".uid", "ExecutablesTab.targetingRulesCombo"); //$NON-NLS-1$ //$NON-NLS-2$ |
98 final GridData gd_targetingRulesCombo = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1); |
99 final GridData gd_targetingRulesCombo = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1); |
99 targetingRulesCombo.setLayoutData(gd_targetingRulesCombo); |
100 targetingRulesCombo.setLayoutData(gd_targetingRulesCombo); |
100 targetingRulesCombo.addListener(SWT.Selection, new Listener() { |
101 targetingRulesCombo.addListener(SWT.Selection, new Listener() { |
101 public void handleEvent(Event e) { |
102 public void handleEvent(Event e) { |
102 changeTargetingRule(targetingRulesCombo.getSelectionIndex()); |
103 changeTargetingRule(targetingRulesCombo.getSelectionIndex()); |
154 buttonComp.setLayout(new GridLayout(3, false)); |
155 buttonComp.setLayout(new GridLayout(3, false)); |
155 buttonComp.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false, 3, 1)); |
156 buttonComp.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, false, 3, 1)); |
156 |
157 |
157 addButton = new Button(buttonComp, SWT.PUSH); |
158 addButton = new Button(buttonComp, SWT.PUSH); |
158 addButton.setText(Messages.getString("ExecutablesTab.6")); //$NON-NLS-1$ |
159 addButton.setText(Messages.getString("ExecutablesTab.6")); //$NON-NLS-1$ |
|
160 addButton.setData(".uid", "ExecutablesTab.addButton"); //$NON-NLS-1$ //$NON-NLS-2$ |
159 addButton.addSelectionListener(new SelectionAdapter() { |
161 addButton.addSelectionListener(new SelectionAdapter() { |
160 public void widgetSelected(SelectionEvent e) { |
162 public void widgetSelected(SelectionEvent e) { |
161 FileDialog dialog = new FileDialog(getShell(), SWT.NONE); |
163 FileDialog dialog = new FileDialog(getShell(), SWT.NONE); |
162 dialog.setText(Messages.getString("ExecutablesTab.7")); //$NON-NLS-1$ |
164 dialog.setText(Messages.getString("ExecutablesTab.7")); //$NON-NLS-1$ |
163 final String res = dialog.open(); |
165 final String res = dialog.open(); |
175 } |
177 } |
176 }); |
178 }); |
177 |
179 |
178 selectAllButton = new Button(buttonComp, SWT.PUSH); |
180 selectAllButton = new Button(buttonComp, SWT.PUSH); |
179 selectAllButton.setText(Messages.getString("ExecutablesTab.9")); //$NON-NLS-1$ |
181 selectAllButton.setText(Messages.getString("ExecutablesTab.9")); //$NON-NLS-1$ |
|
182 selectAllButton.setData(".uid", "ExecutablesTab.selectAllButton"); //$NON-NLS-1$ //$NON-NLS-2$ |
180 selectAllButton.addSelectionListener(new SelectionAdapter() { |
183 selectAllButton.addSelectionListener(new SelectionAdapter() { |
181 public void widgetSelected(SelectionEvent e) { |
184 public void widgetSelected(SelectionEvent e) { |
182 executablesBlock.setAllChecked(true); |
185 executablesBlock.setAllChecked(true); |
183 } |
186 } |
184 }); |
187 }); |
185 |
188 |
186 unselectAllButton = new Button(buttonComp, SWT.PUSH); |
189 unselectAllButton = new Button(buttonComp, SWT.PUSH); |
187 unselectAllButton.setText(Messages.getString("ExecutablesTab.10")); //$NON-NLS-1$ |
190 unselectAllButton.setText(Messages.getString("ExecutablesTab.10")); //$NON-NLS-1$ |
|
191 unselectAllButton.setData(".uid", "ExecutablesTab.unselectAllButton"); //$NON-NLS-1$ //$NON-NLS-2$ |
188 unselectAllButton.addSelectionListener(new SelectionAdapter() { |
192 unselectAllButton.addSelectionListener(new SelectionAdapter() { |
189 public void widgetSelected(SelectionEvent e) { |
193 public void widgetSelected(SelectionEvent e) { |
190 executablesBlock.setAllChecked(false); |
194 executablesBlock.setAllChecked(false); |
191 } |
195 } |
192 }); |
196 }); |