Project

General

Profile

Actions

Bug #3912

closed

RExpression actor has a single line text entry field

Added by Oliver Soong over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
actors
Target version:
Start date:
03/20/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3912

Description

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 <- c(1,2,3,5) 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 <- c(1,2,3,5) 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>

Actions

Also available in: Atom PDF