Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-02-24 07:27:24 -0500
committerTobias Schwarz2014-02-24 07:28:04 -0500
commit4a2cf1835920346923d37711463e5ddbbc124a85 (patch)
treebe473172c1b014b9e84e29c517061c2dd48d9ac3
parente7f410ed91cc69221978a0e714fab4148d916ee7 (diff)
downloadorg.eclipse.tcf-4a2cf1835920346923d37711463e5ddbbc124a85.tar.gz
org.eclipse.tcf-4a2cf1835920346923d37711463e5ddbbc124a85.tar.xz
org.eclipse.tcf-4a2cf1835920346923d37711463e5ddbbc124a85.zip
Target Explorer: fix unwanted decoration in processes tab
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/trees/AbstractTreeControl.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/trees/AbstractTreeControl.java b/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/trees/AbstractTreeControl.java
index dfcbd01d7..ea934d10e 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/trees/AbstractTreeControl.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/trees/AbstractTreeControl.java
@@ -28,7 +28,6 @@ import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.viewers.ColumnViewerEditor;
import org.eclipse.jface.viewers.ColumnViewerEditorActivationStrategy;
-import org.eclipse.jface.viewers.ILabelDecorator;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ITreeContentProvider;
@@ -50,11 +49,8 @@ import org.eclipse.tcf.te.core.interfaces.IViewerInput;
import org.eclipse.tcf.te.ui.WorkbenchPartControl;
import org.eclipse.tcf.te.ui.forms.CustomFormToolkit;
import org.eclipse.tcf.te.ui.interfaces.ITreeControlInputChangedListener;
-import org.eclipse.ui.IDecoratorManager;
-import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.PlatformUI;
/**
@@ -587,10 +583,13 @@ public abstract class AbstractTreeControl extends WorkbenchPartControl implement
*/
protected ILabelProvider doCreateTreeViewerLabelProvider(AbstractTreeControl parentTreeControl, TreeViewer viewer) {
TreeViewerLabelProvider labelProvider = new TreeViewerLabelProvider(parentTreeControl, viewer);
- IWorkbench workbench = PlatformUI.getWorkbench();
- IDecoratorManager manager = workbench.getDecoratorManager();
- ILabelDecorator decorator = manager.getLabelDecorator();
- return new TreeViewerDecoratingLabelProvider(viewer, labelProvider,decorator);
+ // do not use a decorating label provider to avoid decoration when system management view element is visible
+ // in this case, the decoration is done also on the editor tab element!!
+ // IWorkbench workbench = PlatformUI.getWorkbench();
+ // IDecoratorManager manager = workbench.getDecoratorManager();
+ // ILabelDecorator decorator = manager.getLabelDecorator();
+ // return new TreeViewerDecoratingLabelProvider(viewer, labelProvider,decorator);
+ return labelProvider;
}
/**

Back to the top