[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Issue 1] New - Outline view not updatin
- To: ses@tigris.org
- Subject: [Issue 1] New - Outline view not updatin
- From: ryahn@tigris.org
- Date: 18 Sep 2004 00:19:43 -0000
- Delivered-to: tigrisq-ses@www.tigris.org
http://mrsg.tigris.org/issues/show_bug.cgi?id=1
Issue #:|1
Summary:|Outline view not updating
Component:|mrsg
Version:|current
Platform:|All
OS/Version:|All
URL:|
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P1
Subcomponent:|editor
Assigned to:|sratanot
Reported by:|ryahn
------- Additional comments from ryahn@tigris.org Fri Sep 17 17:19:42 -0700 2004 -------
After editing a .gxl document, in the GXL Editor, the Outline view will not
refresh, showing the updated document, until the file is closed and reopened.
A reasonable expectation is that the Outline view should refresh after saving
the active .gxl document. When reviewing the code within the
GXLContentOutlinePage class file, it was discovered that the parsing of the
document is being performed in the GXLContentOutlinePage constructor, therefore
only populating the Outline view when the file is opened.
There are several possible solutions for this issue. One solution is to move
the code used to parse the document to a more appropriate place within this
class. Earlier versions of this project performed document parsing in the
getContentOutline method found in the GXLContentOutlinePage class. When the
parsing was performed here, prior to implementing the data binding framework,
the Outline view was being refreshed when the active file was saved.
Other possible solutions include synchronizing the parsing within the
constructor. This solution is not recommended as synchronizing within a
constructor is not recommended per java coding conventions. Another solution is
to add a listener to detect changes and recall the constructor.
Regardless of the solution, this issue should be addressed and resolved prior
to any demonstration of the plug-in.