Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-08-01 16:00:50 +0000
committerEike Stepper2012-08-01 16:00:50 +0000
commit1626ff34f20c5a74a8622754eb38932a104823b7 (patch)
tree17562a5ccb23059db84c9af63fc3cba180eb5264 /plugins/org.eclipse.emf.cdo.ui
parente68b1376a2c2e665edadadb44a30111ca30fba41 (diff)
downloadcdo-1626ff34f20c5a74a8622754eb38932a104823b7.tar.gz
cdo-1626ff34f20c5a74a8622754eb38932a104823b7.tar.xz
cdo-1626ff34f20c5a74a8622754eb38932a104823b7.zip
Consolidate viewer refreshs
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java21
1 files changed, 2 insertions, 19 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java
index 0bd01f5d60..27e092df41 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/ui/CDOItemProvider.java
@@ -56,7 +56,6 @@ import org.eclipse.emf.cdo.view.CDOViewTargetChangedEvent;
import org.eclipse.net4j.util.container.IContainer;
import org.eclipse.net4j.util.event.IEvent;
import org.eclipse.net4j.util.event.IListener;
-import org.eclipse.net4j.util.ui.UIUtil;
import org.eclipse.net4j.util.ui.actions.SafeAction;
import org.eclipse.net4j.util.ui.views.ContainerItemProvider;
import org.eclipse.net4j.util.ui.views.IElementFilter;
@@ -86,7 +85,7 @@ import java.util.List;
* {@link org.eclipse.jface.viewers.ILabelProvider label} provider for concepts such as {@link CDOSession},
* {@link CDOView}, {@link CDOResource} and {@link CDOResourceFolder}. It also providers common context menu action over
* those elements.
- *
+ *
* @author Eike Stepper
* @see org.eclipse.jface.viewers.IContentProvider
* @see org.eclipse.jface.viewers.ILabelProvider
@@ -95,8 +94,6 @@ public class CDOItemProvider extends ContainerItemProvider<IContainer<Object>>
{
private IWorkbenchPage page;
- private Font bold;
-
public CDOItemProvider(IWorkbenchPage page, IElementFilter rootElementFilter)
{
super(rootElementFilter);
@@ -109,20 +106,6 @@ public class CDOItemProvider extends ContainerItemProvider<IContainer<Object>>
}
@Override
- protected void connectInput(IContainer<Object> input)
- {
- super.connectInput(input);
- bold = UIUtil.getBoldFont(getViewer().getControl());
- }
-
- @Override
- protected void disconnectInput(IContainer<Object> input)
- {
- bold.dispose();
- super.disconnectInput(input);
- }
-
- @Override
public Object[] getChildren(Object element)
{
if (element instanceof CDOBranchManager)
@@ -269,7 +252,7 @@ public class CDOItemProvider extends ContainerItemProvider<IContainer<Object>>
CDOTransaction transaction = (CDOTransaction)obj;
if (transaction.isDirty())
{
- return bold;
+ return getBoldFont();
}
}

Back to the top