Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddExternalUtilityJarDropAction.java')
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddExternalUtilityJarDropAction.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddExternalUtilityJarDropAction.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddExternalUtilityJarDropAction.java
deleted file mode 100644
index 9afcaab3d..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddExternalUtilityJarDropAction.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2006 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.navigator.internal.dnd;
-
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-import org.eclipse.ui.navigator.resources.ResourceDropAdapterAssistant;
-
-/**
- * @author mdelder
- *
- */
-public class AddExternalUtilityJarDropAction extends ResourceDropAdapterAssistant {
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.workbench.navigator.dnd.ResourceDropAction#validateDrop(org.eclipse.wst.common.navigator.internal.views.navigator.dnd.CommonNavigatorDropAdapter,
- * java.lang.Object, int, org.eclipse.swt.dnd.TransferData)
- */
- public boolean validateDrop(CommonDropAdapter dropAdapter, Object target, int operation, TransferData transferType) {
- //TODO redo with components
-// if (FileTransfer.getInstance().isSupportedType(transferType)) {
-// IProject project = (IProject) AdaptabilityUtility.getAdapter(target, IProject.class);
-// try {
-// if (project.hasNature(IEARNatureConstants.NATURE_ID)) {
-// String[] sourceNames = (String[]) FileTransfer.getInstance().nativeToJava(transferType);
-// if (sourceNames == null)
-// return true;
-//
-// boolean result = true;
-// for (int i = 0; i < sourceNames.length; i++)
-// if (!(result = sourceNames[0].endsWith(".jar")))break; //$NON-NLS-1$
-// return result;
-// }
-// return false;
-// } catch (CoreException e) {
-// return false;
-// }
-// }
- return false;
- }
-}

Back to the top