//Set content provider settings
contentProvider = new LegendViewContentProvider(this);
viewer.setContentProvider(contentProvider);
//Set label provider settings
labelProvider = new AdapterFactoryLabelProviderDecorator(ProjectExplorer
.getProjectExplorer().getAdapterFactory(), viewer);
// In dispose() method we need to remove this listener manually!
if (labelProviderListener == null) {
labelProviderListener = new LabelProviderListerner();