Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4067334
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:14:11+00:00 2026-05-20T16:14:11+00:00

I have added a custom LabelDecorator to an Eclipse 3.6, which replaces the cryptic

  • 0

I have added a custom LabelDecorator to an Eclipse 3.6, which replaces the cryptic usernames added by the SVN Team Text Decorations. The SVN Team Decorator allows you to add an author tag. What I did was adding another Decorator replacing these author strings (which are company specific shortnames with numbers) with the actual name of the user.

While SVN Team Text Decorations extends the Package Explorer with:

... com.company.package · XY9723 · [30.02.11 19:11]

I replace that by

... com.company.package · Neil Diamond · [30.02.11 19:11]

Now, to complete the mission, I added a preference page, where users are able to specify the attributes (name, forename, birthdate, company name, telephone, etc.), which should be used as replacement. I’d like to update the package explorer (or whereever svn team decorates ressources) with the newly selected attributes whenever “Apply” or “Ok” is pressed.
At the moment the ressources are only updated after you have pressed “Apply” or “Ok” and manually collapse/expand one of the ressource in the explorer.

Is there some event I could fire?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:14:12+00:00Added an answer on May 20, 2026 at 4:14 pm

    Use the IDecorationManager interface:

    IWorkbench workbench = ...;
    IDecoratorManager manager = workbench.getDecoratorManager();
    

    inside of the prefernce pages LabelProvider:

    ILabelDecorator decorator = manager.getLabelDecorator("com.plugin.mydecorator");
    if(decorator != null){ // decorator is enabled
        LabelProviderChangedEvent event = new LabelProviderChangedEvent(demoDecorator);
        // update specific resources
        fireLabelEvent(event, arrayOfResourceToUpdate);
    
        // or update all resources
        fireLabelEvent(event);
    }
    

    -> see Understanding Decorators

    without a LabelProvider

    manager.update("com.plugin.mydecorator");
    

    -> see DecoratorManager.java

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an NSOperationQueue to which i have added my custom class's objects(inherits from
I have an imageview to which I have added certain custom subview as dots.
In my custom View which I have added to my viewControllers's view, I need
i have added a custom font - one which i have downloaded from from
I have this button which i have added a custom icon to. I would
I have added a custom view to my subclass of NSMenuItem (which sits in
previously i have added a ontouch listener to textviews which will do a custom
I have to build a custom module in which i have added a custom
Ok, so I have an existing application to which I have added a custom
I have added some custom actions to our installer which is run on CE5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.