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.
|
||||
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();
|
||||
gd.grabExcessHorizontalSpace = true;
|
||||
|
@ -61,6 +61,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
|||
((GridData)sipEnabledButton.getLayoutData()).horizontalSpan = 3;
|
||||
((GridData)sipEnabledButton.getLayoutData()).grabExcessHorizontalSpace = true;
|
||||
sipEnabledButton.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
}
|
||||
});
|
||||
|
@ -83,6 +84,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
|||
((GridData) siBrowseButton.getLayoutData()).minimumWidth = 120;
|
||||
siBrowseButton.addSelectionListener(new SelectionAdapter() {
|
||||
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent event) {
|
||||
handleSIPBrowseButtonSelected();
|
||||
}
|
||||
|
@ -120,6 +122,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.ui.dialogs.ICOptionPage#isValid()
|
||||
*/
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return isValid;
|
||||
}
|
||||
|
@ -127,6 +130,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.dialogs.IDialogPage#getErrorMessage()
|
||||
*/
|
||||
@Override
|
||||
public String getErrorMessage() {
|
||||
return (isValid) ? null : SI_ERROR;
|
||||
}
|
||||
|
@ -134,6 +138,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryPage#populateBuildInfo(org.eclipse.cdt.make.core.scannerconfig.IScannerConfigBuilderInfo2)
|
||||
*/
|
||||
@Override
|
||||
protected void populateBuildInfo(IScannerConfigBuilderInfo2 buildInfo) {
|
||||
if (buildInfo != null) {
|
||||
buildInfo.setBuildOutputFileActionEnabled(true);
|
||||
|
@ -145,6 +150,7 @@ public class MBSPerProjectSCDProfilePage extends AbstractDiscoveryPage {
|
|||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryPage#restoreFromBuildinfo(org.eclipse.cdt.make.core.scannerconfig.IScannerConfigBuilderInfo2)
|
||||
*/
|
||||
@Override
|
||||
protected void restoreFromBuildinfo(IScannerConfigBuilderInfo2 buildInfo) {
|
||||
if (buildInfo != null) {
|
||||
sipEnabledButton.setSelection(buildInfo.isProviderOutputParserEnabled(providerId));
|
||||
|
|
Loading…
Add table
Reference in a new issue