package org.knime.ext.jruby;

import org.knime.core.node.NodeDialogPane;
import org.knime.core.node.NodeFactory;
import org.knime.core.node.NodeView;

/**
 * <code>NodeFactory</code> for the "RubyScript" Node.
 * 
 * 
 * @author
 */
/**
 * @author rss
 *
 */
public class RubyScriptNodeFactory extends NodeFactory<RubyScriptNodeModel> {

    private RubyScriptNodeModel m_model;
    private RubyScriptNodeDialog m_dialog;

    protected RubyScriptNodeModel setModel(RubyScriptNodeModel model) {
        m_model = model;
        return model;
    }
    
    public RubyScriptNodeModel getModel() {
        return m_model;
    }

    public RubyScriptNodeDialog getDialog() {
        return m_dialog;
    }
    
    /**
     * {@inheritDoc}
     */
    @Override
    public RubyScriptNodeModel createNodeModel() {
        return setModel(new RubyScriptNodeModel(1, 1, false)); 
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final int getNrNodeViews() {
        return 1;
    }

//    /**
//     * {@inheritDoc}
//     */
//    @Override
//    public final NodeView<RubyScriptNodeModel> createNodeView(final int viewIndex,
//            final RubyScriptNodeModel nodeModel) {
//        return new RubyScriptNodeView(nodeModel);
//    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final boolean hasDialog() {
        return true;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final NodeDialogPane createNodeDialogPane() {
        m_dialog = new RubyScriptNodeDialog(this); 
        return m_dialog;
    }
}

@@ -230,34 +230,8 @@
  */%0A
-/**%0A * @author rss%0A *%0A */%0A
 publ
@@ -970,18 +970,16 @@
  %7D%0A%0A
-//
     /**%0A
 //  
@@ -974,18 +974,16 @@
     /**%0A
-//
      * %7B
@@ -999,18 +999,16 @@
 oc%7D%0A
-//
      */%0A
 //  
@@ -1003,18 +1003,16 @@
      */%0A
-//
     @Ove
@@ -1017,18 +1017,16 @@
 verride%0A
-//
     publ
@@ -1100,18 +1100,16 @@
 wIndex,%0A
-//
         
@@ -1151,18 +1151,16 @@
 odel) %7B%0A
-//
         
@@ -1205,10 +1205,8 @@
 l);%0A
-//
     

fix exceedings