diff options
| author | Lars Vogel | 2016-03-08 09:43:11 +0000 |
|---|---|---|
| committer | Lars Vogel | 2016-03-08 22:51:00 +0000 |
| commit | 8878eeea77635ec09b82c5705f8f3e748e4fa32a (patch) | |
| tree | 7bf89bef66b90fb21353736f4fec9d9ce7ddae3b | |
| parent | b32ad8b02206a2b0d0776ae049b99ea0d837dacb (diff) | |
| download | eclipse.pde.ui-8878eeea77635ec09b82c5705f8f3e748e4fa32a.tar.gz eclipse.pde.ui-8878eeea77635ec09b82c5705f8f3e748e4fa32a.tar.xz eclipse.pde.ui-8878eeea77635ec09b82c5705f8f3e748e4fa32a.zip | |
Bug 487988 - Retire useless DefaultTableProvider
First bunch of changs to retire DefaultTableProvider
Change-Id: I6718c6322f74df0fa28165b21a8ad479248c71ff
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
11 files changed, 38 insertions, 37 deletions
diff --git a/ds/org.eclipse.pde.ds.ui/src/org/eclipse/pde/internal/ds/ui/editor/sections/DSPropertiesSection.java b/ds/org.eclipse.pde.ds.ui/src/org/eclipse/pde/internal/ds/ui/editor/sections/DSPropertiesSection.java index ea97b79864..3d7cd2d293 100644 --- a/ds/org.eclipse.pde.ds.ui/src/org/eclipse/pde/internal/ds/ui/editor/sections/DSPropertiesSection.java +++ b/ds/org.eclipse.pde.ds.ui/src/org/eclipse/pde/internal/ds/ui/editor/sections/DSPropertiesSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2015 Code 9 Corporation and others. + * Copyright (c) 2008, 2016 Code 9 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 @@ -9,6 +9,7 @@ * Code 9 Corporation - initial API and implementation * EclipseSource Corporation - ongoing enhancements * Rafael Oliveira Nobrega <rafael.oliveira@gmail.com> - bug 244997, 248216 + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ds.ui.editor.sections; @@ -23,6 +24,7 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.jface.action.Action; import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.jface.viewers.TableViewer; @@ -47,7 +49,6 @@ import org.eclipse.pde.internal.ds.ui.editor.dialogs.DSEditPropertyDialog; import org.eclipse.pde.internal.ui.editor.PDEFormPage; import org.eclipse.pde.internal.ui.editor.TableSection; import org.eclipse.pde.internal.ui.editor.context.InputContextManager; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.EditableTablePart; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.swt.SWT; @@ -72,7 +73,7 @@ public class DSPropertiesSection extends TableSection { private static final int F_UP_FLAG = -1; private static final int F_DOWN_FLAG = 1; - class ContentProvider extends DefaultTableProvider { + class ContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object inputElement) { if (inputElement instanceof IDSModel) { diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/category/DownloadStatsSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/category/DownloadStatsSection.java index c98fe32e93..990bd2b82a 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/category/DownloadStatsSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/category/DownloadStatsSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2014, 2015 Rapicorp Corporation and others. + * Copyright (c) 2014, 2016 Rapicorp 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 @@ -7,6 +7,7 @@ * * Contributors: * Rapicorp Corporation - initial API and implementation + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.category; @@ -28,7 +29,6 @@ import org.eclipse.pde.internal.ui.dialogs.PluginSelectionDialog; import org.eclipse.pde.internal.ui.editor.*; import org.eclipse.pde.internal.ui.editor.feature.FeatureEditor; import org.eclipse.pde.internal.ui.editor.plugin.ManifestEditor; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.FormEntry; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.swt.SWT; @@ -48,7 +48,7 @@ public class DownloadStatsSection extends TableSection { private TableViewer fArtifactTable; private ISiteModel fModel; - class ArtifactsContentProvider extends DefaultTableProvider { + class ArtifactsContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object inputElement) { // model = (IStatsInfo) inputElement; diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/DependencyManagementSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/DependencyManagementSection.java index 6f7ad1e35d..3a3c5bd498 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/DependencyManagementSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/DependencyManagementSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 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 @@ -10,6 +10,7 @@ * EclipseSource Corporation - ongoing enhancements * Anyware Technologies - ongoing enhancements * Alexander Kurtakov <akurtako@redhat.com> - bug 415649 + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.plugin; @@ -42,7 +43,6 @@ import org.eclipse.pde.internal.ui.editor.*; import org.eclipse.pde.internal.ui.editor.actions.SortAction; import org.eclipse.pde.internal.ui.editor.build.BuildInputContext; import org.eclipse.pde.internal.ui.editor.context.InputContext; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.pde.internal.ui.search.dependencies.AddNewDependenciesAction; import org.eclipse.pde.internal.ui.util.SharedLabelProvider; @@ -86,7 +86,7 @@ public class DependencyManagementSection extends TableSection implements IPlugin private static String DOWN = PDEUIMessages.RequiresSection_down; private Object entrySelectedObject = null; - class ContentProvider extends DefaultTableProvider { + class ContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object inputElement) { diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ImportPackageSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ImportPackageSection.java index 5eb0c48c33..41121253bb 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ImportPackageSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ImportPackageSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2015 IBM Corporation and others. + * Copyright (c) 2005, 2016 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 @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.plugin; @@ -36,7 +37,6 @@ import org.eclipse.pde.internal.core.util.PDEJavaHelper; import org.eclipse.pde.internal.ui.*; import org.eclipse.pde.internal.ui.editor.*; import org.eclipse.pde.internal.ui.editor.context.InputContextManager; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.ConditionalListSelectionDialog; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.pde.internal.ui.search.dependencies.UnusedDependenciesAction; @@ -120,7 +120,7 @@ public class ImportPackageSection extends TableSection { } } - class ImportPackageContentProvider extends DefaultTableProvider { + class ImportPackageContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object parent) { if (fHeader == null) { diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/RequiresSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/RequiresSection.java index 6b8479a2ac..c260114d30 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/RequiresSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/RequiresSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 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 @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Alexander Kurtakov <akurtako@redhat.com> - bug 415649 + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.plugin; @@ -34,7 +35,6 @@ import org.eclipse.pde.internal.ui.dialogs.PluginSelectionDialog; import org.eclipse.pde.internal.ui.editor.FormLayoutFactory; import org.eclipse.pde.internal.ui.editor.TableSection; import org.eclipse.pde.internal.ui.editor.actions.SortAction; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.pde.internal.ui.search.PluginSearchActionGroup; import org.eclipse.pde.internal.ui.search.dependencies.UnusedDependenciesAction; @@ -68,7 +68,7 @@ public class RequiresSection extends TableSection implements IPluginModelListene private int fImportInsertIndex; - class ImportContentProvider extends DefaultTableProvider { + class ImportContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object parent) { if (fImports == null) diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/FeatureSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/FeatureSection.java index 17ea7a8bd7..e125675ecf 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/FeatureSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/FeatureSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2015 IBM Corporation and others. + * Copyright (c) 2005, 2016 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 @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Alexander Kurtakov <akurtako@redhat.com> - bug 415649 + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.product; @@ -28,7 +29,6 @@ import org.eclipse.pde.internal.ui.dialogs.FeatureSelectionDialog; import org.eclipse.pde.internal.ui.editor.*; import org.eclipse.pde.internal.ui.editor.actions.SortAction; import org.eclipse.pde.internal.ui.editor.feature.FeatureEditor; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.pde.internal.ui.util.SWTUtil; import org.eclipse.pde.internal.ui.wizards.feature.NewFeatureProjectWizard; @@ -49,7 +49,7 @@ public class FeatureSection extends TableSection implements IPropertyChangeListe private SortAction fSortAction; private Action fNewFeatureAction; - class ContentProvider extends DefaultTableProvider { + class ContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object parent) { return getProduct().getFeatures(); diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/PluginSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/PluginSection.java index 6d54b891a4..c7fbadf7aa 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/PluginSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/PluginSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2015 IBM Corporation and others. + * Copyright (c) 2005, 2016 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 @@ -10,6 +10,7 @@ * EclipseSource Corporation - ongoing enhancements * Alexander Kurtakov <akurtako@redhat.com> - bug 415649 * Simon Scholz <simon.scholz@vogella.com> - bug 440275, 444808 + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.product; @@ -34,7 +35,6 @@ import org.eclipse.pde.internal.ui.*; import org.eclipse.pde.internal.ui.dialogs.PluginSelectionDialog; import org.eclipse.pde.internal.ui.editor.*; import org.eclipse.pde.internal.ui.editor.plugin.ManifestEditor; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.TablePart; import org.eclipse.pde.internal.ui.search.dependencies.DependencyCalculator; import org.eclipse.pde.internal.ui.util.PersistablePluginObject; @@ -55,7 +55,7 @@ import org.eclipse.ui.forms.widgets.Section; public class PluginSection extends TableSection implements IPluginModelListener { - class ContentProvider extends DefaultTableProvider { + class ContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object parent) { return getProduct().getPlugins(); diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/schema/SchemaAttributeDetails.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/schema/SchemaAttributeDetails.java index 5d45d3d56c..c7bfed9602 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/schema/SchemaAttributeDetails.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/schema/SchemaAttributeDetails.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 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 @@ -8,10 +8,12 @@ * Contributors: * IBM Corporation - initial API and implementation * Remy Chi Jian Suen <remy.suen@gmail.com> - Bug 201965 [Schema][Editors] Inappropriate selection behaviour after delete attempt in non-editable editor + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.schema; import org.eclipse.jface.layout.GridLayoutFactory; +import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.osgi.util.NLS; import org.eclipse.pde.core.IModelChangedEvent; import org.eclipse.pde.internal.core.ischema.*; @@ -19,7 +21,6 @@ import org.eclipse.pde.internal.core.schema.SchemaAttribute; import org.eclipse.pde.internal.core.schema.SchemaSimpleType; import org.eclipse.pde.internal.ui.PDEUIMessages; import org.eclipse.pde.internal.ui.editor.FormEntryAdapter; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.parts.ComboPart; import org.eclipse.pde.internal.ui.parts.FormEntry; import org.eclipse.swt.SWT; @@ -51,13 +52,14 @@ public abstract class SchemaAttributeDetails extends AbstractSchemaDetails { super(section, false, true); } - class SchemaAttributeContentProvider extends DefaultTableProvider { + class SchemaAttributeContentProvider implements IStructuredContentProvider { @Override public Object[] getElements(Object inputElement) { ISchemaSimpleType type = fAttribute.getType(); ISchemaRestriction restriction = type.getRestriction(); - if (restriction != null) + if (restriction != null) { return restriction.getChildren(); + } return new Object[0]; } } diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/ImplicitDependenciesSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/ImplicitDependenciesSection.java index 0ced9ff9b6..1953ba9f0c 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/ImplicitDependenciesSection.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/ImplicitDependenciesSection.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2015 IBM Corporation and others. + * Copyright (c) 2005, 2016 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 @@ -7,13 +7,10 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988 *******************************************************************************/ package org.eclipse.pde.internal.ui.editor.targetdefinition; -import org.eclipse.pde.core.target.NameVersionDescriptor; - -import org.eclipse.pde.core.target.*; - import java.util.*; import java.util.List; import org.eclipse.core.runtime.*; @@ -21,10 +18,10 @@ import org.eclipse.equinox.frameworkadmin.BundleInfo; import org.eclipse.jface.viewers.*; import org.eclipse.jface.window.Window; import org.eclipse.osgi.util.NLS; +import org.eclipse.pde.core.target.*; import org.eclipse.pde.internal.ui.*; import org.eclipse.pde.internal.ui.editor.FormLayoutFactory; import org.eclipse.pde.internal.ui.editor.plugin.ManifestEditor; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.shared.target.StyledBundleLabelProvider; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; @@ -107,7 +104,8 @@ public class ImplicitDependenciesSection extends SectionPart { Table table = toolkit.createTable(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI); table.setLayoutData(new GridData(GridData.FILL_BOTH)); fViewer = new TableViewer(table); - fViewer.setContentProvider(new DefaultTableProvider() { + fViewer.setContentProvider(new IStructuredContentProvider() { + @Override public Object[] getElements(Object inputElement) { NameVersionDescriptor[] bundles = getTarget().getImplicitDependencies(); diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/IUContentProvider.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/IUContentProvider.java index 2a808ee820..21f73e87b4 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/IUContentProvider.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/shared/target/IUContentProvider.java @@ -1,5 +1,5 @@ /*******************************************************************************
- * Copyright (c) 2011, 2015 IBM Corporation and others.
+ * Copyright (c) 2011, 2016 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
@@ -7,6 +7,7 @@ *
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 487988
*******************************************************************************/ package org.eclipse.pde.internal.ui.shared.target;
@@ -18,13 +19,12 @@ import org.eclipse.jface.viewers.ITreeContentProvider; import org.eclipse.pde.core.target.ITargetDefinition;
import org.eclipse.pde.internal.core.target.IUBundleContainer;
import org.eclipse.pde.internal.core.target.P2TargetUtils;
-import org.eclipse.pde.internal.ui.elements.DefaultTableProvider;
/**
* Content Provider for the {@link IUBundleContainer} target location
*
*/
-public class IUContentProvider extends DefaultTableProvider implements ITreeContentProvider {
+public class IUContentProvider implements ITreeContentProvider {
@Override
public Object[] getElements(Object inputElement) {
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/LibraryPluginJarsPage.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/LibraryPluginJarsPage.java index 003d6bf183..568c79f195 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/LibraryPluginJarsPage.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/LibraryPluginJarsPage.java @@ -20,7 +20,6 @@ import org.eclipse.jface.viewers.*; import org.eclipse.jface.window.Window; import org.eclipse.jface.wizard.WizardPage; import org.eclipse.pde.internal.ui.*; -import org.eclipse.pde.internal.ui.elements.DefaultTableProvider; import org.eclipse.pde.internal.ui.util.*; import org.eclipse.swt.SWT; import org.eclipse.swt.events.*; @@ -111,12 +110,13 @@ public class LibraryPluginJarsPage extends WizardPage { data.horizontalSpan = 2; l.setLayoutData(data); fTableViewer = new TableViewer(control, SWT.MULTI | SWT.BORDER); - fTableViewer.setContentProvider(new DefaultTableProvider() { + fTableViewer.setContentProvider(new IStructuredContentProvider() { @Override public Object[] getElements(Object inputElement) { return fJarPaths.toArray(); } }); + fTableViewer.setLabelProvider(new LabelProvider() { @Override public String getText(Object obj) { |
