Examples of RubyScriptMeta


Examples of org.typeexit.kettle.plugin.steps.ruby.meta.RubyScriptMeta

    CTabItem[] items = wScriptsFolder.getItems();
    for (int i = 0; i < items.length; i++) {

      CTabItem item = items[i];
      StyledTextComp wText = (StyledTextComp) item.getControl();
      retval.add(new RubyScriptMeta(item.getText(), wText.getText(), (Role) item.getData("role")));

    }
    return retval;

  }
View Full Code Here

Examples of org.typeexit.kettle.plugin.steps.ruby.meta.RubyScriptMeta

      case SCRIPT:
        try {
          // add a new sample script
          String title = RubyScriptMeta.getUniqueName(item.getText(), collectScripts());

          RubyScriptMeta script = new RubyScriptMeta(title, FileUtils.readFileToString(f, "UTF-8"), Role.LIB_SCRIPT);
          addScriptTab(script);
          wScriptsFolder.setSelection(wScriptsFolder.getItemCount() - 1); // select newest tab

          input.setChanged();
          changedInDialog = true;
View Full Code Here

Examples of org.typeexit.kettle.plugin.steps.ruby.meta.RubyScriptMeta

    MenuItem addNewItem = new MenuItem(scriptMenu, SWT.PUSH);
    addNewItem.setText(BaseMessages.getString(PKG, "RubyStepDialog.Menu.AddNewTab"));
    addNewItem.setImage(addImage);
    addNewItem.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
        RubyScriptMeta script = RubyScriptMeta.createScriptWithUniqueName(collectScripts());
        addScriptTab(script);
        input.setChanged();
        changedInDialog = true;

        wScriptsFolder.setSelection(wScriptsFolder.getItemCount() - 1); // select newest tab
View Full Code Here

Examples of org.typeexit.kettle.plugin.steps.ruby.meta.RubyScriptMeta

      Node scriptNode = XMLHandler.getSubNode(stepnode, "scripts");
      int nrScripts = XMLHandler.countNodes(scriptNode, "script");

      for (int i = 0; i < nrScripts; i++) {
        Node sNode = XMLHandler.getSubNodeByNr(scriptNode, "script", i);
        scripts.add(new RubyScriptMeta(
                XMLHandler.getTagValue(sNode, "title"),
                XMLHandler.getTagValue(sNode, "body"),
                Role.valueOf(Const.NVL(XMLHandler.getTagValue(sNode, "role"), Role.LIB_SCRIPT.toString()))
              )
        );
View Full Code Here

Examples of org.typeexit.kettle.plugin.steps.ruby.meta.RubyScriptMeta

      // load scripts
      int nrScripts = rep.countNrStepAttributes(id_step, "script_title");
      scripts.clear();
     
      for (int i = 0; i < nrScripts; i++) {
        RubyScriptMeta s = new RubyScriptMeta(
            rep.getStepAttributeString(id_step, i, "script_title"),
            rep.getStepAttributeString(id_step, i, "script_body"),
            Role.valueOf(rep.getStepAttributeString(id_step, i, "script_role"))
        );
        scripts.add(s);
View Full Code Here

Examples of org.typeexit.kettle.plugin.steps.ruby.meta.RubyScriptMeta

      if (s.getRole() == Role.ROW_SCRIPT){
        return s;
      }
    }
   
    return new RubyScriptMeta("dummy", "# dummy", Role.ROW_SCRIPT);
  }
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.