JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / gui / FeatureEditor.java
index d547c58..6a7bee6 100644 (file)
@@ -170,30 +170,30 @@ public class FeatureEditor
     });
 
     description = new JTextArea(3, 25);
-    
+
     start = new JSpinner();
     end = new JSpinner();
     start.setPreferredSize(new Dimension(80, 20));
     end.setPreferredSize(new Dimension(80, 20));
-    
+
     /*
      * ensure that start can never be more than end
      */
-    start.addChangeListener(new ChangeListener() 
+    start.addChangeListener(new ChangeListener()
     {
       @Override
       public void stateChanged(ChangeEvent e)
       {
-        Integer startVal = (Integer) start.getValue(); 
+        Integer startVal = (Integer) start.getValue();
         ((SpinnerNumberModel) end.getModel()).setMinimum(startVal);
       }
     });
-    end.addChangeListener(new ChangeListener() 
+    end.addChangeListener(new ChangeListener()
     {
       @Override
       public void stateChanged(ChangeEvent e)
       {
-        Integer endVal = (Integer) end.getValue(); 
+        Integer endVal = (Integer) end.getValue();
         ((SpinnerNumberModel) start.getModel()).setMaximum(endVal);
       }
     });
@@ -381,8 +381,10 @@ public class FeatureEditor
 
     start.setValue(new Integer(firstFeature.getBegin()));
     end.setValue(new Integer(firstFeature.getEnd()));
-    ((SpinnerNumberModel) start.getModel()).setMaximum(firstFeature.getEnd());
-    ((SpinnerNumberModel) end.getModel()).setMinimum(firstFeature.getBegin());
+    ((SpinnerNumberModel) start.getModel())
+            .setMaximum(firstFeature.getEnd());
+    ((SpinnerNumberModel) end.getModel())
+            .setMinimum(firstFeature.getBegin());
 
     description.setText(firstFeature.getDescription());
     featureColour = fr.getFeatureStyle(featureType);
@@ -405,15 +407,16 @@ public class FeatureEditor
    */
   public void showDialog()
   {
-         Runnable okAction = forCreate ? getCreateAction() : getAmendAction();
-         Runnable cancelAction = getCancelAction();
+    Runnable okAction = forCreate ? getCreateAction() : getAmendAction();
+    Runnable cancelAction = getCancelAction();
 
     /*
      * set dialog action handlers for OK (create/Amend) and Cancel options
      * also for Delete if applicable (when amending features)
      */
     JvOptionPane dialog = JvOptionPane.newOptionDialog(Desktop.desktop)
-            .setResponseHandler(0, okAction).setResponseHandler(2, cancelAction);
+            .setResponseHandler(0, okAction)
+            .setResponseHandler(2, cancelAction);
     if (!forCreate)
     {
       dialog.setResponseHandler(1, getDeleteAction());
@@ -439,9 +442,8 @@ public class FeatureEditor
     }
 
     dialog.showInternalDialog(mainPanel, title,
-            JvOptionPane.YES_NO_CANCEL_OPTION,
-            JvOptionPane.PLAIN_MESSAGE, null, options,
-            MessageManager.getString("action.ok"));
+            JvOptionPane.YES_NO_CANCEL_OPTION, JvOptionPane.PLAIN_MESSAGE,
+            null, options, MessageManager.getString("action.ok"));
   }
 
   /**
@@ -454,7 +456,7 @@ public class FeatureEditor
    */
   protected Runnable getCancelAction()
   {
-       Runnable okAction = new Runnable()
+    Runnable okAction = new Runnable()
     {
       @Override
       public void run()
@@ -478,7 +480,7 @@ public class FeatureEditor
    */
   protected Runnable getCreateAction()
   {
-       Runnable okAction = new Runnable()
+    Runnable okAction = new Runnable()
     {
       boolean useLastDefaults = features.get(0).getType() == null;
 
@@ -536,7 +538,7 @@ public class FeatureEditor
    */
   protected Runnable getDeleteAction()
   {
-         Runnable deleteAction = new Runnable()
+    Runnable deleteAction = new Runnable()
     {
       public void run()
       {
@@ -638,14 +640,14 @@ public class FeatureEditor
    */
   protected Runnable getAmendAction()
   {
-       Runnable okAction = new Runnable()
+    Runnable okAction = new Runnable()
     {
       boolean useLastDefaults = features.get(0).getType() == null;
-  
+
       String featureType = name.getText();
-  
+
       String featureGroup = group.getText();
-  
+
       public void run()
       {
         final String enteredType = name.getText().trim();