Skip to main content


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 13:55
Carsten Pfeiffer is currently offline Carsten PfeifferFriend
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: Thu Apr 25 03:39:57 GMT 2024

Powered by FUDForum. Page generated in 0.03459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top