Ignore:
Timestamp:
07/14/13 23:20:04 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • improve tree side notes
  • improve GUI layout
  • add foldable list of occured events to EventControl?
  • improve automatic type conversion in proxy listeners
  • implement several Access functionalities as algorithms independent of Access type
  • introduce draft base classes for distributed experiments
  • automatically register dependant Java classes to FramsClass? registry
  • add testing prime experiment and configuration
  • simplify and improve task dispatching

CHANGELOG:
Improve task dispatching in RemoteTree?.

GUI no longer hangs on connection problems.

Make all dispatchers joinables.

Refactorize Thread dispatcher.

Remove Task and PeriodicTask?.

Use Java utilities in those situations.

Reworking tasks dispatching.

Fix bug in EventControl? listener dispatching.

Minor improvements.

Add testing configuration for ExternalProcess? in GUI.

More improvement to prime.

Support for USERREADONLY in GUI.

Add that flag to various params in Java classes.

Remove redundant register clauses from several FramsClassAnnotations?.

Automatically gather and register dependant classes.

Add configuration for prime.

Improve Simulator class.

Add prime.xml configuration.

Introduce draft Experiment and Simulator classes.

Add prime experiment tests.

Enclose typical map with listeners into SimpleUniqueList?.

Needfile works in GUI.

Improve needfile handling in Browser.

More improvement with NeedFile?.

Implementing needfile.

Update test.

Rename ChangeEvent? to TestChangeEvent?.

Automatic argument type search in RemoteTree? listeners.

MultiParamLoader? uses AccessProvider?. By default old implementation
enclosed in AccessStash? or Registry.

Minor changes.

Rename SourceInterface? to Source.

Also improve toString of File and ListSource?.

Remove unused SimpleSource? class.

Add clearing in HistoryControl?.

Show entries in table at EventControl?.

Improve EventControl?.

Add listeners registration to EventControl?.

Add foldable table to HistoryControl?.

Add control row to Procedure and Event controls.

Improve layout of controls.

Another minor change to gui layout.

Minor improvement in the SliderControl?.

Minor changes.

Move ReflectionAccess?.Backend to separate file.

It was to cluttered.

Cleanup in ReflectionAccess?.

Move setMin, setMax, setDef to AccessOperations?.

Extract loading operation into AccessOperations?.

Append Framsticks to name of UnsupportedOperationException?.

The java.lang.UnsupportedOperationException? was shadowing this class.

Rename params.Util to params.ParamsUtil?.

Several improvements.

Minor changes.

Implement revert functionality.

Improve local changes management.

Minor improvement.

Remove methods rendered superfluous after SideNoteKey? improvement.

Improve SideNoteKey?.

It is now generic type, so explicit type specification at
call site is no more needed.

Introduce SideNoteKey? interface.

Only Objects implementing that key may be used as side note keys.

Minor improvements.

Use strings instead of ValueControls? in several gui mappings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/gui/MainFrame.java

    r100 r101  
    7373        }
    7474
    75         // private void onConnectionEstablished() {
    76                 // assert isActive();
    77 
    78                 // addNodeActionToTreePopupMenu("Open in console", new NodeAction() {
    79                         // @Override
    80                         // public void actionPerformed(TreeNode treeNode) {
    81                                 // assert isActive();
    82                         // }
    83                 // });
    84 
    85 
    86 
    87 
    88         //      // browser.addNodeActionToTreePopupMenu("Resolve recursively", new NodeAction() {
    89         //      //      @Override
    90         //      //      public void actionPerformed(TreeNode treeNode) {
    91         //      //              final Child child = treeNode.getChild();
    92         //      //              //server.invokeLater(new Runnable() {
    93         //              //              @Override
    94         //              //              public void run() {
    95         //              //                      resolveRecursively(child);
    96         //              //              }
    97         //              //      });
    98         //      // }
    99         //      // });
    100 
    101 
    102                 // // addNodeActionToTreePopupMenu("Store in file", new NodeAction() {
    103                 // //     @Override
    104                 // //     public void actionPerformed(final TreeNode treeNode) {
    105                 // //         // final Node node = treeNode.getNode();
    106                 // //         // server.invokeLater(new Runnable() {
    107                 // //         //     @Override
    108                 // //         //     public void run() {
    109                 // //         //         try {
    110                 // //         //             log.info("storing");
    111                 // //         //             //File file = new File();
    112                 // //         //             StoreStream stream = new StoreStream(file, server.getManager());
    113                 // //         //             stream.store(node);
    114                 // //         //         } catch (FileNotFoundException e) {
    115                 // //         //             e.printStackTrace();
    116                 // //         //         }
    117                 // //         //     }
    118                 // //         // });
    119                 // //     }
    120                 // // });
    121 
    122 
    123         //      // arguments.forEach("resolve", new UnaryFunctor<Boolean, String>() {
    124         //      //      @Override
    125         //      //      public Boolean call(final String s) {
    126         //      //              server.getManager().resolvePath(s, new StateFunctor() {
    127         //      //                      @Override
    128         //      //                      public void call(Exception e) {
    129         //      //                              if (e != null) {
    130         //      //                                      log.error("failed to resolve: {}", s);
    131         //      //                                      return;
    132         //      //                              }
    133         //      //                              log.info("succeeded to resolve: {}", s);
    134         //      //                      }
    135         //      //              });
    136         //      //              return true;
    137         //      //      }
    138         //      // });
    139 
    140 
    141         //      // arguments.forEach("console", new UnaryFunctor<Boolean, String>() {
    142         //      //      @Override
    143         //      //      public Boolean call(String s) {
    144         //      //              showConsoleFrame().setCommandLine(s);
    145         //      //              return true;
    146         //      //      }
    147         //      // });
    148         // }
    149 
    150 
    151         // /**
    152         //  * Creates panel with start, step, stop buttons.
    153         //  */
    154         // @Override
    155         // protected JPanel createLeftTopPanel() {
    156         //      assert isActive();
    157         //      Dimension buttonDimension = new Dimension(45, 45);
    158 
    159         //      JPanel panel = new JPanel();
    160 
    161         //      stop = new JButton(ImageProvider.loadImage(ImageProvider.SIM_STOP));
    162         //      stop.addActionListener(new ActionListener() {
    163 
    164         //              public void actionPerformed(ActionEvent e) {
    165         //                      setSimulationRunning(false);
    166         //              }
    167 
    168         //      });
    169 
    170         //      stop.setPreferredSize(buttonDimension);
    171         //      stop.setToolTipText("Simulation Stop");
    172         //      stop.setEnabled(false);
    173 
    174         //      step = new JButton(ImageProvider.loadImage(ImageProvider.SIM_STEP));
    175         //      /*
    176         //      step.addActionListener(new ActionListener() {
    177 
    178         //              public void actionPerformed(ActionEvent e) {
    179         //                      connection.send(new CallQuery().setMethod("step").setPath("/simulator"));
    180         //              }
    181 
    182         //      });
    183         //      */
    184 
    185         //      step.setPreferredSize(buttonDimension);
    186         //      step.setToolTipText("Simulation Step");
    187 
    188         //      start = new JButton(ImageProvider.loadImage(ImageProvider.SIM_START));
    189         //      start.addActionListener(new ActionListener() {
    190 
    191         //              public void actionPerformed(ActionEvent e) {
    192         //                      setSimulationRunning(true);
    193         //              }
    194 
    195         //      });
    196 
    197         //      start.setPreferredSize(buttonDimension);
    198         //      start.setToolTipText("Start Simulation");
    199 
    200         //      JPanel buttonPanel = new JPanel();
    201         //      buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.LINE_AXIS));
    202         //      buttonPanel.add(Box.createHorizontalStrut(5));
    203         //      buttonPanel.add(stop);
    204         //      buttonPanel.add(Box.createHorizontalStrut(10));
    205         //      buttonPanel.add(step);
    206         //      buttonPanel.add(Box.createHorizontalStrut(10));
    207         //      buttonPanel.add(start);
    208         //      buttonPanel.add(Box.createHorizontalStrut(5));
    209 
    210         //      buttonPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory
    211         //                      .createRaisedBevelBorder(), "Simulation Control",
    212         //                      TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION
    213         //                      ));
    214 
    215         //      panel.setLayout(new BoxLayout(panel, BoxLayout.LINE_AXIS));
    216         //      panel.add(Box.createHorizontalGlue());
    217         //      panel.add(buttonPanel);
    218         //      panel.add(Box.createHorizontalGlue());
    219         //      return panel;
    220         // }
    22175
    22276        /**
     
    248102        }
    249103
    250         // public ConsoleFrame showConsoleFrame() {
    251         //      assert isActive();
    252         //      /*
    253         //      ConsoleFrame consoleFrame = new ConsoleFrame(connection);
    254         //      consoleFrame.show(MainFrame.this);
    255         //      return consoleFrame;
    256         //      */
    257         //      return null;
    258         // }
    259 
    260104        /**
    261105         * Closes connection with manager.
Note: See TracChangeset for help on using the changeset viewer.