<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Sean, <br>
I'm not sure what you mean by a DocViewer Actor<br>
ptolemy/vergil/actor/DocViewer.java extends HTMLViewer which extends
TableauFrame, so DocViewer is not an actor.<br>
<br>
There is a "DocViewer" attribute in Kepler. If I start Kepler and
search for DocViewer and drag it in, then the xml is<br>
<br>
<property name="DocViewer"
class="ptolemy.kernel.util.SingletonAttribute"><br>
<property name="KeplerDocumentation"
class="ptolemy.vergil.basic.KeplerDocumentationAttribute"><br>
<property name="description"
class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property><br>
<property name="author"
class="ptolemy.kernel.util.ConfigurableAttribute"><configure>Steve
Neuendorffer and Edward A. Lee</configure></property><br>
<property name="version"
class="ptolemy.kernel.util.ConfigurableAttribute"><configure>null</configure></property><br>
<property name="userLevelDocumentation"
class="ptolemy.kernel.util.ConfigurableAttribute"><configure>The
DocViewer attribute renders a clickable documentation icon on the
Workflow canvas. Clicking the icon opens the workflow documentation
window.</configure></property><br>
</property> <property name="entityId"
class="org.kepler.moml.NamedObjId"
value="urn:lsid:kepler-project.org:actor:467:1"><br>
</property><br>
<property name="class"
class="ptolemy.kernel.util.StringAttribute"
value="ptolemy.kernel.util.SingletonAttribute"><br>
<property name="id"
class="ptolemy.kernel.util.StringAttribute"
value="urn:lsid:kepler-project.org:class:1184:1"><br>
</property><br>
</property><br>
<property name="semanticType00"
class="org.kepler.sms.SemanticType"
value="urn:lsid:localhost:onto:1:1#Parameter"><br>
</property><br>
<property name="semanticType11"
class="org.kepler.sms.SemanticType"
value="urn:lsid:localhost:onto:2:1#WorkflowDocumentation"><br>
</property><br>
<property name="viewer"
class="ptolemy.vergil.basic.DocViewerFactory"><br>
</property><br>
<property name="_hideName"
class="ptolemy.kernel.util.SingletonAttribute"><br>
</property><br>
<property name="_editorFactory"
class="ptolemy.vergil.toolbox.VisibleParameterEditorFactory"><br>
</property><br>
<property name="_location"
class="ptolemy.kernel.util.Location" value="{170, 210}"><br>
</property><br>
</property><br>
<br>
<br>
There is a DocViewerAttribute in Vergil:<br>
<br>
1. If you run Vergil:<br>
cd kepler/build-area<br>
ant vergil<br>
2. File->New ->GraphViewer<br>
3. Utilities -> Drag a DocViewerAttribute into the graph pane<br>
4. Double click on the yellow Documentation attribute, there will be
a message<br>
"To create documentation, right click on the background and
select 'Documentation -> Customize Documentation'."<br>
<br>
The xml for the Ptolemy II DocViewerAttribute in Vergil is:<br>
<br>
<property name="DocViewerAttribute"
class="ptolemy.kernel.util.SingletonAttribute"><br>
<property name="DocAttribute"
class="ptolemy.vergil.basic.DocAttribute"><br>
<property name="description"
class="ptolemy.kernel.util.StringAttribute" value="To edit the
documentation that appears when the user double clicks on
this icon, right click on the _background_ of the model and
select Documentation->Customize
Documentation. The description you are currently
editing will not appear when the user double clicks on the
Documentation icon."><br>
</property><br>
</property><br>
<property name="viewer"
class="ptolemy.vergil.basic.DocViewerFactory"><br>
</property><br>
<property name="_hideName"
class="ptolemy.kernel.util.SingletonAttribute"><br>
</property><br>
<property name="_iconDescription"
class="ptolemy.kernel.util.SingletonConfigurableAttribute"><br>
<configure><br>
<svg><br>
<rect x="-50" y="-20" width="100" height="20"
style="fill:yellow"></rect><br>
<text x="-40" y="-5" style="font-size:12;
font-family:SansSerif; fill:black">Documentation</text><br>
</svg><br>
</configure><br>
</property><br>
<property name="_location"
class="ptolemy.kernel.util.Location" value="{115, 125}"><br>
</property><br>
</property><br>
<br>
So, it would seem that the xml that defines the Kepler "DocViewer"
is in kepler/actors/resources/kar/CoreActors/DocViewer.xml <br>
The xml that defines DocViewerAttribute is in
ptolemy/configs/basicUtilities.xml<br>
<br>
My guess is that Kepler is ignoring the fact that DocViewerFactory
is there and should be creating an editor.<br>
<br>
<br>
BTW - The Sinewave actor oriented class definition has a
DocViewerAttribute in it.<br>
If you do<br>
cd kepler/build-area<br>
ant vergil -Dmodel=ptolemy/src/ptolemy/actor/lib/Sinewave.xml<br>
<br>
If you double click on the yellow box that says "Documentation",
then a viewer pops up that displays the custom documentation for the
model.<br>
<br>
To change that documentation, right click on the background and
select 'Documentation -> Customize Documentation'.<br>
<br>
_Christopher<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 8/15/12 10:55 AM, Sean Riddle wrote:<br>
</div>
<blockquote
cite="mid:CAAjdownSQ-UqvREtEksY_pjF+eL0t5uHq=4_+93By=0vwyVp0A@mail.gmail.com"
type="cite">Hi all,
<div><br>
</div>
<div>I'm still looking at Kepler icon weirdness, and I was
wondering if anyone knew exactly what the DocViewer actor is
supposed to do. I get that it's a button to display
documentation for the workflow, but even after adding
documentation to the workflow, I can't get it to do anything but
print "DocViewer is not a settable attribute" whenever I
double-click on it. Is this to be expected?</div>
<div><br>
</div>
<div>- Sean</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kepler-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kepler-dev@kepler-project.org">Kepler-dev@kepler-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
</body>
</html>