[kepler-dev] [Bug 4848] only first change to Customize Documentation shown in Documentation=>Display

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri Feb 26 17:10:36 PST 2010


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

--- Comment #1 from Derik Barseghian <barseghian at nceas.ucsb.edu> 2010-02-26 17:10:35 PST ---
The problem is with calling Show Documentation (which calls
GetDocumentationAction) twice. 

On the first call to GetDocumentationAction, there are 0 docAttributes on the
NamedObj, and so the KeplerDocumentationAttribute on the NamedObj is used.
KeplerDocumentationAttribute.getDocAttribute is called, which creates a
docAttribute. So on the second call to Show Documentation, there's a
docAttribute, and since we're just using the default vergil context menu and
the docPreference is 0 (which means ptolemy...1 is for kepler), the
KeplerDocumentationAttribute is not used.

One idea is to instead use the ShowDocumentationAction ("View Documentation"
from the library area), which sets the kepler docPreference. Unfortunately this
action can't just be called, it expects certain member variables be set first.
I'm looking into adapting this class...

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list