Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » team "dirty" label decorators for custom models
team "dirty" label decorators for custom models [message #442919] Fri, 31 July 2009 09:55
Carsten Pfeiffer is currently offline 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
Previous Topic:Can't open classes via Plugin Spy anymore :(
Next Topic:CompareUI Dialog and "exact" differences
Goto Forum:
  


Current Time: Fri Aug 01 06:02:48 EDT 2014

Powered by FUDForum. Page generated in 0.07365 seconds