X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FSliderPanel.java;h=83193dc0eb77716d5812a23acb1c77d582ebe9fa;hb=06ce849ffedc7ab10a3c54cda96b9a7dec58c136;hp=af77c48cacdf0077a610c291956273b58680b394;hpb=7dc7fb2a35c435d825bc91c5ae60ec6073419a69;p=jalview.git diff --git a/src/jalview/gui/SliderPanel.java b/src/jalview/gui/SliderPanel.java index af77c48..83193dc 100755 --- a/src/jalview/gui/SliderPanel.java +++ b/src/jalview/gui/SliderPanel.java @@ -159,25 +159,37 @@ public class SliderPanel extends GSliderPanel 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) + { + } } }