[kepler-dev] [Bug 3912] New: - RExpression actor has a single line text entry field

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri Mar 20 15:37:28 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3912

           Summary: RExpression actor has a single line text entry field
           Product: Kepler
           Version: 1.x dev
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: actors
        AssignedTo: berkley at nceas.ucsb.edu
        ReportedBy: soong at nceas.ucsb.edu
         QAContact: kepler-dev at kepler-project.org


XP Pro x64 SP2, Java 1.6.0_11, Kepler 1.x dev Rev. 17126 from svn

The RExpression actor source entry is only a single line.  It does not convert
pasted newlines into 
 in the XML.

Current the actor's XML has this bit: 

<property name="expression" class="ptolemy.kernel.util.StringAttribute"
value="a &lt;- c(1,2,3,5)&#10;plot(a)">
    <display name="R function or script"/>
</property>
<property name="_editorFactory"
class="ptolemy.vergil.toolbox.TextEditorTableauFactory">
    <property name="attributeName" class="ptolemy.kernel.util.StringAttribute"
value="expression">
    </property>
    <property name="columnsDisplayed" class="ptolemy.data.expr.Parameter"
value="80">
    </property>
    <property name="rowsDisplayed" class="ptolemy.data.expr.Parameter"
value="40">
    </property>
</property>

Replacing that bit of XML with the following, based on older RExpression
actors, seems to work: 

<property name="expression" class="ptolemy.kernel.util.StringAttribute"
value="a &lt;- c(1,2,3,5)&#10;plot(a)">
    <display name="R function or script"/>
    <property name="R Expression" class="ptolemy.actor.gui.style.TextStyle">
        <property name="height" class="ptolemy.data.expr.Parameter" value="20">
        </property>
        <property name="width" class="ptolemy.data.expr.Parameter" value="80">
        </property>
    </property>
</property>


More information about the Kepler-dev mailing list