Examples of IScriptEditorStarter


Examples of org.freeplane.features.script.IScriptEditorStarter

    mButton.addActionListener(this);
    script = "";
  }

  public void actionPerformed(final ActionEvent arg0) {
    final IScriptEditorStarter plugin = (IScriptEditorStarter) Controller
        .getCurrentModeController().getExtension(
            IScriptEditorStarter.class);
    if (plugin != null) {
      final IScriptEditorStarter starter = plugin;
      final String resultScript = starter.startEditor(script);
      if (resultScript != null) {
        script = resultScript;
        firePropertyChangeEvent();
      }
    }
View Full Code Here

Examples of org.freeplane.features.script.IScriptEditorStarter

  public HashMap<String, Object> getScriptCookies() {
    return mScriptCookies;
  }

  private void register(ModeController modeController) {
    modeController.addExtension(IScriptEditorStarter.class, new IScriptEditorStarter() {
      @Override
            public String startEditor(final String pScriptInput) {
        final ScriptModel scriptModel = new ScriptModel(pScriptInput);
        final ScriptEditorPanel scriptEditorPanel = new ScriptEditorPanel(scriptModel, false);
        scriptEditorPanel.setVisible(true);
View Full Code Here

Examples of org.freeplane.features.script.IScriptEditorStarter

        });
        btnBuilder.append(appendButton);
      }
      {
        scriptEditor = null;
        IScriptEditorStarter editor = (IScriptEditorStarter) reminderHook.getModeController().getExtension(IScriptEditorStarter.class);
        if(editor != null){
          scriptEditor = editor.createComboBoxEditor(new Dimension(600, 400));
          Component scriptButton = scriptEditor.getEditorComponent();
          btnBuilder.append(scriptButton);
        }
      }
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.