mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
bug 288032: cleanup, message ids concatenated to enjoy eclipse IDE support
This commit is contained in:
parent
8696b7c566
commit
52a34918ad
1 changed files with 14 additions and 25 deletions
|
@ -37,31 +37,19 @@ public abstract class AbstractDiscoveryPage extends DialogPage {
|
|||
protected static final String PREFIX = "ScannerConfigOptionsDialog"; //$NON-NLS-1$
|
||||
|
||||
protected static final String PROFILE_GROUP_LABEL = "ScannerConfigOptionsDialog.profile.group.label"; //$NON-NLS-1$
|
||||
private static final String VARIABLES_BUTTON = "ScannerConfigOptionsDialog.common.variables.button"; //$NON-NLS-1$
|
||||
|
||||
private static final String BO_PROVIDER_PARSER_ENABLED_BUTTON = "ScannerConfigOptionsDialog.boProvider.parser.enabled.button"; //$NON-NLS-1$
|
||||
private static final String BO_PROVIDER_OPEN_LABEL = "ScannerConfigOptionsDialog.boProvider.open.label"; //$NON-NLS-1$
|
||||
private static final String BO_PROVIDER_BROWSE_BUTTON = "ScannerConfigOptionsDialog.boProvider.browse.button"; //$NON-NLS-1$
|
||||
private static final String BO_PROVIDER_OPEN_FILE_DIALOG = "ScannerConfigOptionsDialog.boProvider.browse.openFileDialog"; //$NON-NLS-1$
|
||||
private static final String BO_PROVIDER_LOAD_BUTTON = "ScannerConfigOptionsDialog.boProvider.load.button"; //$NON-NLS-1$
|
||||
protected static final String B_ENABLE = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.boProvider.parser.enabled.button"); //$NON-NLS-1$
|
||||
protected static final String L_OPEN = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.boProvider.open.label"); //$NON-NLS-1$
|
||||
protected static final String B_BROWSE = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.boProvider.browse.button"); //$NON-NLS-1$
|
||||
protected static final String F_OPEN = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.boProvider.browse.openFileDialog"); //$NON-NLS-1$
|
||||
protected static final String B_LOAD = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.boProvider.load.button"); //$NON-NLS-1$
|
||||
|
||||
private static final String SI_PROVIDER_PARSER_ENABLED_BUTTON = "ScannerConfigOptionsDialog.siProvider.parser.enabled.button"; //$NON-NLS-1$
|
||||
private static final String SI_PROVIDER_COMMAND_LABEL = "ScannerConfigOptionsDialog.siProvider.command.label"; //$NON-NLS-1$
|
||||
private static final String SI_PROVIDER_BROWSE_BUTTON = "ScannerConfigOptionsDialog.siProvider.browse.button"; //$NON-NLS-1$
|
||||
private static final String SI_PROVIDER_COMMAND_DIALOG = "ScannerConfigOptionsDialog.siProvider.browse.runCommandDialog"; //$NON-NLS-1$
|
||||
private static final String SI_PROVIDER_COMMAND_ERROR_MESSAGE= "ScannerConfigOptionsDialog.siProvider.command.errorMessage"; //$NON-NLS-1$
|
||||
|
||||
protected static final String B_ENABLE = MakeUIPlugin.getResourceString(BO_PROVIDER_PARSER_ENABLED_BUTTON);
|
||||
protected static final String L_OPEN = MakeUIPlugin.getResourceString(BO_PROVIDER_OPEN_LABEL);
|
||||
protected static final String B_BROWSE = MakeUIPlugin.getResourceString(BO_PROVIDER_BROWSE_BUTTON);
|
||||
protected static final String F_OPEN = MakeUIPlugin.getResourceString(BO_PROVIDER_OPEN_FILE_DIALOG);
|
||||
protected static final String B_LOAD = MakeUIPlugin.getResourceString(BO_PROVIDER_LOAD_BUTTON);
|
||||
|
||||
protected static final String SI_ENABLE = MakeUIPlugin.getResourceString(SI_PROVIDER_PARSER_ENABLED_BUTTON);
|
||||
protected static final String SI_COMMAND = MakeUIPlugin.getResourceString(SI_PROVIDER_COMMAND_LABEL);
|
||||
protected static final String SI_BROWSE = MakeUIPlugin.getResourceString(SI_PROVIDER_BROWSE_BUTTON);
|
||||
protected static final String SI_DIALOG = MakeUIPlugin.getResourceString(SI_PROVIDER_COMMAND_DIALOG);
|
||||
protected static final String SI_ERROR = MakeUIPlugin.getResourceString(SI_PROVIDER_COMMAND_ERROR_MESSAGE);
|
||||
protected static final String SI_ENABLE = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.siProvider.parser.enabled.button"); //$NON-NLS-1$
|
||||
protected static final String SI_COMMAND = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.siProvider.command.label"); //$NON-NLS-1$
|
||||
protected static final String SI_ARGS = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.siProvider.args.label"); //$NON-NLS-1$
|
||||
protected static final String SI_BROWSE = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.siProvider.browse.button"); //$NON-NLS-1$
|
||||
protected static final String SI_DIALOG = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.siProvider.browse.runCommandDialog"); //$NON-NLS-1$
|
||||
protected static final String SI_ERROR = MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.siProvider.command.errorMessage"); //$NON-NLS-1$
|
||||
|
||||
protected AbstractDiscoveryOptionsBlock fContainer; // parent
|
||||
|
||||
|
@ -101,7 +89,7 @@ public abstract class AbstractDiscoveryPage extends DialogPage {
|
|||
|
||||
protected Button addVariablesButton(Composite parent, final Text control) {
|
||||
Button variablesButton = ControlFactory.createPushButton(parent,
|
||||
MakeUIPlugin.getResourceString(VARIABLES_BUTTON));
|
||||
MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.common.variables.button")); //$NON-NLS-1$
|
||||
((GridData) variablesButton.getLayoutData()).widthHint =
|
||||
SWTUtil.getButtonWidthHint(variablesButton);
|
||||
|
||||
|
@ -111,7 +99,8 @@ public abstract class AbstractDiscoveryPage extends DialogPage {
|
|||
*
|
||||
* @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
|
||||
*/
|
||||
public void widgetSelected(SelectionEvent arg0) {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent arg0) {
|
||||
handleVariablesButtonSelected(control);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue