Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2010-12-14 05:27:31 -0500
committerTomasz Zarna2010-12-14 05:27:31 -0500
commit2017e577b2985c89d395280f2ac3f30fb9eb0d86 (patch)
treeffedbd415046ffd882cbfb3712b40b818b8c70c2
parent4f75fcf6d3a9347470f1780a4370200145de110e (diff)
downloadeclipse.platform.team-2017e577b2985c89d395280f2ac3f30fb9eb0d86.tar.gz
eclipse.platform.team-2017e577b2985c89d395280f2ac3f30fb9eb0d86.tar.xz
eclipse.platform.team-2017e577b2985c89d395280f2ac3f30fb9eb0d86.zip
bug 331699: EditorsView's EditorsContentProvider can be replaced by ArrayContentProvider
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java30
1 files changed, 2 insertions, 28 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java
index 74dd14780..a1741a1f0 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -41,32 +41,6 @@ public class EditorsView extends ViewPart {
private Table table;
private TableViewer tableViewer;
- class EditorsContentProvider implements IStructuredContentProvider {
-
- /**
- * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
- */
- public Object[] getElements(Object inputElement) {
- return (EditorsInfo[]) inputElement;
- }
-
- /**
- * @see org.eclipse.jface.viewers.IContentProvider#dispose()
- */
- public void dispose() {
- }
-
- /**
- * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
- */
- public void inputChanged(
- Viewer viewer,
- Object oldInput,
- Object newInput) {
- }
-
- }
-
class EditorsLabelProvider implements ITableLabelProvider {
/**
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
@@ -242,7 +216,7 @@ public class EditorsView extends ViewPart {
tableViewer = new TableViewer(table);
createColumns(table, layout);
- tableViewer.setContentProvider(new EditorsContentProvider());
+ tableViewer.setContentProvider(ArrayContentProvider.getInstance());
tableViewer.setLabelProvider(new EditorsLabelProvider());
// set F1 help
PlatformUI.getWorkbench().getHelpSystem().setHelp(tableViewer.getControl(), IHelpContextIds.CVS_EDITORS_VIEW);

Back to the top