team "dirty" label decorators for custom models [message #442919] |
Fri, 31 July 2009 13:55 |
Carsten Pfeiffer Messages: 34 Registered: July 2009 |
Member |
|
|
Hi,
I'm having trouble understanding how the (e.g. CVS) dirty indicators can be
applied to custom models.
Our model mostly contains "Documents" which may be associated to sub
documents, forming a hierarchy.
Logical view:
Project
|
- DocA
|
-DocB
|
-DocC
The resources for this would look like this:
Project
|
- DocA.xml
|
- DocA.subdocuments
|
- DocB.xml
|
- DocC.xml
I.e. the sub documents of DocA (DocB and DocC) are put into a similarly
named folder within the same directory as DocA.
Now when somebody edits sub document DocB.xml, we want the dirty indicator
to be propagated to the top, so that DocA and the project itself are marked
dirty as well.
By default, the resource hierarchy is used for the dirty indicator, so that
modifying DocB will automatically mark DocA.subdocuments and Project as
dirty (see CVSLeightweightDecorator.addWithParents()). Unfortunately this
won't work with our model, as we want DocA to be marked as dirty, not the
folder DocA.subdocuments.
Is there any mechanism that we can use to provide that "dirty hierarchy"?
Thanks in advance,
Carsten
|
|
|
Powered by
FUDForum. Page generated in 0.03065 seconds