mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
bug 288032: cleanup, @Overrides
This commit is contained in:
parent
9982386c07
commit
622b077bbf
1 changed files with 13 additions and 7 deletions
|
@ -49,7 +49,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
|
|
||||||
// Add the profile UI contribution.
|
// Add the profile UI contribution.
|
||||||
Group profileGroup = ControlFactory.createGroup(page,
|
Group profileGroup = ControlFactory.createGroup(page,
|
||||||
MakeUIPlugin.getResourceString(PROFILE_GROUP_LABEL), 3);
|
MakeUIPlugin.getResourceString("ScannerConfigOptionsDialog.profile.group.label"), 3); //$NON-NLS-1$
|
||||||
|
|
||||||
GridData gd = (GridData) profileGroup.getLayoutData();
|
GridData gd = (GridData) profileGroup.getLayoutData();
|
||||||
gd.grabExcessHorizontalSpace = true;
|
gd.grabExcessHorizontalSpace = true;
|
||||||
|
@ -61,7 +61,8 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
((GridData)sipEnabledButton.getLayoutData()).horizontalSpan = 3;
|
((GridData)sipEnabledButton.getLayoutData()).horizontalSpan = 3;
|
||||||
((GridData)sipEnabledButton.getLayoutData()).grabExcessHorizontalSpace = true;
|
((GridData)sipEnabledButton.getLayoutData()).grabExcessHorizontalSpace = true;
|
||||||
sipEnabledButton.addSelectionListener(new SelectionAdapter() {
|
sipEnabledButton.addSelectionListener(new SelectionAdapter() {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent e) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -83,7 +84,8 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
((GridData) siBrowseButton.getLayoutData()).minimumWidth = 120;
|
((GridData) siBrowseButton.getLayoutData()).minimumWidth = 120;
|
||||||
siBrowseButton.addSelectionListener(new SelectionAdapter() {
|
siBrowseButton.addSelectionListener(new SelectionAdapter() {
|
||||||
|
|
||||||
public void widgetSelected(SelectionEvent event) {
|
@Override
|
||||||
|
public void widgetSelected(SelectionEvent event) {
|
||||||
handleSIPBrowseButtonSelected();
|
handleSIPBrowseButtonSelected();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,21 +122,24 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#isValid()
|
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#isValid()
|
||||||
*/
|
*/
|
||||||
public boolean isValid() {
|
@Override
|
||||||
|
public boolean isValid() {
|
||||||
return isValid;
|
return isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.jface.dialogs.IDialogPage#getErrorMessage()
|
* @see org.eclipse.jface.dialogs.IDialogPage#getErrorMessage()
|
||||||
*/
|
*/
|
||||||
public String getErrorMessage() {
|
@Override
|
||||||
|
public String getErrorMessage() {
|
||||||
return (isValid) ? null : SI_ERROR;
|
return (isValid) ? null : SI_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryPage#populateBuildInfo(org.eclipse.cdt.make.core.scannerconfig.IScannerConfigBuilderInfo2)
|
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryPage#populateBuildInfo(org.eclipse.cdt.make.core.scannerconfig.IScannerConfigBuilderInfo2)
|
||||||
*/
|
*/
|
||||||
protected void populateBuildInfo(IScannerConfigBuilderInfo2 buildInfo) {
|
@Override
|
||||||
|
protected void populateBuildInfo(IScannerConfigBuilderInfo2 buildInfo) {
|
||||||
if (buildInfo != null) {
|
if (buildInfo != null) {
|
||||||
buildInfo.setBuildOutputFileActionEnabled(true);
|
buildInfo.setBuildOutputFileActionEnabled(true);
|
||||||
buildInfo.setProviderOutputParserEnabled(providerId, sipEnabledButton.getSelection());
|
buildInfo.setProviderOutputParserEnabled(providerId, sipEnabledButton.getSelection());
|
||||||
|
@ -145,7 +150,8 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryPage#restoreFromBuildinfo(org.eclipse.cdt.make.core.scannerconfig.IScannerConfigBuilderInfo2)
|
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryPage#restoreFromBuildinfo(org.eclipse.cdt.make.core.scannerconfig.IScannerConfigBuilderInfo2)
|
||||||
*/
|
*/
|
||||||
protected void restoreFromBuildinfo(IScannerConfigBuilderInfo2 buildInfo) {
|
@Override
|
||||||
|
protected void restoreFromBuildinfo(IScannerConfigBuilderInfo2 buildInfo) {
|
||||||
if (buildInfo != null) {
|
if (buildInfo != null) {
|
||||||
sipEnabledButton.setSelection(buildInfo.isProviderOutputParserEnabled(providerId));
|
sipEnabledButton.setSelection(buildInfo.isProviderOutputParserEnabled(providerId));
|
||||||
sipRunCommandText.setText(buildInfo.getProviderRunCommand(providerId));
|
sipRunCommandText.setText(buildInfo.getProviderRunCommand(providerId));
|
||||||
|
|
Loading…
Add table
Reference in a new issue