return sp.getValue();
}
+ /**
+ * Hides the PID slider panel if it is shown
+ */
public static void hidePIDSlider()
{
- try
- {
- PIDSlider.setClosed(true);
- PIDSlider = null;
- } catch (PropertyVetoException ex)
+ if (PIDSlider != null)
{
+ try
+ {
+ PIDSlider.setClosed(true);
+ PIDSlider = null;
+ } catch (PropertyVetoException ex)
+ {
+ }
}
}
+ /**
+ * Hides the conservation slider panel if it is shown
+ */
public static void hideConservationSlider()
{
- try
- {
- conservationSlider.setClosed(true);
- conservationSlider = null;
- } catch (PropertyVetoException ex)
+ if (conservationSlider != null)
{
+ try
+ {
+ conservationSlider.setClosed(true);
+ conservationSlider = null;
+ } catch (PropertyVetoException ex)
+ {
+ }
}
}