From 87cac19ea40aecf1ddaa23dac531531d7f29b481 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 7 Nov 2018 08:59:34 +0000 Subject: [PATCH] JAL-3148 redundant enum removed --- src/jalview/gui/StructureViewerBase.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/jalview/gui/StructureViewerBase.java b/src/jalview/gui/StructureViewerBase.java index a9dc31e..99873c9 100644 --- a/src/jalview/gui/StructureViewerBase.java +++ b/src/jalview/gui/StructureViewerBase.java @@ -77,14 +77,6 @@ import javax.swing.event.MenuListener; public abstract class StructureViewerBase extends GStructureViewer implements Runnable, ViewSetProvider { - /* - * names for colour options (additional to Jalview colour schemes) - */ - enum ViewerColour - { - BySequence, ByChain, ChargeCysteine, ByViewer - } - /** * list of sequenceSet ids associated with the view */ @@ -673,7 +665,6 @@ public boolean isUsedForColourBy(Object o) seqColour = new JRadioButtonMenuItem(); seqColour.setText(MessageManager.getString("action.by_sequence")); - seqColour.setName(ViewerColour.BySequence.name()); seqColour.setSelected(binding.isColourBySequence()); seqColour.addActionListener(new ActionListener() { @@ -686,7 +677,6 @@ public boolean isUsedForColourBy(Object o) chainColour = new JRadioButtonMenuItem(); chainColour.setText(MessageManager.getString("action.by_chain")); - chainColour.setName(ViewerColour.ByChain.name()); chainColour.addActionListener(new ActionListener() { @Override @@ -698,7 +688,6 @@ public boolean isUsedForColourBy(Object o) chargeColour = new JRadioButtonMenuItem(); chargeColour.setText(MessageManager.getString("label.charge_cysteine")); - chargeColour.setName(ViewerColour.ChargeCysteine.name()); chargeColour.addActionListener(new ActionListener() { @Override @@ -710,7 +699,6 @@ public boolean isUsedForColourBy(Object o) viewerColour = new JRadioButtonMenuItem(); // text is set in overrides of this method - viewerColour.setName(ViewerColour.ByViewer.name()); viewerColour.setSelected(!binding.isColourBySequence()); if (_colourwith == null) -- 1.7.10.2