mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Fix warnings
This commit is contained in:
parent
19c97c7afd
commit
1aaa1cbdf6
2 changed files with 14 additions and 16 deletions
|
@ -53,8 +53,6 @@ public class ScalabilityPreferencePage extends PreferencePage implements
|
||||||
// Files with this number of lines will trigger scalability mode
|
// Files with this number of lines will trigger scalability mode
|
||||||
private IntegerFieldEditor fLinesToTrigger;
|
private IntegerFieldEditor fLinesToTrigger;
|
||||||
|
|
||||||
private Button fAlertMe;
|
|
||||||
|
|
||||||
private Button fEnableAll;
|
private Button fEnableAll;
|
||||||
|
|
||||||
private Button fReconciler;
|
private Button fReconciler;
|
||||||
|
@ -179,7 +177,7 @@ public class ScalabilityPreferencePage extends PreferencePage implements
|
||||||
*/
|
*/
|
||||||
private void createDetectionSettings( Composite parent ) {
|
private void createDetectionSettings( Composite parent ) {
|
||||||
Composite group = createGroupComposite( parent, 1, PreferencesMessages.ScalabilityPreferencePage_detection_group_label );
|
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 );
|
fLinesToTrigger.setValidRange( 1, Integer.MAX_VALUE );
|
||||||
String minValue = Integer.toString( 1 );
|
String minValue = Integer.toString( 1 );
|
||||||
String maxValue = Integer.toString( Integer.MAX_VALUE );
|
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.load();
|
||||||
fLinesToTrigger.setPropertyChangeListener( new IPropertyChangeListener() {
|
fLinesToTrigger.setPropertyChangeListener( new IPropertyChangeListener() {
|
||||||
|
|
||||||
|
|
|
@ -561,7 +561,7 @@ public class CSourceViewerConfiguration extends TextSourceViewerConfiguration {
|
||||||
/**
|
/**
|
||||||
* Returns the ICProject associated with this CSourceViewerConfiguration, or null if
|
* Returns the ICProject associated with this CSourceViewerConfiguration, or null if
|
||||||
* no ICProject could be determined
|
* no ICProject could be determined
|
||||||
* @return
|
* @return the ICProject or <code>null</code>
|
||||||
*/
|
*/
|
||||||
protected ICProject getCProject() {
|
protected ICProject getCProject() {
|
||||||
ITextEditor editor= getEditor();
|
ITextEditor editor= getEditor();
|
||||||
|
|
Loading…
Add table
Reference in a new issue