1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Fix warnings

This commit is contained in:
Anton Leherbauer 2008-04-24 12:02:08 +00:00
parent 19c97c7afd
commit 1aaa1cbdf6
2 changed files with 14 additions and 16 deletions

View file

@ -53,8 +53,6 @@ public class ScalabilityPreferencePage extends PreferencePage implements
// Files with this number of lines will trigger scalability mode
private IntegerFieldEditor fLinesToTrigger;
private Button fAlertMe;
private Button fEnableAll;
private Button fReconciler;
@ -179,7 +177,7 @@ public class ScalabilityPreferencePage extends PreferencePage implements
*/
private void createDetectionSettings( Composite parent ) {
Composite group = createGroupComposite( parent, 1, PreferencesMessages.ScalabilityPreferencePage_detection_group_label );
fAlertMe = createCheckButton(group, PreferencesMessages.ScalabilityPreferencePage_detection_label,PreferenceConstants.SCALABILITY_ALERT);
createCheckButton(group, PreferencesMessages.ScalabilityPreferencePage_detection_label,PreferenceConstants.SCALABILITY_ALERT);
}
/**
@ -198,7 +196,7 @@ public class ScalabilityPreferencePage extends PreferencePage implements
fLinesToTrigger.setValidRange( 1, Integer.MAX_VALUE );
String minValue = Integer.toString( 1 );
String maxValue = Integer.toString( Integer.MAX_VALUE );
fLinesToTrigger.setErrorMessage( MessageFormat.format(PreferencesMessages.ScalabilityPreferencePage_error, new String[]{ minValue, maxValue } ) );
fLinesToTrigger.setErrorMessage( MessageFormat.format(PreferencesMessages.ScalabilityPreferencePage_error, new Object[]{ minValue, maxValue } ) );
fLinesToTrigger.load();
fLinesToTrigger.setPropertyChangeListener( new IPropertyChangeListener() {

View file

@ -561,7 +561,7 @@ public class CSourceViewerConfiguration extends TextSourceViewerConfiguration {
/**
* Returns the ICProject associated with this CSourceViewerConfiguration, or null if
* no ICProject could be determined
* @return
* @return the ICProject or <code>null</code>
*/
protected ICProject getCProject() {
ITextEditor editor= getEditor();