[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [subversive-dev] Subversive 0.7.8 - Adding decorator to the repository view
|
Hello,
I have a need to add decorator to the Repositories view
of subversive.
It seems that by default this view don't accept
decorator.
I modify the code of RepositoriesView.java to add this
capabilities.
I replace, line 210 :
//this.repositoryTree.setLabelProvider(new
WorkbenchLabelProvider()); this.repositoryTree.setLabelProvider(new
DecoratingLabelProvider(
new
WorkbenchLabelProvider(),
PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator())
);
Ok, it's works, and i can add decorator to the
RepositoriesView.
But there is a little unwanted effect on the hierarchy
representation.
Without the decorator the view display :
- trunk
- branches
- tags
- ROOT
- trunk
- branches
- tags
With the decorator, the trunk branches disappear, and it
was replaced by the ROOT node :
- ROOT
- trunk
- branches
-tags
- branches
- tags
Is there a way to add decorator to the RepositoryView and
keep the initial hierarchy display ?
Thanks for answers,
P.