aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2014-02-11 12:04:23 (EST)
committerGerrit Code Review @ Eclipse.org2014-02-14 13:05:40 (EST)
commitf3c2e454203de34c5dee2475ed7d504b633f08b7 (patch)
treeeee2315448a10c83550c10543f5ed21adef3c251
parent263b64a132cf7de34edfff84e2fc049dd25b7e13 (diff)
downloadeclipse.platform.ui-f3c2e454203de34c5dee2475ed7d504b633f08b7.zip
eclipse.platform.ui-f3c2e454203de34c5dee2475ed7d504b633f08b7.tar.gz
eclipse.platform.ui-f3c2e454203de34c5dee2475ed7d504b633f08b7.tar.bz2
Bug 427923: Move org.eclipse.ui.navigator.resource BREE to 1.6refs/changes/21/21821/5
Removed a few more warnings Signed-off-by: Mickael Istria <mistria@redhat.com> Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com> Change-Id: Ifd784eb4977cd1a48077c133b4c73457d0dae6c2
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/.classpath2
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/.settings/org.eclipse.jdt.core.prefs11
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/META-INF/MANIFEST.MF4
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/pom.xml2
-rwxr-xr-xbundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/ResourceToItemsMapper.java32
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/CopyAction.java18
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/PasteAction.java13
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/ResourceExtensionContentProvider.java12
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/workingsets/WorkingSetsContentProvider.java12
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java8
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDropAdapterAssistant.java9
11 files changed, 58 insertions, 65 deletions
diff --git a/bundles/org.eclipse.ui.navigator.resources/.classpath b/bundles/org.eclipse.ui.navigator.resources/.classpath
index 2fbb7a2..ad32c83 100644
--- a/bundles/org.eclipse.ui.navigator.resources/.classpath
+++ b/bundles/org.eclipse.ui.navigator.resources/.classpath
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
diff --git a/bundles/org.eclipse.ui.navigator.resources/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.ui.navigator.resources/.settings/org.eclipse.jdt.core.prefs
index 6d72822..82c7908 100644
--- a/bundles/org.eclipse.ui.navigator.resources/.settings/org.eclipse.jdt.core.prefs
+++ b/bundles/org.eclipse.ui.navigator.resources/.settings/org.eclipse.jdt.core.prefs
@@ -7,9 +7,9 @@ org.eclipse.jdt.core.circularClasspath=error
org.eclipse.jdt.core.classpath.exclusionPatterns=enabled
org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -91,7 +91,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disa
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.3
+org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
@@ -163,9 +163,12 @@ org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
diff --git a/bundles/org.eclipse.ui.navigator.resources/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui.navigator.resources/META-INF/MANIFEST.MF
index d66bef0..872c535 100644
--- a/bundles/org.eclipse.ui.navigator.resources/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.ui.navigator.resources/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.ui.navigator.resources; singleton:=true
-Bundle-Version: 3.4.600.qualifier
+Bundle-Version: 3.4.700.qualifier
Bundle-Activator: org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorPlugin
Bundle-Vendor: %Plugin.providerName
Bundle-Localization: plugin
@@ -22,6 +22,6 @@ Require-Bundle: org.eclipse.ui.ide;bundle-version="[3.6.0,4.0.0)",
org.eclipse.ui.workbench.texteditor;bundle-version="[3.6.0,4.0.0)",
org.eclipse.ltk.core.refactoring;bundle-version="[3.5.0,4.0.0)",
org.eclipse.ltk.ui.refactoring;bundle-version="[3.5.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Import-Package: com.ibm.icu.text
diff --git a/bundles/org.eclipse.ui.navigator.resources/pom.xml b/bundles/org.eclipse.ui.navigator.resources/pom.xml
index 01b4fba..818d8a2 100644
--- a/bundles/org.eclipse.ui.navigator.resources/pom.xml
+++ b/bundles/org.eclipse.ui.navigator.resources/pom.xml
@@ -19,6 +19,6 @@
</parent>
<groupId>org.eclipse.ui</groupId>
<artifactId>org.eclipse.ui.navigator.resources</artifactId>
- <version>3.4.600-SNAPSHOT</version>
+ <version>3.4.700-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/ResourceToItemsMapper.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/ResourceToItemsMapper.java
index 5bfa784..400512e 100755
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/ResourceToItemsMapper.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/ResourceToItemsMapper.java
@@ -36,15 +36,15 @@ public class ResourceToItemsMapper implements ICommonViewerMapper {
private static final int NUMBER_LIST_REUSE = 10;
- // map from resource to item
- private HashMap _resourceToItem;
- private Stack _reuseLists;
+ // map from resource to item. Value can be single Item of List<Item>
+ private HashMap<IResource, Object> _resourceToItem;
+ private Stack<List<Item>> _reuseLists;
private CommonViewer _commonViewer;
public ResourceToItemsMapper(CommonViewer viewer) {
- _resourceToItem = new HashMap();
- _reuseLists = new Stack();
+ _resourceToItem = new HashMap<IResource, Object>();
+ _reuseLists = new Stack<List<Item>>();
_commonViewer = viewer;
viewer.setMapper(this);
@@ -58,13 +58,13 @@ public class ResourceToItemsMapper implements ICommonViewerMapper {
_resourceToItem.put(resource, item);
} else if (existingMapping instanceof Item) {
if (existingMapping != item) {
- List list = getNewList();
- list.add(existingMapping);
+ List<Item> list = getNewList();
+ list.add((Item)existingMapping);
list.add(item);
_resourceToItem.put(resource, list);
}
} else { // List
- List list = (List) existingMapping;
+ List<Item> list = (List<Item>) existingMapping;
if (!list.contains(item)) {
list.add(item);
}
@@ -81,7 +81,7 @@ public class ResourceToItemsMapper implements ICommonViewerMapper {
} else if (existingMapping instanceof Item) {
_resourceToItem.remove(resource);
} else { // List
- List list = (List) existingMapping;
+ List<Item> list = (List<Item>) existingMapping;
list.remove(item);
if (list.isEmpty()) {
_resourceToItem.remove(list);
@@ -99,14 +99,14 @@ public class ResourceToItemsMapper implements ICommonViewerMapper {
return _resourceToItem.isEmpty();
}
- private List getNewList() {
+ private List<Item> getNewList() {
if (!_reuseLists.isEmpty()) {
- return (List) _reuseLists.pop();
+ return _reuseLists.pop();
}
- return new ArrayList(2);
+ return new ArrayList<Item>(2);
}
- private void releaseList(List list) {
+ private void releaseList(List<Item> list) {
if (_reuseLists.size() < NUMBER_LIST_REUSE) {
_reuseLists.push(list);
}
@@ -130,9 +130,9 @@ public class ResourceToItemsMapper implements ICommonViewerMapper {
} else if (obj instanceof Item) {
updateItem((Item) obj);
} else { // List of Items
- List list = (List) obj;
- for (int k = 0; k < list.size(); k++) {
- updateItem((Item) list.get(k));
+ List<Item> list = (List<Item>) obj;
+ for (Item item : list) {
+ updateItem(item);
}
}
}
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/CopyAction.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/CopyAction.java
index 7c1239b..894a2cb 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/CopyAction.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/CopyAction.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.ui.internal.navigator.resources.actions;
-import java.util.Iterator;
import java.util.List;
import org.eclipse.core.resources.IContainer;
@@ -28,8 +27,8 @@ import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.SelectionListenerAction;
-import org.eclipse.ui.part.ResourceTransfer;
import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMessages;
+import org.eclipse.ui.part.ResourceTransfer;
/**
* Standard action for copying the currently selected resources to the clipboard.
@@ -99,8 +98,8 @@ import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMess
* clipboard.
*/
public void run() {
- List selectedResources = getSelectedResources();
- IResource[] resources = (IResource[]) selectedResources
+ List<IResource> selectedResources = getSelectedResources();
+ IResource[] resources =selectedResources
.toArray(new IResource[selectedResources.size()]);
// Get the file names and a string representation
@@ -186,7 +185,7 @@ import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMess
return false;
}
- List selectedResources = getSelectedResources();
+ List<IResource> selectedResources = getSelectedResources();
if (selectedResources.size() == 0) {
return false;
}
@@ -204,16 +203,13 @@ import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMess
}
// must have a common parent
- IContainer firstParent = ((IResource) selectedResources.get(0))
- .getParent();
+ IContainer firstParent = selectedResources.get(0).getParent();
if (firstParent == null) {
return false;
}
- Iterator resourcesEnum = selectedResources.iterator();
- while (resourcesEnum.hasNext()) {
- IResource currentResource = (IResource) resourcesEnum.next();
- if (!currentResource.getParent().equals(firstParent)) {
+ for (IResource currentResource : selectedResources) {
+ if (!currentResource.getParent().equals(firstParent)) {
return false;
}
// resource location must exist
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/PasteAction.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/PasteAction.java
index 4c0e958..aef8259 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/PasteAction.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/PasteAction.java
@@ -79,11 +79,9 @@ import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMess
* @return the actual target of the paste action
*/
private IResource getTarget() {
- List selectedResources = getSelectedResources();
-
- for (int i = 0; i < selectedResources.size(); i++) {
- IResource resource = (IResource) selectedResources.get(i);
+ List<IResource> selectedResources = getSelectedResources();
+ for (IResource resource : selectedResources) {
if (resource instanceof IProject && !((IProject) resource).isOpen()) {
return null;
}
@@ -159,7 +157,7 @@ import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMess
* Returns the container to hold the pasted resources.
*/
private IContainer getContainer() {
- List selection = getSelectedResources();
+ List<IResource> selection = getSelectedResources();
if (selection.get(0) instanceof IFile) {
return ((IFile) selection.get(0)).getParent();
}
@@ -220,10 +218,9 @@ import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMess
// can paste files and folders to a single selection (file, folder,
// open project) or multiple file selection with the same parent
- List selectedResources = getSelectedResources();
+ List<IResource> selectedResources = getSelectedResources();
if (selectedResources.size() > 1) {
- for (int i = 0; i < selectedResources.size(); i++) {
- IResource resource = (IResource) selectedResources.get(i);
+ for (IResource resource : selectedResources) {
if (resource.getType() != IResource.FILE) {
return false;
}
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/ResourceExtensionContentProvider.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/ResourceExtensionContentProvider.java
index 37c68dc..d88251c 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/ResourceExtensionContentProvider.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/ResourceExtensionContentProvider.java
@@ -12,7 +12,6 @@ package org.eclipse.ui.internal.navigator.resources.workbench;
import java.util.ArrayList;
import java.util.Collection;
-import java.util.Iterator;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
@@ -104,7 +103,7 @@ public class ResourceExtensionContentProvider extends WorkbenchContentProvider {
}
- final Collection runnables = new ArrayList();
+ final Collection<Runnable> runnables = new ArrayList<Runnable>();
processDelta(delta, runnables);
if (runnables.isEmpty()) {
@@ -136,7 +135,7 @@ public class ResourceExtensionContentProvider extends WorkbenchContentProvider {
/**
* Process a resource delta. Add any runnables
*/
- private void processDelta(IResourceDelta delta, Collection runnables) {
+ private void processDelta(IResourceDelta delta, Collection<Runnable> runnables) {
//he widget may have been destroyed
// by the time this is run. Check for this and do nothing if so.
Control ctrl = viewer.getControl();
@@ -300,10 +299,9 @@ public class ResourceExtensionContentProvider extends WorkbenchContentProvider {
* Run all of the runnables that are the widget updates
* @param runnables
*/
- private void runUpdates(Collection runnables) {
- Iterator runnableIterator = runnables.iterator();
- while(runnableIterator.hasNext()){
- ((Runnable)runnableIterator.next()).run();
+ private void runUpdates(Collection<Runnable> runnables) {
+ for (Runnable runnable : runnables) {
+ runnable.run();
}
}
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/workingsets/WorkingSetsContentProvider.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/workingsets/WorkingSetsContentProvider.java
index 5329a4d..b2c5fec 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/workingsets/WorkingSetsContentProvider.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/workingsets/WorkingSetsContentProvider.java
@@ -168,7 +168,7 @@ public class WorkingSetsContentProvider implements ICommonContentProvider {
protected class WorkingSetHelper {
private final IWorkingSet workingSet;
- private final Map parents = new WeakHashMap();
+ private final Map<IAdaptable, IAdaptable> parents = new WeakHashMap<IAdaptable, IAdaptable>();
/**
* Create a Helper class for the given working set
@@ -186,12 +186,12 @@ public class WorkingSetsContentProvider implements ICommonContentProvider {
IWorkingSet[] components = aggregateSet.getComponents();
- for (int componentIndex = 0; componentIndex < components.length; componentIndex++) {
- IAdaptable[] elements = getWorkingSetElements(components[componentIndex]);
- for (int elementsIndex = 0; elementsIndex < elements.length; elementsIndex++) {
- parents.put(elements[elementsIndex], components[componentIndex]);
+ for (IWorkingSet component : components) {
+ IAdaptable[] elements = getWorkingSetElements(component);
+ for (IAdaptable element : elements) {
+ parents.put(element, component);
}
- parents.put(components[componentIndex], aggregateSet);
+ parents.put(component, aggregateSet);
}
} else {
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java
index 363946f..4e18100 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDragAdapterAssistant.java
@@ -50,7 +50,7 @@ public class ResourceDragAdapterAssistant extends
ResourceTransfer.getInstance(),
FileTransfer.getInstance() };
- private static final Class IRESOURCE_TYPE = IResource.class;
+ private static final Class<IResource> IRESOURCE_TYPE = IResource.class;
/*
* (non-Javadoc)
@@ -115,16 +115,16 @@ public class ResourceDragAdapterAssistant extends
}
private IResource[] getSelectedResources(IStructuredSelection aSelection) {
- Set resources = new LinkedHashSet();
+ Set<IResource> resources = new LinkedHashSet<IResource>();
IResource resource = null;
- for (Iterator iter = aSelection.iterator(); iter.hasNext();) {
+ for (Iterator<?> iter = aSelection.iterator(); iter.hasNext();) {
Object selected = iter.next();
resource = adaptToResource(selected);
if (resource != null) {
resources.add(resource);
}
}
- return (IResource[]) resources.toArray(new IResource[resources.size()]);
+ return resources.toArray(new IResource[resources.size()]);
}
private IResource adaptToResource(Object selected) {
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDropAdapterAssistant.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDropAdapterAssistant.java
index 472bb84..2c9fc2b 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDropAdapterAssistant.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/navigator/resources/ResourceDropAdapterAssistant.java
@@ -363,12 +363,12 @@ public class ResourceDropAdapterAssistant extends CommonDropAdapterAssistant {
* @return the resource selection from the LocalSelectionTransfer
*/
private IResource[] getSelectedResources(IStructuredSelection selection) {
- ArrayList selectedResources = new ArrayList();
+ ArrayList<IResource> selectedResources = new ArrayList<IResource>();
- for (Iterator i = selection.iterator(); i.hasNext();) {
+ for (Iterator<?> i = selection.iterator(); i.hasNext();) {
Object o = i.next();
if (o instanceof IResource) {
- selectedResources.add(o);
+ selectedResources.add((IResource)o);
} else if (o instanceof IAdaptable) {
IAdaptable a = (IAdaptable) o;
IResource r = (IResource) a.getAdapter(IResource.class);
@@ -377,8 +377,7 @@ public class ResourceDropAdapterAssistant extends CommonDropAdapterAssistant {
}
}
}
- return (IResource[]) selectedResources
- .toArray(new IResource[selectedResources.size()]);
+ return selectedResources.toArray(new IResource[selectedResources.size()]);
}
/**