Changeset 287


Ignore:
Timestamp:
12/09/11 12:55:19 (12 years ago)
Author:
sherbold
Message:
  • fixed some code smells
Location:
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swing/DlgInsert.java

    r284 r287  
    477477 
    478478                // FileEquals 
    479                 if (selectedItem == "OutputFileEquals") { 
     479                if (selectedItem.equals("OutputFileEquals")) { 
    480480                        if (textFieldActualFile.getText().length() == 0) { 
    481481                                JOptionPane.showMessageDialog(null, 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/AboutDialog.java

    r195 r287  
    1414public class AboutDialog extends Dialog { 
    1515 
    16         protected Object result; 
    1716        protected Shell shlAboutEventbenchconsole; 
    1817        private final FormToolkit formToolkit = new FormToolkit(Display.getDefault()); 
     
    3029        /** 
    3130         * Open the dialog. 
    32          * @return the result 
    3331         */ 
    34         public Object open() { 
     32        public void open() { 
    3533                createContents(); 
    3634                shlAboutEventbenchconsole.open(); 
     
    4240                        } 
    4341                } 
    44                 return result; 
    4542        } 
    4643 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/CommandHistoryDialog.java

    r226 r287  
    3636         
    3737        protected List commandHistoryList; 
    38         protected Object result; 
    3938        protected Shell shell; 
    4039         
     
    5554        /** 
    5655         * Open the dialog. 
    57          * @return the result 
    5856         */ 
    59         public Object open() { 
     57        public void open() { 
    6058                createContents(); 
    6159                shell.open(); 
     
    6866                        } 
    6967                } 
    70                 return result; 
    7168        } 
    7269 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/EditSequenceDialog.java

    r230 r287  
    2121public class EditSequenceDialog extends Dialog { 
    2222 
    23         protected Object result; 
    2423        protected Shell shell; 
    2524        private Table table; 
     
    4342        /** 
    4443         * Open the dialog. 
    45          * @return the result 
    4644         */ 
    47         public Object open(java.util.List<Event<?>> sequence) { 
     45        public void open(java.util.List<Event<?>> sequence) { 
    4846                this.sequence = sequence; 
    4947                createContents(); 
     
    5654                        } 
    5755                } 
    58                 return result; 
    5956        } 
    6057 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/GenerateSequencesDialog.java

    r226 r287  
    3131        protected Spinner maxLengthSpinner; 
    3232         
    33         protected Object result; 
    3433        protected Shell shlGenerateSequences; 
    3534        private Text sequencesNameText; 
     
    4847        /** 
    4948         * Open the dialog. 
    50          * @return the result 
    5149         */ 
    52         public Object open() { 
     50        public void open() { 
    5351                createContents(); 
    5452                shlGenerateSequences.open(); 
     
    6058                        } 
    6159                } 
    62                 return result; 
    6360        } 
    6461 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/GetObjectNameDialog.java

    r192 r287  
    1818        String objectName = ""; 
    1919         
    20         protected Object result; 
    2120        protected Shell shlObjectName; 
    2221        private Text text; 
     
    3433        /** 
    3534         * Open the dialog. 
    36          * @return the result 
    3735         */ 
    38         public Object open() { 
     36        public void open() { 
    3937                createContents(); 
    4038                shlObjectName.open(); 
     
    4644                        } 
    4745                } 
    48                 return result; 
    4946        } 
    5047 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/ModelPropertiesDialog.java

    r195 r287  
    2323        private IStochasticProcess process; 
    2424         
    25         protected Object result; 
    2625        protected Shell shlModelProperties; 
    2726 
     
    3837        /** 
    3938         * Open the dialog. 
    40          * @return the result 
    4139         */ 
    42         public Object open() { 
     40        public void open() { 
    4341                createContents(); 
    4442                shlModelProperties.open(); 
     
    5048                        } 
    5149                } 
    52                 return result; 
    5350        } 
    5451 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/SequencesDialog.java

    r230 r287  
    2929        private SortedSet<String> targets; 
    3030         
    31         protected Object result; 
    3231        protected Shell shell; 
    3332 
     
    4443        /** 
    4544         * Open the dialog. 
    46          * @return the result 
    4745         */ 
    48         public Object open(String sequencesName) { 
     46        public void open(String sequencesName) { 
    4947                this.sequencesName = sequencesName; 
    5048                sequences = null; 
     
    5856                        } 
    5957                } 
    60                 return result; 
    6158        } 
    6259 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swt/TrainModelDialog.java

    r194 r287  
    11package de.ugoe.cs.eventbench.swt; 
     2 
     3import java.util.Arrays; 
    24 
    35import org.eclipse.swt.widgets.Dialog; 
     
    2022public class TrainModelDialog extends Dialog { 
    2123 
    22         protected Object result; 
    2324        protected Shell shlTrainUsageModel; 
    2425         
     
    4849        /** 
    4950         * Open the dialog. 
    50          * @return the result 
    5151         */ 
    52         public Object open() { 
     52        public void open() { 
    5353                createContents(); 
    5454                shlTrainUsageModel.open(); 
     
    6060                        } 
    6161                } 
    62                 return result; 
    6362        } 
    6463 
     
    227226         
    228227        public void setSequenceNames(String[] sequenceNames) { 
    229                 this.sequenceNames = sequenceNames; 
     228                this.sequenceNames = Arrays.copyOf(sequenceNames, sequenceNames.length); 
    230229        } 
    231230} 
Note: See TracChangeset for help on using the changeset viewer.