summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshuaizhang2012-03-04 22:26:11 (EST)
committer heli2012-03-04 22:26:11 (EST)
commit626c2f0961c19937471999524a999869e840f180 (patch)
treebb2068891af044311dce0c87cd80e136be7bac3a
parent62dadd9fb063a308a298b449b417a5eb2f3b6ea9 (diff)
downloadorg.eclipse.birt-626c2f0961c19937471999524a999869e840f180.zip
org.eclipse.birt-626c2f0961c19937471999524a999869e840f180.tar.gz
org.eclipse.birt-626c2f0961c19937471999524a999869e840f180.tar.bz2
- Summary:Auto Scale setting for Radar Line is not correct. on behalf of
Shuai Zhang - Bugzilar Resolved: - Description: #46856 UnCheck the Auto Scale check box. It makes the setting can not be edited. Reason: The settings are not enable when the Auto Scale is unChecked. Solution: Set the settings enable when unCheck the Auto Scale.
-rw-r--r--chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/radar/ui/series/RadarLineSheet.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/radar/ui/series/RadarLineSheet.java b/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/radar/ui/series/RadarLineSheet.java
index 0d80d7f..ac2e195 100644
--- a/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/radar/ui/series/RadarLineSheet.java
+++ b/chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/radar/ui/series/RadarLineSheet.java
@@ -152,8 +152,7 @@ public class RadarLineSheet extends AbstractPopupSheet implements Listener
webMin.setToolTipText( Messages.getString( "Radar.Composite.Label.ScaleMinToolTip" ) ); //$NON-NLS-1$
webMin.addListener( this );
}
- webMin.setEnabled( getContext().getUIFactory( ).canEnableUI( btnAutoScale ) );
-
+
lblWebMax = new Label( cmpMinMax, SWT.NONE );
{
lblWebMax.setText( Messages.getString( "Radar.Composite.Label.ScaleMax" ) ); //$NON-NLS-1$
@@ -177,9 +176,7 @@ public class RadarLineSheet extends AbstractPopupSheet implements Listener
webMax.addListener( this );
}
- webMax.setEnabled( getContext().getUIFactory( ).canEnableUI( btnAutoScale ) );
-
- boolean enabled = getContext().getUIFactory( ).canEnableUI( btnAutoScale );
+ boolean enabled = !( btnAutoScale.getSelectionState( ) == ChartCheckbox.STATE_SELECTED );
updateScaleUI( enabled );
Label lblWebStep = new Label( cmpMinMax, SWT.NONE );
@@ -296,7 +293,7 @@ public class RadarLineSheet extends AbstractPopupSheet implements Listener
btnAutoScale.getSelectionState( ) == ChartCheckbox.STATE_SELECTED,
btnAutoScale.getSelectionState( ) == ChartCheckbox.STATE_GRAYED );
- boolean enabled = getContext().getUIFactory( ).canEnableUI( btnAutoScale );
+ boolean enabled = !( btnAutoScale.getSelectionState( ) == ChartCheckbox.STATE_SELECTED );
updateScaleUI( enabled );
}
else if ( event.widget == btnScaleCntAuto )