Package org.jamesii.gui.model.actions

Examples of org.jamesii.gui.model.actions.OpenModelAction


                  dialog.getMenuDescription(),
                  new String[] {
                      "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open/model.open",
                      "org.jamesii.toolbar.main/org.jamesii.open/model.open" },
                  null) {
                private final ActionListener action = new OpenModelAction(
                    dialog);

                @Override
                public void execute() {
                  action.actionPerformed(null);
                }
              });
        } catch (Throwable e) {
          SimSystem.report(e);
        }
View Full Code Here


                new String[] {
                    "org.jamesii.menu.main/org.jamesii.file/org.jamesii.open/model.open/model.open.recent",
                    "org.jamesii.toolbar.main/org.jamesii.open/model.open/model.open.recent" },
                null) {

              private ActionListener action = new OpenModelAction(
                  new IFactoryParameterDialog<ModelReaderFactory>() {

                    @Override
                    public Pair<ParameterBlock, ModelReaderFactory> getFactoryParameter(
                        Window parentWindow) {
                      return new Pair<>(new ParameterBlock(uri,
                          IURIHandling.URI),
                      // FIXME sr137: add factory here
                          null);
                    }

                    @Override
                    public String getMenuDescription() {
                      return s;
                    }

                  });

              @Override
              public void execute() {
                action.actionPerformed(null);
              }
            });
      } catch (URISyntaxException e) {
        SimSystem.report(e);
      }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.model.actions.OpenModelAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.