Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.navigator.ui')
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/.cdtproject10
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/.classpath7
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/.cvsignore6
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/.project29
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/META-INF/MANIFEST.MF38
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/about.html22
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/build.properties20
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/J2EEPerspective.gifbin1018 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/appclientgroup_obj.gifbin578 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/connectorgroup_obj.gifbin355 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/eargroup_obj.gifbin596 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/ejbgroup_obj.gifbin569 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/folder.gifbin216 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_export.gifbin356 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_import_wiz.gifbin358 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ear.gifbin607 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ejbjar_wiz.gifbin563 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_rar.gifbin346 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/exportwar_wiz.gifbin581 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ear.gifbin595 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ejbjar.gifbin565 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_rar.gifbin347 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/importwar_wiz.gifbin580 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newappclient_wiz.gifbin364 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newconnectionprj_wiz.gifbin585 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newear_wiz.gifbin605 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newejbprj_wiz.gifbin587 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newwar_wiz.gifbin1039 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/cview16/j2ee_view.gifbin345 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/obj16/webapp_deploy.gifbin364 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/client_app_ovr.gifbin166 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/connector_ovr.gifbin166 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/ejb_module_ovr.gifbin167 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/enterprise_app_ovr.gifbin112 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/web_module_ovr.gifbin273 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/appclient_wiz.gifbin2940 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/connector_wiz.gifbin2982 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ear_wiz.gifbin3213 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ejbproject_wiz.gifbin3091 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_appclient_wiz.gifbin2992 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ear_wiz.gifbin3189 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ejbjar_obj.gifbin3487 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_rar_wiz.gifbin3374 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_war_wiz.gifbin3574 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_appclient_wiz.gifbin2978 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ear_wiz.gifbin3360 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ejbjar_wiz.gifbin3533 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_rar_wiz.gifbin3520 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_war_wiz.gifbin3598 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/war_wiz.gifbin3526 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/jcu_obj.gifbin569 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/servlet.gifbin588 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/sessionBean_obj.gifbin583 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/srvce_elem_obj.gifbin569 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webgroup_obj.gifbin573 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webservicedesc.gifbin563 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/icons/wsdl.gifbin563 -> 0 bytes
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManager.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManagerFactory.java38
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectManager.java253
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectProvider.java169
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/FlexibleEMFModelManager.java252
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EENavigatorConstants.java29
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EEWizardConstants.java74
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEActionProvider.java169
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEComparator.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEContentProvider.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEEMFAdapterFactory.java67
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EELabelProvider.java240
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EENavigationLabelProvider.java33
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEViewerSorter.java54
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/NonFlexibleEMFModelManager.java141
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddExternalUtilityJarDropAction.java51
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddModuleDropAction.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddProjectToEarDropAction.java121
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddUtilityJarDropAction.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/J2EEImportDropAction.java247
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/ModuleIdentifierSerializer.java48
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/plugin/J2EENavigatorPlugin.java60
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.properties33
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.xml929
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/prepareforpii.xml32
-rw-r--r--plugins/org.eclipse.jst.j2ee.navigator.ui/schema/componentWorkingSet.exsd124
83 files changed, 0 insertions, 3748 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/.cdtproject b/plugins/org.eclipse.jst.j2ee.navigator.ui/.cdtproject
deleted file mode 100644
index 8e388b2da..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/.cdtproject
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse-cdt version="2.0"?>
-
-<cdtproject>
-<data>
-<item id="cdt_indexer">
-<indexEnabled indexValue="true"/>
-</item>
-</data>
-</cdtproject>
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/.classpath b/plugins/org.eclipse.jst.j2ee.navigator.ui/.classpath
deleted file mode 100644
index 724dc5c34..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="j2ee-navigator/"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/.cvsignore b/plugins/org.eclipse.jst.j2ee.navigator.ui/.cvsignore
deleted file mode 100644
index eb62e2c0f..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/.cvsignore
+++ /dev/null
@@ -1,6 +0,0 @@
-bin
-temp.folder
-build.xml
-j2ee-navigator.jar
-@dot
-src.zip
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/.project b/plugins/org.eclipse.jst.j2ee.navigator.ui/.project
deleted file mode 100644
index d856d104c..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.jst.j2ee.navigator.ui</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>com.ibm.etools.ctc.javaprojectnature</nature>
- </natures>
-</projectDescription>
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/META-INF/MANIFEST.MF b/plugins/org.eclipse.jst.j2ee.navigator.ui/META-INF/MANIFEST.MF
deleted file mode 100644
index 4bff9ea5c..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,38 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Plugin.name
-Bundle-SymbolicName: org.eclipse.jst.j2ee.navigator.ui; singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.jst.j2ee.navigator.internal.plugin.J2EENavigatorPlugin
-Bundle-Vendor: %Plugin.providerName
-Bundle-Localization: plugin
-Export-Package: org.eclipse.jst.j2ee.navigator.internal,
- org.eclipse.jst.j2ee.navigator.internal.dnd,
- org.eclipse.jst.j2ee.navigator.internal.plugin
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.resources,
- org.eclipse.core.runtime,
- org.eclipse.jst.j2ee.core,
- org.eclipse.jst.j2ee.ui,
- org.eclipse.emf.edit,
- org.eclipse.emf.edit.ui,
- org.eclipse.wst.common.emfworkbench.integration,
- org.eclipse.wst.common.frameworks,
- org.eclipse.jdt.ui,
- org.eclipse.jst.j2ee,
- org.eclipse.jface.text,
- org.eclipse.wst.common.frameworks.ui,
- org.eclipse.ui.ide,
- org.eclipse.jdt.core,
- org.eclipse.jst.ejb.ui,
- org.eclipse.jst.servlet.ui,
- org.eclipse.jst.j2ee.jca.ui,
- org.eclipse.wst.common.modulecore,
- org.eclipse.jem.util,
- org.eclipse.jst.common.frameworks,
- org.eclipse.wst.common.project.facet.core,
- org.eclipse.ui.navigator,
- org.eclipse.ui.navigator.resources,
- org.eclipse.wst.common.emf,
- org.eclipse.wst.common.explorer
-Eclipse-AutoStart: true
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/about.html b/plugins/org.eclipse.jst.j2ee.navigator.ui/about.html
deleted file mode 100644
index 6f6b96c4c..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/about.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>February 24, 2005</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/build.properties b/plugins/org.eclipse.jst.j2ee.navigator.ui/build.properties
deleted file mode 100644
index 649ce90ef..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/build.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-###############################################################################
-# Copyright (c) 2003, 2005 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
-###############################################################################
-bin.includes = plugin.xml,\
- *.jar,\
- .,\
- icons/,\
- plugin.properties,\
- META-INF/,\
- about.html
-src.includes = icons,\
- schema/
-source.. = j2ee-navigator/
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/J2EEPerspective.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/J2EEPerspective.gif
deleted file mode 100644
index c45656801..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/J2EEPerspective.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/appclientgroup_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/appclientgroup_obj.gif
deleted file mode 100644
index 276842824..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/appclientgroup_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/connectorgroup_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/connectorgroup_obj.gif
deleted file mode 100644
index ad3af3c65..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/connectorgroup_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/eargroup_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/eargroup_obj.gif
deleted file mode 100644
index 2eeb3ef01..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/eargroup_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/ejbgroup_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/ejbgroup_obj.gif
deleted file mode 100644
index b0adb3e59..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/ejbgroup_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/folder.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/folder.gif
deleted file mode 100644
index c91b26723..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/folder.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_export.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_export.gif
deleted file mode 100644
index 6f83300c8..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_export.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_import_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_import_wiz.gif
deleted file mode 100644
index ce667f4ef..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/appclient_import_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ear.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ear.gif
deleted file mode 100644
index 2270b1717..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ear.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ejbjar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ejbjar_wiz.gif
deleted file mode 100644
index 72cd417c4..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_ejbjar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_rar.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_rar.gif
deleted file mode 100644
index befb3d4e8..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/export_rar.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/exportwar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/exportwar_wiz.gif
deleted file mode 100644
index ced859dd4..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/exportwar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ear.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ear.gif
deleted file mode 100644
index 099201bb5..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ear.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ejbjar.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ejbjar.gif
deleted file mode 100644
index 5644b48df..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_ejbjar.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_rar.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_rar.gif
deleted file mode 100644
index 50f25a2f7..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/import_rar.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/importwar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/importwar_wiz.gif
deleted file mode 100644
index 432c06679..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/importwar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newappclient_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newappclient_wiz.gif
deleted file mode 100644
index 0ce86a13a..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newappclient_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newconnectionprj_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newconnectionprj_wiz.gif
deleted file mode 100644
index 1bec6ba83..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newconnectionprj_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newear_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newear_wiz.gif
deleted file mode 100644
index 8b409b507..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newear_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newejbprj_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newejbprj_wiz.gif
deleted file mode 100644
index ecda22bf9..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newejbprj_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newwar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newwar_wiz.gif
deleted file mode 100644
index b9ac6be16..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ctool16/newwar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/cview16/j2ee_view.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/cview16/j2ee_view.gif
deleted file mode 100644
index 20acd4c42..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/cview16/j2ee_view.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/obj16/webapp_deploy.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/obj16/webapp_deploy.gif
deleted file mode 100644
index 80531e39b..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/obj16/webapp_deploy.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/client_app_ovr.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/client_app_ovr.gif
deleted file mode 100644
index 3ff1ca57e..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/client_app_ovr.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/connector_ovr.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/connector_ovr.gif
deleted file mode 100644
index b7e77bc69..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/connector_ovr.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/ejb_module_ovr.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/ejb_module_ovr.gif
deleted file mode 100644
index cf50d6d66..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/ejb_module_ovr.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/enterprise_app_ovr.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/enterprise_app_ovr.gif
deleted file mode 100644
index ec19c473c..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/enterprise_app_ovr.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/web_module_ovr.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/web_module_ovr.gif
deleted file mode 100644
index c1e96177a..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/ovr16/web_module_ovr.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/appclient_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/appclient_wiz.gif
deleted file mode 100644
index 56d7fa704..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/appclient_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/connector_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/connector_wiz.gif
deleted file mode 100644
index 231f8d3e7..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/connector_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ear_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ear_wiz.gif
deleted file mode 100644
index 625e763c9..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ear_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ejbproject_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ejbproject_wiz.gif
deleted file mode 100644
index 7f2aa1e05..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/ejbproject_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_appclient_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_appclient_wiz.gif
deleted file mode 100644
index 351539638..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_appclient_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ear_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ear_wiz.gif
deleted file mode 100644
index a327fa68a..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ear_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ejbjar_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ejbjar_obj.gif
deleted file mode 100644
index adca79ef0..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_ejbjar_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_rar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_rar_wiz.gif
deleted file mode 100644
index 6047f1adc..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_rar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_war_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_war_wiz.gif
deleted file mode 100644
index d25124251..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/export_war_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_appclient_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_appclient_wiz.gif
deleted file mode 100644
index 351a31dc9..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_appclient_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ear_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ear_wiz.gif
deleted file mode 100644
index 67754deee..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ear_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ejbjar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ejbjar_wiz.gif
deleted file mode 100644
index d123519da..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_ejbjar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_rar_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_rar_wiz.gif
deleted file mode 100644
index ea9dff4f6..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_rar_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_war_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_war_wiz.gif
deleted file mode 100644
index 514274d38..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/import_war_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/war_wiz.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/war_wiz.gif
deleted file mode 100644
index d964e2e56..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/full/wizban/war_wiz.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/jcu_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/jcu_obj.gif
deleted file mode 100644
index 36a73ace2..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/jcu_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/servlet.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/servlet.gif
deleted file mode 100644
index fc1bece72..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/servlet.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/sessionBean_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/sessionBean_obj.gif
deleted file mode 100644
index 507b8a82e..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/sessionBean_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/srvce_elem_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/srvce_elem_obj.gif
deleted file mode 100644
index 6fdcb3fe6..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/srvce_elem_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webgroup_obj.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webgroup_obj.gif
deleted file mode 100644
index 274d361ca..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webgroup_obj.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webservicedesc.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webservicedesc.gif
deleted file mode 100644
index 8fb844f5b..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/webservicedesc.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/wsdl.gif b/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/wsdl.gif
deleted file mode 100644
index 8fb844f5b..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/icons/wsdl.gif
+++ /dev/null
Binary files differ
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManager.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManager.java
deleted file mode 100644
index e42c31e7f..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManager.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- *******************************************************************************/
-/*
- * Created on Feb 17, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import org.eclipse.core.resources.IProject;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public abstract class EMFModelManager {
- private final IProject project;
- private final EMFRootObjectProvider provider;
- public abstract Object[] getModels();
- public final IProject getProject() {
- return project;
- }
- public final EMFRootObjectProvider getEMFRootObjectProvider(){
- return provider;
- }
- public EMFModelManager(IProject aProject, EMFRootObjectProvider aProvider) {
- project = aProject;
- provider = aProvider;
- }
-
- /**
- * @param affectedProject
- */
- protected void notifyListeners(IProject affectedProject) {
- provider.notifyListeners(affectedProject);
- }
- /**
- *
- */
- public abstract void dispose();
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManagerFactory.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManagerFactory.java
deleted file mode 100644
index bbbda1414..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFModelManagerFactory.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- *******************************************************************************/
-/*
- * Created on Feb 17, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.componentcore.ModuleCoreNature;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class EMFModelManagerFactory {
- public static EMFModelManager createEMFModelManager(IProject project, EMFRootObjectProvider provider) {
- boolean flexible = (ModuleCoreNature.getModuleCoreNature(project) != null);
- EMFModelManager modelManager = null;
- if (flexible)
- modelManager = new FlexibleEMFModelManager(project,provider);
- else
- modelManager = new NonFlexibleEMFModelManager(project,provider);
- return modelManager;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectManager.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectManager.java
deleted file mode 100644
index 163345659..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectManager.java
+++ /dev/null
@@ -1,253 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceChangeEvent;
-import org.eclipse.core.resources.IResourceChangeListener;
-import org.eclipse.core.resources.IResourceDelta;
-import org.eclipse.core.resources.IResourceDeltaVisitor;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.swt.SWTError;
-import org.eclipse.swt.SWTException;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModel;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-/**
- * <p>
- * The following class is experimental until fully documented.
- * </p>
- */
-public class EMFRootObjectManager implements EditModelListener, IResourceChangeListener, IResourceDeltaVisitor {
-
-
-
- private final Map projectEditModels = new HashMap();
- private final Map projectRootObjects = new HashMap();
-
- private final List listeners = new ArrayList();
-
- public interface IRefreshHandlerListener {
- void onRefresh(Object element);
- }
-
- /**
- *
- */
- public EMFRootObjectManager() {
- super();
- ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
- }
-
-
-
- public void dispose() {
- if (projectEditModels == null)
- return;
- ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
- EditModel editModel = null;
- Object[] keys = projectEditModels.keySet().toArray();
- for (int i = 0; i < keys.length; i++) {
- editModel = (EditModel) projectEditModels.remove(keys[i]);
- if (editModel != null) {
- editModel.removeListener(this);
- editModel.releaseAccess(this);
- }
- }
- }
-
- public Object getRootObject(IProject project) {
- if (project == null || !project.isAccessible())
- return null;
-
- Object rootObject = null;
- synchronized (projectRootObjects) {
- rootObject = projectRootObjects.get(project);
-
- if (rootObject == null || ((EObject) rootObject).eResource() == null) {
- EditModel editModel = getEditModelForProject(project);
- if (editModel != null) {
- rootObject = editModel.getPrimaryRootObject();
- projectRootObjects.put(project, rootObject);
- }
- }
- }
- return rootObject;
- }
-
-
- protected EditModel getEditModelForProject(IProject project) {
- if (project == null)
- return null;
- EditModel editModel = null;
- synchronized (projectEditModels) {
- editModel = (EditModel) projectEditModels.get(project);
- IVirtualComponent component = ComponentCore.createComponent(project);
- ArtifactEdit artifactEdit = null;
- try {
- if (editModel == null && project.isAccessible()) {
- artifactEdit = ArtifactEdit.getArtifactEditForRead(component);
- if (artifactEdit != null) {
- editModel = (EditModel) artifactEdit.getAdapter(EditModel.class);
- if (editModel != null) {
- editModel.addListener(this);
- addMapping(project, editModel);
- }
- }
- }
- } finally {
- if (artifactEdit!=null)
- artifactEdit.dispose();
- }
- }
- return editModel;
- }
-
- protected void addMapping(IProject project, EditModel editModel) {
- projectEditModels.put(project, editModel);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener#editModelChanged(org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent)
- */
- public void editModelChanged(EditModelEvent anEvent) {
- IProject affectedProject = anEvent.getEditModel().getProject();
- switch (anEvent.getEventCode()) {
- case EditModelEvent.UNLOADED_RESOURCE :
- case EditModelEvent.REMOVED_RESOURCE : {
- Object oldRootObject = projectRootObjects.remove(affectedProject);
- if (oldRootObject != null)
- notifyListeners(affectedProject);
- }
- break;
- case EditModelEvent.SAVE : {
- Object oldRootObject = projectRootObjects.get(affectedProject);
- if (oldRootObject == null)
- notifyListeners(affectedProject);
- }
- break;
- case EditModelEvent.PRE_DISPOSE :
- disposeCache(affectedProject);
- break;
- default :
- break;
- }
- }
-
-
- /**
- * @param aProject
- */
- private void notifyListeners(IProject aProject) {
- for (int x = 0; x < listeners.size(); ++x) {
- IRefreshHandlerListener refreshHandler = (IRefreshHandlerListener) listeners.get(x);
- refreshHandler.onRefresh(aProject);
- }
-
- }
-
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)
- */
- public void resourceChanged(IResourceChangeEvent event) {
- final IResourceDelta delta = event.getDelta();
-
- if (delta != null) {
- try {
- delta.accept(EMFRootObjectManager.this);
- } catch (CoreException e) {
- Logger.getLogger().logError(e);
- } catch (SWTException swte) {
- Logger.getLogger().logError(swte);
- } catch (SWTError swte) {
- Logger.getLogger().logError(swte);
- }
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.resources.IResourceDeltaVisitor#visit(org.eclipse.core.resources.IResourceDelta)
- */
- public boolean visit(IResourceDelta delta) throws CoreException {
- IResource resource = delta.getResource();
- if (resource != null) {
- switch (resource.getType()) {
- case IResource.ROOT :
- return true;
- case IResource.PROJECT :
- boolean projectOpenStateChanged = ((delta.getFlags() & IResourceDelta.OPEN) != 0);
- if (delta.getKind() == IResourceDelta.REMOVED || projectOpenStateChanged)
- disposeCache((IProject) resource);
- return false;
- }
- }
- return false;
- }
-
-
- protected void disposeCache(IProject affectedProject) {
- synchronized (projectEditModels) {
- projectRootObjects.remove(affectedProject);
- //System.out.println("REMOVING edit model: " + affectedProject.getName());
- EditModel editModel = (EditModel) projectEditModels.remove(affectedProject);
- //System.out.println("REMOVED edit model " + affectedProject.getName());
- if (editModel != null) {
- editModel.removeListener(this);
- editModel.releaseAccess(this);
- //System.out.println("RELEASED edit model " + affectedProject.getName());
- }
- }
- }
-
- public void addRefreshHandlerListener(IRefreshHandlerListener aListener) {
- synchronized (getListeners()) {
- if (aListener != null && !getListeners().contains(aListener))
- getListeners().add(aListener);
- }
- }
-
- public void removeRefreshHandlerListener(IRefreshHandlerListener aListener) {
- synchronized (listeners) {
- listeners.remove(aListener);
- }
- }
-
- /**
- * Insert the method's description here. Creation date: (4/11/2001 4:42:58 PM)
- *
- * @return java.util.List
- */
- protected java.util.List getListeners() {
- return listeners;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectProvider.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectProvider.java
deleted file mode 100644
index 3a1d2e792..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/EMFRootObjectProvider.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- *******************************************************************************/
-/*
- * Created on Feb 17, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceChangeEvent;
-import org.eclipse.core.resources.IResourceChangeListener;
-import org.eclipse.core.resources.IResourceDelta;
-import org.eclipse.core.resources.IResourceDeltaVisitor;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jem.util.logger.proxy.Logger;
-import org.eclipse.swt.SWTError;
-import org.eclipse.swt.SWTException;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class EMFRootObjectProvider implements IResourceChangeListener, IResourceDeltaVisitor{
- private final HashMap emfModelCache = new HashMap();
- private final List listeners = new ArrayList();
-
- public interface IRefreshHandlerListener {
- void onRefresh(Object element);
- }
-
- /**
- *
- */
- public EMFRootObjectProvider() {
- super();
- ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
- }
-
- public Object[] getModels(IProject project){
- try {
- EMFModelManager modelManager = (EMFModelManager) emfModelCache.get(project);
- if (modelManager == null) {
- synchronized (emfModelCache) {
- modelManager= EMFModelManagerFactory.createEMFModelManager(project,this) ;
- emfModelCache.put(project,modelManager);
- }
- }
- return modelManager.getModels();
- } catch (Exception ex) {
- //ex.printStackTrace();
- return null;
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.resources.IResourceChangeListener#resourceChanged(org.eclipse.core.resources.IResourceChangeEvent)
- */
- public void resourceChanged(IResourceChangeEvent event) {
- final IResourceDelta delta = event.getDelta();
-
- if (delta != null) {
- try {
- delta.accept(EMFRootObjectProvider.this);
- } catch (CoreException e) {
- Logger.getLogger().logError(e);
- } catch (SWTException swte) {
- Logger.getLogger().logError(swte);
- } catch (SWTError swte) {
- Logger.getLogger().logError(swte);
- }
- }
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.resources.IResourceDeltaVisitor#visit(org.eclipse.core.resources.IResourceDelta)
- */
- public boolean visit(IResourceDelta delta) throws CoreException {
- IResource resource = delta.getResource();
- if (resource != null) {
- switch (resource.getType()) {
- case IResource.ROOT :
- return true;
- case IResource.PROJECT :
- boolean projectOpenStateChanged = ((delta.getFlags() & IResourceDelta.OPEN) != 0);
- if (delta.getKind() == IResourceDelta.REMOVED || projectOpenStateChanged) {
- IProject project = (IProject) resource;
- dispose(project);
- }
- return false;
- }
- }
- return false;
- }
-
- private void dispose(IProject project) {
- if (project == null) return;
- EMFModelManager modelManager = (EMFModelManager) emfModelCache.remove(project);
- if (modelManager != null) {
- modelManager.dispose();
- modelManager = null;
- }
- }
- public void dispose() {
- ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
- EMFModelManager modelManager = null;
- Object[] keys = emfModelCache.keySet().toArray();
- for (int i = 0; i < keys.length; i++) {
- modelManager = (EMFModelManager) emfModelCache.remove(keys[i]);
- if (modelManager != null) {
- modelManager.dispose();
- }
- }
- }
-
-
- /**
- * @param aProject
- */
- public void notifyListeners(IProject aProject) {
- for (int x = 0; x < listeners.size(); ++x) {
- IRefreshHandlerListener refreshHandler = (IRefreshHandlerListener) listeners.get(x);
- refreshHandler.onRefresh(aProject);
- }
-
- }
-
- public void addRefreshHandlerListener(IRefreshHandlerListener aListener) {
- synchronized (getListeners()) {
- if (aListener != null && !getListeners().contains(aListener))
- getListeners().add(aListener);
- }
- }
-
- public void removeRefreshHandlerListener(IRefreshHandlerListener aListener) {
- synchronized (listeners) {
- listeners.remove(aListener);
- }
- }
-
- /**
- * Insert the method's description here. Creation date: (4/11/2001 4:42:58 PM)
- *
- * @return java.util.List
- */
- protected java.util.List getListeners() {
- return listeners;
- }
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/FlexibleEMFModelManager.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/FlexibleEMFModelManager.java
deleted file mode 100644
index f5cf432a1..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/FlexibleEMFModelManager.java
+++ /dev/null
@@ -1,252 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- *******************************************************************************/
-/*
- * Created on Feb 17, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.wst.common.componentcore.ArtifactEdit;
-import org.eclipse.wst.common.componentcore.internal.StructureEdit;
-import org.eclipse.wst.common.componentcore.internal.WorkbenchComponent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModel;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class FlexibleEMFModelManager extends EMFModelManager implements EditModelListener{
-
- private List rootObjects = new ArrayList();
- private static final Object[] EMPTY_OBJECT = new Object[0];
- private final List artifactEdits = new ArrayList();
- private StructureEdit moduleCore;
- private final Map artifactEditToRootObject = new HashMap();
-
- /**
- * @param aProject
- * @param provider
- */
- public FlexibleEMFModelManager(IProject aProject, EMFRootObjectProvider provider) {
- super(aProject,provider);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.navigator.internal.EMFModelManager#getModels()
- */
- public Object[] getModels() {
- try {
-
- IProject project = getProject();
- if ( project== null || !project.isAccessible())
- return EMPTY_OBJECT;
-
- synchronized (rootObjects) {
- if (!isValid(rootObjects)) {
- rootObjects = getRootObjects();
- }
- }
- } catch (Exception ex) {
- ex.printStackTrace();
- }
- if (rootObjects != null) {
- return rootObjects.toArray() ;
- }
- return EMPTY_OBJECT;
-
- }
-
- private boolean isValid(List rootObjects) {
- if (rootObjects == null || rootObjects.size()==0)
- return false;
- for (int x=0; x< rootObjects.size(); ++x) {
- EObject eObject = (EObject) rootObjects.get(x);
- if (eObject != null && eObject.eResource() == null)
- return false;
- }
- return true;
- }
-
- /**
- * @param project
- * @return
- */
- private List getRootObjects() {
- List artifacts = getArtifactEdits();
- List flexibleObjects = new ArrayList();
- ArtifactEdit artifactEdit = null;
- EObject contentModelRoot = null;
- for (int x=0; x< artifacts.size(); ++x) {
- artifactEdit = (ArtifactEdit)artifacts.get(x);
- contentModelRoot = artifactEdit.getContentModelRoot();
- if (contentModelRoot != null) {
- flexibleObjects.add(contentModelRoot);
- if (!rootObjects.contains(contentModelRoot))
- rootObjects.add(contentModelRoot);
- artifactEditToRootObject.put(artifactEdit,contentModelRoot);
- }
- }
- return flexibleObjects;
- }
-
- protected List getArtifactEdits() {
-
- IProject project = getProject();
- if (project == null)
- return null;
- synchronized (artifactEdits) {
- if (artifactEdits.size() ==0 && project.isAccessible()) {
- StructureEdit moduleCore = getModuleCore();
- WorkbenchComponent[] workBenchModules = moduleCore.getWorkbenchModules();
- for (int i = 0; i < workBenchModules.length; i++) {
- WorkbenchComponent module = workBenchModules[i];
- ArtifactEdit artifactEdit = null;
- try{
- artifactEdit = ArtifactEdit.getArtifactEditForRead(project);
- if(artifactEdit != null) {
- artifactEdits.add(artifactEdit);
- artifactEdit.addListener(this);
- }
- } catch(Exception e){
- e.printStackTrace();
- }
- }
-
- }
- }
- return artifactEdits;
- }
-
- private StructureEdit getModuleCore() {
- if (moduleCore == null) {
- moduleCore = StructureEdit.getStructureEditForRead(getProject());
- }
- return moduleCore;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.navigator.internal.EMFModelManager#dispose()
- */
- public void dispose() {
- if (artifactEdits != null) {
- for (int x=0; x< artifactEdits.size(); ++x) {
- ArtifactEdit artifactEdit = (ArtifactEdit)artifactEdits.get(x);
- if (artifactEdit != null) {
- artifactEdit.removeListener(this);
- artifactEdit.dispose();
- }
-
- }
- }
- if (moduleCore != null)
- moduleCore.dispose();
- rootObjects.clear();
-
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener#editModelChanged(org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent)
- */
- public void editModelChanged(EditModelEvent anEvent) {
- IProject affectedProject = anEvent.getEditModel().getProject();
-
- switch (anEvent.getEventCode()) {
- case EditModelEvent.UNLOADED_RESOURCE :
- case EditModelEvent.REMOVED_RESOURCE : {
- Object oldRootObject = removeRootObject(anEvent.getEditModel(),affectedProject);
- getRootObjects();
- if (oldRootObject != null)
- notifyListeners(affectedProject);
- }
- break;
- case EditModelEvent.SAVE : {
- Object oldRootObject = getRootObject(anEvent.getEditModel(),affectedProject);
- if (oldRootObject == null)
- notifyListeners(affectedProject);
- }
- break;
- case EditModelEvent.PRE_DISPOSE :
- dispose(anEvent.getEditModel(),affectedProject);
- break;
- default :
- break;
- }
-
- }
-
-
-
- /**
- * @param editModel
- * @param affectedProject
- * @return
- */
- private Object getRootObject(EditModel editModel, IProject project) {
- ArtifactEdit artifactEdit = getArtifactEdit(editModel,project);
- if (artifactEdit != null) {
- return artifactEditToRootObject.get(artifactEdit);
- }
- return null;
- }
-
- /**
- * @param editModel
- * @param affectedProject
- * @return
- */
- private Object removeRootObject(EditModel editModel, IProject project) {
- ArtifactEdit artifactEdit = getArtifactEdit(editModel,project);
- if (artifactEdit != null) {
- rootObjects.remove(artifactEditToRootObject.get(artifactEdit));
- artifactEditToRootObject.remove(artifactEdit);
- }
- return artifactEdit;
- }
-
- /**
- * @param affectedProject
- * @param editModel
- */
- private void dispose( EditModel editModel, IProject project) {
- ArtifactEdit artifactEdit = getArtifactEdit(editModel,project);
- if (artifactEdit != null) {
- artifactEdit.removeListener(this);
- artifactEdits.remove(artifactEdit);
- artifactEditToRootObject.remove(artifactEdit);
- }
-
- }
-
- private ArtifactEdit getArtifactEdit(EditModel editModel, IProject project) {
- if (artifactEdits != null) {
- for (int x=0; x<artifactEdits.size(); ++x) {
- ArtifactEdit artifactEdit = (ArtifactEdit)artifactEdits.get(x);
- if (artifactEdit.hasEditModel(editModel))
- return artifactEdit;
- }
- }
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EENavigatorConstants.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EENavigatorConstants.java
deleted file mode 100644
index 6e7495a36..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EENavigatorConstants.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- *******************************************************************************/
-/*
- * Created on Jul 7, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-
-/**
- * @author mdelder
- *
- * TODO To change the template for this generated type comment go to Window - Preferences - Java -
- * Code Style - Code Templates
- */
-public interface IJ2EENavigatorConstants {
-
- String VIEWER_ID = "org.eclipse.wst.common.explorer.CommonProjectExplorer";//$NON-NLS-1$
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EEWizardConstants.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EEWizardConstants.java
deleted file mode 100644
index 1758945e9..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/IJ2EEWizardConstants.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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;
-
-import org.eclipse.jst.ejb.ui.internal.wizard.EJBComponentCreationWizard;
-import org.eclipse.jst.ejb.ui.internal.wizard.EJBComponentExportWizard;
-import org.eclipse.jst.ejb.ui.internal.wizard.EJBComponentImportWizard;
-import org.eclipse.jst.j2ee.internal.wizard.AppClientComponentCreationWizard;
-import org.eclipse.jst.j2ee.internal.wizard.AppClientComponentExportWizard;
-import org.eclipse.jst.j2ee.internal.wizard.AppClientComponentImportWizard;
-import org.eclipse.jst.j2ee.internal.wizard.EARComponentCreationWizard;
-import org.eclipse.jst.j2ee.internal.wizard.EARComponentExportWizard;
-import org.eclipse.jst.j2ee.internal.wizard.EARComponentImportWizard;
-import org.eclipse.jst.j2ee.internal.wizard.J2EEUtilityJarImportWizardNew;
-import org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorComponentCreationWizard;
-import org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorComponentExportWizard;
-import org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorComponentImportWizard;
-import org.eclipse.jst.servlet.ui.internal.wizard.WebComponentCreationWizard;
-import org.eclipse.jst.servlet.ui.internal.wizard.WebComponentExportWizard;
-import org.eclipse.jst.servlet.ui.internal.wizard.WebComponentImportWizard;
-
-/**
- * <p>
- * The following class is experimental until fully documented.
- * </p>
- * <p>
- * The Creation IDs are used for activity filtering and as such are declared on the individual
- * wizards. All other IDs must be maintained to stay in sync with the values found in the plugin.xml
- * files of the respective module UI plugins.
- */
-public interface IJ2EEWizardConstants {
-
- String NEW_EAR_PROJECT_WIZARD_ID = EARComponentCreationWizard.WIZARD_ID;
-
- String NEW_APPCLIENT_PROJECT_WIZARD_ID = AppClientComponentCreationWizard.WIZARD_ID;
-
- String NEW_JCA_PROJECT_WIZARD_ID = ConnectorComponentCreationWizard.WIZARD_ID;
-
- String NEW_EJB_PROJECT_WIZARD_ID = EJBComponentCreationWizard.WIZARD_ID;
-
- String NEW_WEB_PROJECT_WIZARD_ID = WebComponentCreationWizard.WIZARD_ID;
-
- String NEW_ENTERPRISE_BEAN_WIZARD_ID = "org.eclipse.jst.j2ee.ejb.ui.util.createEJBWizard"; //$NON-NLS-1$
-
- String IMPORT_EAR_WIZARD_ID = EARComponentImportWizard.class.getName();
-
- String IMPORT_APPCLIENT_WIZARD_ID = AppClientComponentImportWizard.class.getName();
-
- String IMPORT_CONNECTOR_WIZARD_ID = ConnectorComponentImportWizard.class.getName();
-
- String IMPORT_ENTERPRISE_BEAN_WIZARD_ID = EJBComponentImportWizard.class.getName();
-
- String IMPORT_WEB_MODULE_WIZARD_ID = WebComponentImportWizard.class.getName();
-
- String IMPORT_UTILITY_JAR_WIZARD_ID = J2EEUtilityJarImportWizardNew.class.getName();
-
- String EXPORT_EAR_WIZARD_ID = EARComponentExportWizard.class.getName();
-
- String EXPORT_APPCLIENT_WIZARD_ID = AppClientComponentExportWizard.class.getName();
-
- String EXPORT_CONNECTOR_WIZARD_ID = ConnectorComponentExportWizard.class.getName();
-
- String EXPORT_ENTERPRISE_BEAN_WIZARD_ID = EJBComponentExportWizard.class.getName();
-
- String EXPORT_WEB_MODULE_WIZARD_ID = WebComponentExportWizard.class.getName();
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEActionProvider.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEActionProvider.java
deleted file mode 100644
index 56ecb2c49..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEActionProvider.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.edit.provider.ItemProvider;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jst.j2ee.internal.actions.OpenJ2EEResourceAction;
-import org.eclipse.jst.j2ee.internal.provider.J2EEUtilityJarItemProvider;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.ActionContext;
-import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMessages;
-import org.eclipse.ui.navigator.CommonActionProvider;
-import org.eclipse.ui.navigator.ICommonActionExtensionSite;
-import org.eclipse.ui.navigator.ICommonMenuConstants;
-import org.eclipse.ui.navigator.ICommonViewerWorkbenchSite;
-import org.eclipse.ui.navigator.WizardActionGroup;
-
-public class J2EEActionProvider extends CommonActionProvider implements IDoubleClickListener {
-
- private OpenJ2EEResourceAction openAction;
- private WizardActionGroup newWizardActionGroup;
-
-// private J2EERenameAction renameAction;
-
- //private WTPOptionalOperationAction genericDelete;
- //TODO add back generic delete
- /**
- *
- */
- public J2EEActionProvider() {
- }
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.actions.ICommonActionProvider#init(org.eclipse.ui.IViewPart,
- * org.eclipse.jface.viewers.StructuredViewer,
- * org.eclipse.wst.common.navigator.internal.views.extensions.NavigatorContentService)
- */
- public void init(ICommonActionExtensionSite aConfig) {
- if (aConfig.getViewSite() instanceof ICommonViewerWorkbenchSite) {
- IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) aConfig.getViewSite()).getWorkbenchWindow();
- newWizardActionGroup = new WizardActionGroup(window, PlatformUI.getWorkbench().getNewWizardRegistry(),WizardActionGroup.TYPE_NEW);
- }
- openAction = new OpenJ2EEResourceAction();
- aConfig.getStructuredViewer().addDoubleClickListener(this);
-// renameAction = new J2EERenameAction(aConfig.getViewSite(), aConfig.getViewSite().getShell());
-//
-// genericDelete = new WTPOptionalOperationAction(WTPGenericActionIds.DELETE, WorkbenchMessages.Workbench_delete); //$NON-NLS-1$
-// ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
-// genericDelete.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
-// genericDelete.setDisabledImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
-// genericDelete.setWorkbenchSite(viewPart.getViewSite());
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.actions.ICommonActionProvider#setActionContext(org.eclipse.ui.actions.ActionContext)
- */
- public void setContext(ActionContext aContext) {
-
- if (aContext != null && aContext.getSelection() instanceof IStructuredSelection) {
- IStructuredSelection selection = (IStructuredSelection) aContext.getSelection();
-
- openAction.selectionChanged(selection);
-// renameAction.selectionChanged(selection);
-
- Object[] array = selection.toArray();
- if (isUtilityJars(array)) {
- J2EEUtilityJarItemProvider utilityJarItemProvider = null;
- List newSelection = new ArrayList();
- for (int i = 0; i < array.length; i++) {
- utilityJarItemProvider = (J2EEUtilityJarItemProvider) array[i];
- newSelection.addAll(utilityJarItemProvider.getChildren(null));
- }
- selection = new StructuredSelection(newSelection);
- }
- //genericDelete.selectionChanged(genericDelete, selection);
- }
- super.setContext(aContext);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.actions.ICommonActionProvider#fillActionBars(org.eclipse.ui.IActionBars)
- */
- public void fillActionBars(IActionBars theActionBars) {
-// if (genericDelete.isEnabled())
-// theActionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), genericDelete);
- return;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.actions.ICommonActionProvider#fillContextMenu(org.eclipse.jface.action.IMenuManager)
- */
- public void fillContextMenu(IMenuManager aMenu) {
- IStructuredSelection selection = (IStructuredSelection) getContext().getSelection();
- if (selection.getFirstElement() instanceof ItemProvider) {
-
- IMenuManager submenu = null;
- if (submenu == null)
- submenu = new MenuManager(WorkbenchNavigatorMessages.Workbench_new, ICommonMenuConstants.GROUP_NEW);
-
- // fill the menu from the commonWizard contributions
- newWizardActionGroup.setContext(getContext());
- newWizardActionGroup.fillContextMenu(submenu);
-
- submenu.add(new Separator(ICommonMenuConstants.GROUP_ADDITIONS));
-
- // append the submenu after the GROUP_NEW group.
- aMenu.insertAfter(ICommonMenuConstants.GROUP_NEW, submenu);
- }
- else {
- if (openAction.isEnabled())
- aMenu.appendToGroup(ICommonMenuConstants.GROUP_OPEN, openAction);
- }
- /* if (renameAction.isEnabled()) {
- aMenu.appendToGroup(ICommonMenuConstants.COMMON_MENU_EDIT_ACTIONS, renameAction);
- actionsAdded = true;
- }
- if (genericDelete.isEnabled()) {
- aMenu.appendToGroup(ICommonMenuConstants.COMMON_MENU_EDIT_ACTIONS, genericDelete);
- actionsAdded = true;
- }*/
- }
-
- private boolean isUtilityJars(Object[] items) {
- if (items != null) {
- for (int i = 0; i < items.length; i++) {
- if (items[i] == null || items[i].getClass() != J2EEUtilityJarItemProvider.class)
- return false;
- }
- return true;
- }
- return false;
- }
- public void updateActionBars() {
- // TODO Auto-generated method stub
- super.updateActionBars();
- }
- public void doubleClick(DoubleClickEvent event) {
- openAction.run();
-
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEComparator.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEComparator.java
deleted file mode 100644
index 33d2ab606..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEComparator.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- *******************************************************************************/
-/*
- * Created on Jan 22, 2005
- *
- * TODO To change the template for this generated file go to Window - Preferences - Java - Code
- * Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import java.util.Comparator;
-
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-import org.eclipse.jst.j2ee.internal.ejb.provider.J2EEJavaClassProviderHelper;
-
-
-public class J2EEComparator implements Comparator {
-
- private J2EEViewerSorter j2eeViewSorter = new J2EEViewerSorter();
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
- */
- public int compare(Object o1, Object o2) {
- J2EEJavaClassProviderHelper providerHelperLeftArg = null;
- J2EEJavaClassProviderHelper providerHelperRightArg = null;
-
- if (o1 instanceof J2EEJavaClassProviderHelper)
- providerHelperLeftArg = (J2EEJavaClassProviderHelper) o1;
- if (o2 instanceof J2EEJavaClassProviderHelper)
- providerHelperRightArg = (J2EEJavaClassProviderHelper) o2;
-
-
- /* if both arguments are J2EEJavaClassProviderHelpers */
- if (providerHelperLeftArg != null && providerHelperRightArg != null)
- return providerHelperLeftArg.getText().compareTo(providerHelperRightArg.getText());
- /* if exactly one of the arguments are J2EEJavaClassProviderHelpers */
- else if (providerHelperLeftArg != null && o2 instanceof EnterpriseBean)
- return 1;
- else if (providerHelperRightArg != null && o1 instanceof EnterpriseBean)
- return -1;
- return j2eeViewSorter.compare(null, o1, o2);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.util.Comparator#equals(java.lang.Object)
- */
- public boolean equals(Object obj) {
- return obj instanceof J2EEComparator;
- }
-
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEContentProvider.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEContentProvider.java
deleted file mode 100644
index 9edf8f4f7..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEContentProvider.java
+++ /dev/null
@@ -1,218 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jface.viewers.AbstractTreeViewer;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jst.j2ee.internal.ejb.provider.BeanClassProviderHelper;
-import org.eclipse.jst.j2ee.internal.provider.MethodsProviderDelegate;
-import org.eclipse.jst.j2ee.navigator.internal.EMFRootObjectProvider.IRefreshHandlerListener;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.internal.navigator.AdaptabilityUtility;
-import org.eclipse.ui.navigator.CommonViewer;
-import org.eclipse.ui.progress.UIJob;
-import org.eclipse.wst.common.internal.emfworkbench.integration.DynamicAdapterFactory;
-
-/**
- * <p>
- * The following class is experimental until fully documented.
- * </p>
- */
-public class J2EEContentProvider implements ITreeContentProvider, IRefreshHandlerListener {
-
- private static final Class IPROJECT_CLASS = IProject.class;
-
- private final EMFRootObjectProvider rootObjectProvider;
-
- private AdapterFactoryContentProvider delegateContentProvider;
- private MethodsProviderDelegate delegateMethodsProvider;
-
- private String viewerId = null;
- Viewer viewer;
-
- /**
- *
- */
- public J2EEContentProvider() {
- rootObjectProvider = new EMFRootObjectProvider();
- rootObjectProvider.addRefreshHandlerListener(this);
- }
-
- /**
- *
- */
- public J2EEContentProvider(String aViewerId) {
- rootObjectProvider = new EMFRootObjectProvider();
- updateContentProviders(aViewerId);
- rootObjectProvider.addRefreshHandlerListener(this);
- }
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
- */
- public Object[] getElements(Object anInputElement) {
- return getChildren(anInputElement);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider#getChildren(java.lang.Object)
- */
- public Object[] getChildren(Object aParentElement) {
- IProject project = null;
- List children = new ArrayList();
- if (aParentElement instanceof IProject || aParentElement instanceof IJavaProject) {
- project = (IProject) ((IAdaptable) aParentElement).getAdapter(IPROJECT_CLASS);
- if (project != null) {
- Object[] rootObjects = (rootObjectProvider != null) ? rootObjectProvider.getModels(project) : null;
- if (rootObjects != null) {
- for (int x=0; x< rootObjects.length ; ++x) {
- children.add(rootObjects[x]);
- }
-
- }
- }
- } else if (MethodsProviderDelegate.providesContentFor(aParentElement))
- return delegateMethodsProvider.getChildren(aParentElement);
- else /* if (isEMFEditObject(aParentElement)) */{
- Object[] siblings = delegateContentProvider.getChildren(aParentElement);
- if (siblings != null)
- children.addAll(Arrays.asList(siblings));
- }
- return children.toArray();
- }
-
- public Object getParent(Object object) {
- if (MethodsProviderDelegate.providesContentFor(object))
- return delegateMethodsProvider.getParent(object);
- Object parent = delegateContentProvider.getParent(object);
- if (parent == null && object instanceof BeanClassProviderHelper)
- parent = ((BeanClassProviderHelper) object).getEjb();
- if (parent == null && object instanceof EObject)
- parent = ProjectUtilities.getProject((EObject) object);
- return parent;
- }
-
- /**
- * @see org.eclipse.jface.viewers.IContentProvider#dispose()
- */
- public void dispose() {
- rootObjectProvider.removeRefreshHandlerListener(this);
- delegateContentProvider.dispose();
- rootObjectProvider.dispose();
- delegateMethodsProvider.dispose();
-
- }
-
- /*
- * @see ITreeContentProvider#hasChildren(Object)
- */
- public boolean hasChildren(Object element) {
- if (MethodsProviderDelegate.providesContentFor(element))
- return delegateMethodsProvider.hasChildren(element);
- /* else if (isEMFEditObject(element)) */
- return delegateContentProvider.hasChildren(element);
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer,
- * java.lang.Object, java.lang.Object)
- */
- public void inputChanged(Viewer aViewer, Object anOldInput, Object aNewInput) {
- String newViewerId = null;
- viewer = aViewer;
- if (aViewer instanceof CommonViewer)
- newViewerId = ((CommonViewer) aViewer).getNavigatorContentService().getViewerId();
-
- if (newViewerId != null && (viewerId == null || !viewerId.equals(newViewerId)))
- updateContentProviders(newViewerId);
-
- delegateContentProvider.inputChanged(aViewer, anOldInput, aNewInput);
- delegateMethodsProvider.inputChanged(aViewer, anOldInput, aNewInput);
- }
-
- /**
- * @param viewerId2
- */
- private void updateContentProviders(String aViewerId) {
-
- /* Dispose of the existing content providers */
- if (delegateContentProvider != null)
- delegateContentProvider.dispose();
- if (delegateMethodsProvider != null)
- delegateMethodsProvider.dispose();
-
- /* Create new content providers using the new viewer id */
- DynamicAdapterFactory adapterFactory = new DynamicAdapterFactory(aViewerId);
- delegateContentProvider = new AdapterFactoryContentProvider(adapterFactory);
- delegateMethodsProvider = new MethodsProviderDelegate(adapterFactory);
-
- /* Remember the viewer id */
- viewerId = aViewerId;
-
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.jst.j2ee.navigator.internal.EMFRootObjectManager.IRefreshHandlerListener#onRefresh(java.lang.Object)
- */
- public void onRefresh(final Object element) {
- if (viewer instanceof AbstractTreeViewer) {
- if (Display.getCurrent() != null) {
- ((AbstractTreeViewer) viewer).refresh(element, true);
- } else {
- /* Create and schedule a UI Job to update the Navigator Content Viewer */
- Job job = new UIJob("Update the Navigator Content Viewer Job") { //$NON-NLS-1$
- public IStatus runInUIThread(IProgressMonitor monitor) {
- ((AbstractTreeViewer) viewer).refresh(element, true);
- return Status.OK_STATUS;
- }
- };
-
- if (element instanceof ISchedulingRule)
- job.setRule((ISchedulingRule)element);
- else {
- ISchedulingRule rule = (ISchedulingRule)AdaptabilityUtility.getAdapter(element,ISchedulingRule.class);
- if (rule != null) {
- job.setRule(rule);
- }
- }
-
- job.schedule();
- }
- }
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEEMFAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEEMFAdapterFactory.java
deleted file mode 100644
index cf4b18a02..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEEMFAdapterFactory.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- *******************************************************************************/
-/*
- * Created on Feb 25, 2004
- *
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IAdapterFactory;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper;
-
-/**
- * @author mdelder
- *
- */
-public class J2EEEMFAdapterFactory implements IAdapterFactory {
-
- protected static final Class IPROJECT_CLASS = IProject.class;
- protected static final Class IRESOURCE_CLASS = IResource.class;
- protected static final Class IFILE_CLASS = IFile.class;
- protected static final Class EOBJECT_CLASS = EObject.class;
-
- /**
- *
- */
- public J2EEEMFAdapterFactory() {
- super();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
- */
- public Object getAdapter(Object adaptableObject, Class adapterType) {
- if (adaptableObject instanceof EObject) {
- if (adapterType == IFILE_CLASS || adapterType == IRESOURCE_CLASS)
- return WorkbenchResourceHelper.getFile((EObject) adaptableObject);
- else if (adapterType == IPROJECT_CLASS)
- return ProjectUtilities.getProject((EObject) adaptableObject);
- }
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
- */
- public Class[] getAdapterList() {
- return new Class[]{IPROJECT_CLASS, IRESOURCE_CLASS, IFILE_CLASS};
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EELabelProvider.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EELabelProvider.java
deleted file mode 100644
index 33ecc3a81..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EELabelProvider.java
+++ /dev/null
@@ -1,240 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
-import org.eclipse.jem.util.emf.workbench.ProjectUtilities;
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jst.j2ee.common.internal.util.CommonUtil;
-import org.eclipse.jst.j2ee.internal.ejb.provider.J2EEJavaClassProviderHelper;
-import org.eclipse.jst.j2ee.internal.provider.J2EEAdapterFactoryLabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.IMemento;
-import org.eclipse.ui.navigator.ICommonContentExtensionSite;
-import org.eclipse.ui.navigator.ICommonLabelProvider;
-import org.eclipse.wst.common.internal.emfworkbench.integration.DynamicAdapterFactory;
-
-/**
- * <p>
- * The following class is experimental until fully documented.
- * </p>
- */
-public class J2EELabelProvider implements ICommonLabelProvider {
-
- private AdapterFactoryLabelProvider delegateLabelProvider;
-
- /**
- *
- */
- public J2EELabelProvider() {
- super();
- }
-
- /**
- *
- */
- public J2EELabelProvider(String aViewerId) {
- super();
- initialize(aViewerId);
- }
-
- public void initialize(String aViewerId) {
- delegateLabelProvider = new J2EEAdapterFactoryLabelProvider(new DynamicAdapterFactory(aViewerId));
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.extensions.ICommonLabelProvider#getDescription(java.lang.Object)
- */
- public String getDescription(Object anElement) {
- if (anElement instanceof EObject) {
- EObject eObj = (EObject) anElement;
- if (CommonUtil.isDeploymentDescriptorRoot(eObj, true /* include ears */)) {
- IProject parent = ProjectUtilities.getProject(eObj);
- String path = new Path(eObj.eResource().getURI().toString()).makeRelative().toString();
- if (parent == null)
- return path;
- int startIndex = path.indexOf(parent.getFullPath().toString());
- return -1 == startIndex ? path : path.substring(startIndex);
- }
- }
- return null;
- }
-
- /**
- * @param listener
- */
- public void addListener(ILabelProviderListener listener) {
- if (delegateLabelProvider != null)
- delegateLabelProvider.addListener(listener);
- }
-
- /**
- *
- */
- public void dispose() {
- if (delegateLabelProvider != null)
- delegateLabelProvider.dispose();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#equals(java.lang.Object)
- */
- public boolean equals(Object obj) {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.equals(obj);
- return false;
- }
-
- /**
- *
- */
- public void fireLabelProviderChanged() {
- if (delegateLabelProvider != null)
- delegateLabelProvider.fireLabelProviderChanged();
- }
-
- /**
- * @return
- */
- public AdapterFactory getAdapterFactory() {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.getAdapterFactory();
- return null;
- }
-
- /**
- * @param object
- * @param columnIndex
- * @return
- */
- public Image getColumnImage(Object object, int columnIndex) {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.getColumnImage(object, columnIndex);
- return null;
- }
-
- /**
- * @param object
- * @param columnIndex
- * @return
- */
- public String getColumnText(Object object, int columnIndex) {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.getColumnText(object, columnIndex);
- return null;
- }
-
- /**
- * @param element
- * @return
- */
- public Image getImage(Object element) {
-
- if(element instanceof J2EEJavaClassProviderHelper)
- return ((J2EEJavaClassProviderHelper) element).getImage();
- if (delegateLabelProvider != null)
- return delegateLabelProvider.getImage(element);
- return null;
- }
-
- /**
- * @param element
- * @return
- */
- public String getText(Object element) {
- if(element instanceof J2EEJavaClassProviderHelper)
- return ((J2EEJavaClassProviderHelper) element).getText();
- if (delegateLabelProvider != null)
- return delegateLabelProvider.getText(element);
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#hashCode()
- */
- public int hashCode() {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.hashCode();
- return super.hashCode();
- }
-
- /**
- * @param object
- * @param id
- * @return
- */
- public boolean isLabelProperty(Object object, String id) {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.isLabelProperty(object, id);
- return false;
- }
-
- /**
- * @param notification
- */
- public void notifyChanged(Notification notification) {
- if (delegateLabelProvider != null)
- delegateLabelProvider.notifyChanged(notification);
- }
-
- /**
- * @param listener
- */
- public void removeListener(ILabelProviderListener listener) {
- if (delegateLabelProvider != null)
- delegateLabelProvider.removeListener(listener);
- }
-
- /**
- * @param adapterFactory
- */
- public void setAdapterFactory(AdapterFactory adapterFactory) {
- if (delegateLabelProvider != null)
- delegateLabelProvider.setAdapterFactory(adapterFactory);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#toString()
- */
- public String toString() {
- if (delegateLabelProvider != null)
- return delegateLabelProvider.toString();
- return super.toString();
- }
-
- public void init(ICommonContentExtensionSite aSite) {
- initialize(IJ2EENavigatorConstants.VIEWER_ID);
-
- }
-
- public void restoreState(IMemento aMemento) {
- // TODO Auto-generated method stub
-
- }
-
- public void saveState(IMemento aMemento) {
- // TODO Auto-generated method stub
-
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EENavigationLabelProvider.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EENavigationLabelProvider.java
deleted file mode 100644
index 0820d939a..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EENavigationLabelProvider.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- *******************************************************************************/
-/*
- * Created on Nov 21, 2003
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.jst.j2ee.internal.provider.J2EEAdapterFactoryLabelProvider;
-
-/**
- * @author Administrator
- *
- * To change the template for this generated type comment go to Window - Preferences - Java - Code
- * Generation - Code and Comments
- */
-public class J2EENavigationLabelProvider extends J2EEAdapterFactoryLabelProvider {
-
- public J2EENavigationLabelProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEViewerSorter.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEViewerSorter.java
deleted file mode 100644
index 2b20c1320..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EEViewerSorter.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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;
-
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jst.j2ee.common.internal.util.CommonUtil;
-import org.eclipse.jst.j2ee.ejb.EnterpriseBean;
-
-
-public class J2EEViewerSorter extends ViewerSorter {
-
- /**
- * Constructor for J2EEViewerSorter.
- */
- public J2EEViewerSorter() {
- super();
- }
-
-
-
- /**
- * @see ViewerSorter#compare(Viewer, Object, Object)
- */
- public int compare(Viewer viewer, Object e1, Object e2) {
- //if (shouldSort(e1, e2))
- return super.compare(viewer, e1, e2);
- //return 0;
- }
-
- protected boolean isEnterpriseBean(Object o) {
- return o instanceof EnterpriseBean;
- }
-
- protected boolean isDeploymentDescriptorRoot(Object o) {
- return CommonUtil.isDeploymentDescriptorRoot(o);
- }
-
- protected boolean shouldSort(Object e1, Object e2) {
- return (isDeploymentDescriptorRoot(e1) && isDeploymentDescriptorRoot(e2)) || (isEnterpriseBean(e1) && isEnterpriseBean(e2)) || ((e1 instanceof IFile) && (e2 instanceof IFile));
- }
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/NonFlexibleEMFModelManager.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/NonFlexibleEMFModelManager.java
deleted file mode 100644
index 221299c0c..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/NonFlexibleEMFModelManager.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2005 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
- *******************************************************************************/
-/*
- * Created on Feb 17, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModel;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent;
-import org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener;
-
-/**
- * @author Admin
- *
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-public class NonFlexibleEMFModelManager extends EMFModelManager implements EditModelListener{
-
- private EditModel editModel;
- private Object rootObject;
- private static final Object[] EMPTY_OBJECT = new Object[0];
- /**
- * @param aProject
- * @param provider
- */
- public NonFlexibleEMFModelManager(IProject aProject, EMFRootObjectProvider provider) {
- super(aProject, provider);
- // TODO Auto-generated constructor stub
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.navigator.internal.EMFModelManager#getModels()
- */
- public Object[] getModels() {
- // TODO Auto-generated method stub
- if (getProject() == null || !getProject().isAccessible())
- return EMPTY_OBJECT;
-
- //synchronized (rootObject) {
- if (rootObject == null || ((EObject) rootObject).eResource() == null) {
- EditModel editModel = getEditModel();
- if (editModel != null) {
- rootObject = editModel.getPrimaryRootObject();
- }
- }
- //}
- if (rootObject==null)
- return EMPTY_OBJECT;
- else {
- Object[] objects = new Object[1];
- objects[0] = rootObject;
- return objects;
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.j2ee.navigator.internal.EMFModelManager#dispose()
- */
- public void dispose() {
- if (editModel != null) {
- editModel.removeListener(this);
- editModel.releaseAccess(this);
- editModel = null;
- }
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.common.internal.emfworkbench.integration.EditModelListener#editModelChanged(org.eclipse.wst.common.internal.emfworkbench.integration.EditModelEvent)
- */
- public void editModelChanged(EditModelEvent anEvent) {
- IProject affectedProject = anEvent.getEditModel().getProject();
- switch (anEvent.getEventCode()) {
- case EditModelEvent.UNLOADED_RESOURCE :
- case EditModelEvent.REMOVED_RESOURCE :
- if (rootObject != null){
- notifyListeners(affectedProject);
- }
- break;
- case EditModelEvent.SAVE : {
- if (rootObject == null)
- notifyListeners(affectedProject);
- }
- break;
- case EditModelEvent.PRE_DISPOSE :
- dispose();
- break;
- default :
- break;
- }
-
- }
-
-
-
- protected EditModel getEditModel() {
- IProject project = getProject();
- if (project == null)
- return null;
-
- //TODO fix up
- //synchronized (editModel) {
-// if (editModel == null && project.isAccessible()) {
-// //System.out.println("getEditModelForProject " + project.getName());
-// J2EENature nature = J2EENature.getRegisteredRuntime(project);
-// if (nature != null) {
-// editModel = nature.getJ2EEEditModelForRead(this);
-// if (editModel != null) {
-// editModel.addListener(this);
-// }
-// }
-// }
- //}
- return editModel;
- }
-
- protected void disposeCache(IProject affectedProject) {
- //synchronized (editModel) {
- if (editModel != null) {
- editModel.removeListener(this);
- editModel.releaseAccess(this);
- editModel = null;
- }
- //}
- }
-
-
-}
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 95992e0ac..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, 2005 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.internal.navigator.resources.workbench.ResourceDropAction;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-
-/**
- * @author mdelder
- *
- */
-public class AddExternalUtilityJarDropAction extends ResourceDropAction {
-
- /*
- * (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;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddModuleDropAction.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddModuleDropAction.java
deleted file mode 100644
index 6d6f05bd1..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddModuleDropAction.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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.core.resources.IProject;
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * @author mdelder
- *
- */
-public class AddModuleDropAction extends AddProjectToEarDropAction {
-
- public AddModuleDropAction() {
- super();
- }
-
- protected boolean validateProjectToAdd(IProject projectToAdd, int earVersion) {
- //TODO fix up to use components
-// J2EENature moduleNature = J2EENature.getRegisteredRuntime(projectToAdd);
-// if (null == moduleNature || moduleNature.getNatureID().equals(IEARNatureConstants.NATURE_ID) || moduleNature.getJ2EEVersion() > earVersion) {
-// return false;
-// }
- return true;
- }
-
- protected IDataModel getDataModel(IProject earProject, IProject projectToAdd) {
- //TODO fix up to use components
-// return AddModuleToEARDataModel.createAddToEARDataModel(null,null);
- return null;
- }
-
- public boolean validateDrop(CommonDropAdapter dropAdapter, Object target, int operation, TransferData transferType) {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean run(CommonDropAdapter dropAdapter, Object source, Object target) {
- // TODO Auto-generated method stub
- return false;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddProjectToEarDropAction.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddProjectToEarDropAction.java
deleted file mode 100644
index 26af24838..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddProjectToEarDropAction.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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 java.util.Iterator;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-import org.eclipse.ui.part.IDropActionDelegate;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.AdaptabilityUtility;
-
-/**
- * @author jsholl
- *
- */
-public abstract class AddProjectToEarDropAction implements IDropActionDelegate{
-
- public AddProjectToEarDropAction() {
- super();
- }
-
- public boolean validateDrop(CommonDropAdapter dropAdapter, Object target, int operation, TransferData transferType) {
- return false;
- //TODO switch to components
-// if (LocalSelectionTransfer.getInstance().isSupportedType(transferType) || PluginTransfer.getInstance().isSupportedType(transferType)) {
-// IProject earProject = (IProject) AdaptabilityUtility.getAdapter(target, IProject.class);
-// if (null == earProject || !earProject.isAccessible()) {
-// return false;
-// }
-//
-// int earVersion = earNature.getApplication().getJ2EEVersionID();
-//
-// ISelection selection = LocalSelectionTransfer.getInstance().getSelection();
-// if (selection == null || !(selection instanceof IStructuredSelection)) {
-// return false;
-// }
-// IStructuredSelection structuredSelection = (IStructuredSelection) selection;
-// if (structuredSelection.isEmpty()) {
-// return false;
-// }
-// Object key = new Object();
-// EAREditModel editModel = null;
-// try {
-// editModel = earNature.getEarEditModelForRead(key);
-// Iterator iterator = structuredSelection.iterator();
-// while (iterator.hasNext()) {
-// Object next = iterator.next();
-// IProject projectToAdd = (IProject) AdaptabilityUtility.getAdapter(next, IProject.class);
-// if (null == projectToAdd || !projectToAdd.isAccessible()) {
-// return false;
-// }
-//
-// if (!validateProjectToAdd(projectToAdd, earVersion)) {
-// return false;
-// }
-//
-// if (editModel.hasMappingToProject(projectToAdd)) {
-// return false;
-// }
-// }
-// } finally {
-// if (null != editModel) {
-// editModel.releaseAccess(key);
-// }
-// }
-// return true;
-// }
-// return false;
- }
-
- protected abstract boolean validateProjectToAdd(IProject projectToAdd, int earVersion);
-
- protected abstract IDataModel getDataModel(IProject earProject, IProject projectToAdd);
-
- protected void doInit() {
- //default nothing
- }
-
- public boolean run(Object source, Object target) {
- if (source instanceof IStructuredSelection)
- return run((IStructuredSelection) source, (IProject) AdaptabilityUtility.getAdapter(target, IProject.class));
- return false;
- }
-
- public boolean run(CommonDropAdapter dropAdapter, Object source, Object target) {
- return run(source, target);
- }
-
- protected boolean run(IStructuredSelection selection, IProject earProject) {
- if (selection == null || selection.isEmpty() || earProject == null || !earProject.isAccessible())
- return false;
-
- for (Iterator selectionIterator = selection.iterator(); selectionIterator.hasNext();) {
- Object sourceObject = selectionIterator.next();
-
- IProject projectToAdd = (IProject) AdaptabilityUtility.getAdapter(sourceObject, IProject.class);
- if (projectToAdd != null) {
- try {
- IDataModel dataModel = getDataModel(earProject, projectToAdd);
- dataModel.getDefaultOperation().execute(new NullProgressMonitor(),null);
- } catch (Exception e) {
- //NavigatorPlugin.log(e.toString());
- }
- }
- }
- return true;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddUtilityJarDropAction.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddUtilityJarDropAction.java
deleted file mode 100644
index 6dd260967..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/AddUtilityJarDropAction.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- *******************************************************************************/
-/*
- * Created on Jun 9, 2004
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
- */
-package org.eclipse.jst.j2ee.navigator.internal.dnd;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-
-/**
- * @author jsholl
- *
- */
-public class AddUtilityJarDropAction extends AddProjectToEarDropAction {
-
- public AddUtilityJarDropAction() {
- super();
- }
-
- protected boolean validateProjectToAdd(IProject projectToAdd, int earVersion) {
- try {
- return projectToAdd.hasNature(JavaCore.NATURE_ID);
- } catch (CoreException e) {
- //Ignore
- }
- return false;
- }
-
- protected IDataModel getDataModel(IProject earProject, IProject projectToAdd) {
- //TODO migrate to AddComponentToEnterpriseApplicationDataModelProvider
- IDataModel dataModel = null;
- //boolean syncServerTarget = ServerTargetUIHelper.setModuleServerTargetIfNecessary(earProject, projectToAdd, getShell());
-// dataModel = AddUtilityProjectToEARDataModel.createAddToEARDataModel(earProject.getName(), projectToAdd);
-// dataModel.setBooleanProperty(AddArchiveToEARDataModel.SYNC_TARGET_RUNTIME, syncServerTarget);
- return dataModel;
- }
-
- public boolean run(CommonDropAdapter dropAdapter, Object source, Object target) {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean validateDrop(CommonDropAdapter dropAdapter, Object target, int operation, TransferData transferType) {
- // TODO Auto-generated method stub
- return false;
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/J2EEImportDropAction.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/J2EEImportDropAction.java
deleted file mode 100644
index 6ba709389..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/J2EEImportDropAction.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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
- *******************************************************************************/
-/*
- * Created on May 6, 2004
- *
- */
-package org.eclipse.jst.j2ee.navigator.internal.dnd;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.Archive;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.ArchiveOptions;
-import org.eclipse.jst.j2ee.commonarchivecore.internal.impl.CommonarchiveFactoryImpl;
-import org.eclipse.jst.j2ee.datamodel.properties.IJ2EEModuleImportDataModelProperties;
-import org.eclipse.jst.j2ee.internal.wizard.ImportUtil;
-import org.eclipse.swt.dnd.FileTransfer;
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.ui.navigator.CommonDropAdapter;
-import org.eclipse.ui.part.IDropActionDelegate;
-import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
-import org.eclipse.wst.common.frameworks.internal.AdaptabilityUtility;
-import org.eclipse.wst.common.frameworks.internal.datamodel.ui.DataModelWizard;
-
-/**
- * @author jsholl
- *
- */
-public class J2EEImportDropAction implements IDropActionDelegate {
- private ArchiveOptions readOnlyArchiveOptions;
-
- public J2EEImportDropAction() {
- readOnlyArchiveOptions = new ArchiveOptions();
- readOnlyArchiveOptions.setIsReadOnly(true);
- }
-
- private boolean fileExistsOnDisk(String fileName) {
- if (fileName != null && fileName.length() > 0) {
- java.io.File file = new java.io.File(fileName);
- return file.exists() && !file.isDirectory();
- }
- return false;
- }
-
- public boolean validateDrop(CommonDropAdapter dropAdapter, Object target, int operation, TransferData transferType) {
- if (FileTransfer.getInstance().isSupportedType(transferType)) {
- String[] sourceNames = (String[]) FileTransfer.getInstance().nativeToJava(transferType);
- if (sourceNames == null || sourceNames.length != 1) { //only handle one file for now
- return false;
- }
- String fileName = sourceNames[0];
- if (!(fileName.endsWith(".ear") || fileName.endsWith(".jar") || fileName.endsWith(".war") || fileName.endsWith(".rar"))) { //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
- return false;
- }
- if (!fileExistsOnDisk(fileName)) {
- return false;
- }
- int archiveType = ImportUtil.UNKNOWN;
- Archive archive = null;
- try {
-// archive = CommonarchiveFactoryImpl.getActiveFactory().openArchive(fileName);
-// archiveType = ImportUtil.getArchiveType(archive);
-// String[] possibleNatures = null;
-// switch (archiveType) {
-// case ImportUtil.EARFILE :
-// possibleNatures = new String[]{IEARNatureConstants.NATURE_ID};
-// break;
-// case ImportUtil.EJBJARFILE :
-// possibleNatures = new String[]{IEARNatureConstants.NATURE_ID, IEJBNatureConstants.NATURE_ID};
-// break;
-// case ImportUtil.CLIENTJARFILE :
-// possibleNatures = new String[]{IEARNatureConstants.NATURE_ID, IApplicationClientNatureConstants.NATURE_ID};
-// break;
-// case ImportUtil.WARFILE :
-// possibleNatures = new String[]{IEARNatureConstants.NATURE_ID, IWebNatureConstants.J2EE_NATURE_ID};
-// break;
-// case ImportUtil.RARFILE :
-// possibleNatures = new String[]{IEARNatureConstants.NATURE_ID, IConnectorNatureConstants.NATURE_ID};
-// break;
-// default :
-// return false;
-// }
-//
-// IProject project = (IProject) AdaptabilityUtility.getAdapter(target, IProject.class);
- //TODO fix up to use components and artifact edits
-// if (null != project) {
-// try {
-// boolean foundNature = false;
-// for (int i = 0; !foundNature && i < possibleNatures.length; i++) {
-// if (project.hasNature(possibleNatures[i])) {
-// foundNature = true;
-// J2EENature nature = (J2EENature) project.getNature(possibleNatures[i]);
-// int projectJ2EEVersion = nature.getJ2EEVersion();
-// int archiveModuleVersion = ArchiveUtil.getFastSpecVersion((ModuleFile) archive);
-// boolean fail = false;
-// switch (archiveType) {
-// case ImportUtil.EARFILE :
-// case ImportUtil.CLIENTJARFILE :
-// if (projectJ2EEVersion < archiveModuleVersion) {
-// fail = true;
-// }
-// break;
-// case ImportUtil.EJBJARFILE :
-// if (projectJ2EEVersion == J2EEVersionConstants.J2EE_1_2_ID && archiveModuleVersion > J2EEVersionConstants.EJB_1_1_ID) {
-// fail = true;
-// } else if (projectJ2EEVersion == J2EEVersionConstants.J2EE_1_3_ID && archiveModuleVersion > J2EEVersionConstants.EJB_2_0_ID) {
-// fail = true;
-// }
-// break;
-// case ImportUtil.WARFILE :
-// if (projectJ2EEVersion == J2EEVersionConstants.J2EE_1_2_ID && archiveModuleVersion > J2EEVersionConstants.WEB_2_2_ID) {
-// fail = true;
-// } else if (projectJ2EEVersion == J2EEVersionConstants.J2EE_1_3_ID && archiveModuleVersion > J2EEVersionConstants.WEB_2_3_ID) {
-// fail = true;
-// }
-// break;
-// case ImportUtil.RARFILE :
-// if (projectJ2EEVersion == J2EEVersionConstants.J2EE_1_2_ID) {
-// fail = true;
-// } else if (projectJ2EEVersion == J2EEVersionConstants.J2EE_1_3_ID && archiveModuleVersion > J2EEVersionConstants.JCA_1_0_ID) {
-// fail = true;
-// }
-// break;
-// }
-// if (fail) {
-// return false;
-// }
-// return true;
-// }
-// }
-// if (!foundNature) {
-// return false;
-// }
-// } catch (CoreException e) {
-// return false;
-// }
-// }
-
- } catch (Exception e) {
- return false;
- } finally {
- if (null != archive && archive.isOpen()) {
- archive.close();
- }
- }
- return true;
- }
- return false;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.navigator.dnd.NavigatorDropActionDelegate#run(org.eclipse.wst.common.navigator.internal.views.navigator.dnd.CommonNavigatorDropAdapter,
- * java.lang.Object, java.lang.Object)
- */
- public boolean run(Object source, Object target) {
- //TODO fix up drag and drop transfer
- TransferData currentTransfer = null; //dropAdapter.getCurrentTransfer();
- if (FileTransfer.getInstance().isSupportedType(currentTransfer)) {
- final String[] fileNames = (String[]) source;
- final String fileName = fileNames[0];
- DataModelWizard wizard = null;
- IDataModel dataModel = null;
-
- int archiveType = ImportUtil.UNKNOWN;
- Archive archive = null;
- try {
- archive = CommonarchiveFactoryImpl.getActiveFactory().openArchive(fileName);
- archiveType = ImportUtil.getArchiveType(archive);
- switch (archiveType) {
- case ImportUtil.EARFILE :
- dataModel = null;//new EnterpriseApplicationImportDataModel();
- break;
- case ImportUtil.EJBJARFILE :
- dataModel = null;//new EJBModuleImportDataModel();
- break;
- case ImportUtil.CLIENTJARFILE :
- dataModel = null;//new AppClientModuleImportDataModel();
- break;
- case ImportUtil.WARFILE :
- dataModel = null;//new WebModuleImportDataModel();
- break;
- case ImportUtil.RARFILE :
- dataModel = null;//new ConnectorModuleImportDataModel();
- break;
- default :
- return false;
- }
- } catch (OpenFailureException e) {
- return false;
- } finally {
- if (null != archive && archive.isOpen()) {
- archive.close();
- }
- }
-
- dataModel.setProperty(IJ2EEModuleImportDataModelProperties.FILE_NAME, fileName);
-
- IProject project = (IProject) AdaptabilityUtility.getAdapter(target, IProject.class);
- if (null != project) {
- try {
- if (archiveType == ImportUtil.EARFILE ) {
- dataModel.setProperty(IJ2EEModuleImportDataModelProperties.PROJECT_NAME, project.getName());
- } else {
- dataModel.setProperty(IJ2EEModuleImportDataModelProperties.EAR_COMPONENT_NAME, project.getName());
- dataModel.setBooleanProperty(IJ2EEModuleImportDataModelProperties.ADD_TO_EAR, true);
- }
- } catch (Exception e) {
- return false;
- }
- }
- switch (archiveType) {
- case ImportUtil.EARFILE :
- wizard = null;//new EnterpriseApplicationImportWizard((EnterpriseApplicationImportDataModel) dataModel);
- break;
- case ImportUtil.EJBJARFILE :
- wizard = null;//new EJBModuleImportWizard((EJBModuleImportDataModel) dataModel);
- break;
- case ImportUtil.CLIENTJARFILE :
- wizard = null;//new AppClientModuleImportWizard((AppClientModuleImportDataModel) dataModel);
- break;
- case ImportUtil.WARFILE :
- wizard = null;//new WebModuleImportWizard((WebModuleImportDataModel) dataModel);
- break;
- case ImportUtil.RARFILE :
- wizard = null;//new ConnectorModuleImportWizard((ConnectorModuleImportDataModel) dataModel);
- break;
- }
-
- if (null != wizard) {
- //TODO fix up wizard for drag and drop
-// WizardDialog dialog = new WizardDialog(getShell(), wizard);
-// dialog.open();
- return true;
- }
- }
- return false;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/ModuleIdentifierSerializer.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/ModuleIdentifierSerializer.java
deleted file mode 100644
index f8c26c90b..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/dnd/ModuleIdentifierSerializer.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.wst.common.frameworks.internal.AdaptabilityUtility;
-
-
-
-/**
- * @author mdelder
- *
- */
-public class ModuleIdentifierSerializer {
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.navigator.dnd.ISerializer#toByteArray(java.lang.Object)
- */
- public byte[] toByteArray(Object data) {
- IProject project = (IProject) AdaptabilityUtility.getAdapter(data, IProject.class);
- if (project != null)
- return project.getName().getBytes();
- return null;
- }
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.wst.common.navigator.internal.views.navigator.dnd.ISerializer#fromByteArray(byte[])
- */
- public Object fromByteArray(byte[] data) {
- String name = new String(data);
- return ResourcesPlugin.getWorkspace().getRoot().getProject(name);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/plugin/J2EENavigatorPlugin.java b/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/plugin/J2EENavigatorPlugin.java
deleted file mode 100644
index fa5e14743..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/plugin/J2EENavigatorPlugin.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2003, 2005 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.plugin;
-
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IAdapterManager;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.navigator.internal.J2EEEMFAdapterFactory;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.wst.common.internal.emfworkbench.WorkbenchResourceHelper;
-import org.osgi.framework.BundleContext;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class J2EENavigatorPlugin extends AbstractUIPlugin {
- //The shared instance.
- private static J2EENavigatorPlugin plugin;
- public static final String PLUGIN_ID = "org.eclipse.jst.j2ee.navigator.ui"; //$NON-NLS-1$
-
-
- /**
- * The constructor.
- */
- public J2EENavigatorPlugin() {
- super();
- plugin = this;
- }
-
- /**
- * Returns the shared instance.
- */
- public static J2EENavigatorPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the workspace instance.
- */
- public static IWorkspace getWorkspace() {
- return ResourcesPlugin.getWorkspace();
- }
-
- public void start(BundleContext context) throws Exception {
- super.start(context);
- WorkbenchResourceHelper.initializeFileAdapterFactory();
- IAdapterManager manager = Platform.getAdapterManager();
- manager.registerAdapters(new J2EEEMFAdapterFactory(), EObject.class);
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.properties b/plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.properties
deleted file mode 100644
index da488ba04..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.properties
+++ /dev/null
@@ -1,33 +0,0 @@
-###############################################################################
-# Copyright (c) 2003, 2005 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
-###############################################################################
-Plugin.name=J2EE Extensions to Common Navigator
-Plugin.providerName=Eclipse.org
-Plugin.description=Contains J2EE Extensions built on the Common Navigator Framework
-j2ee=J2EE
-j2ee.view_ui_=Project Explorer
-j2ee.category_ui_=J2EE
-Enterprise_Applications=Enterprise Applications
-Application_Client_Projects=Application Client Projects
-Connector_Projects=Connector Projects
-EJB_Projects=EJB Projects
-Web_Projects=Dynamic Web Projects
-Other_Projects=Other Projects
-J2EE_Add_Module=J2EE Add Module
-Adds_J2EE_modules_to_EAR_projects=Adds J2EE modules to EAR projects
-J2EE_Add_Utility_Jar=J2EE Add Utility Jar
-Adds_Utility_Jars_to_EAR_projects=Adds Utility Jars to EAR projects
-J2EE_Utility_Jar_Import=J2EE Utility Jar Import
-Import_a_jar_file_UI_=Import a jar file into an EAR project as a J2EE Utility Jar
-J2EE_Import=J2EE Import
-J2EE_IMPORT_MESSAGE=Imports J2EE artifacts: EARs, EJB Jars, Application Client Jars, RARs and WARs
-
-
-extension.j2ee.name=J2EE Deployment Descriptors
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.xml b/plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.xml
deleted file mode 100644
index 5acd731e6..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/plugin.xml
+++ /dev/null
@@ -1,929 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.0"?>
-<plugin>
-
- <extension
- point="org.eclipse.ui.navigator.navigatorContent">
- <navigatorContent
- name="%extension.j2ee.name"
- priority="higher"
- icon="icons/J2EEPerspective.gif"
- activeByDefault="true"
- contentProvider="org.eclipse.jst.j2ee.navigator.internal.J2EEContentProvider"
- labelProvider="org.eclipse.jst.j2ee.navigator.internal.J2EELabelProvider"
- id="org.eclipse.jst.navigator.j2ee.ui.J2EEContent">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot" />
- <instanceof value="org.eclipse.core.resources.IProject" />
- <instanceof value="org.eclipse.core.resources.IResource" />
- <instanceof value="org.eclipse.core.resources.IFolder" />
- <instanceof value="org.eclipse.core.resources.IFile"/>
- </or>
- </enablement>
- <!--
- <emfEnablement>
- <package uri="org.eclipse.emf.ecore.resource" />
- <package uri="common.xmi" />
- <package uri="application.xmi" />
- <package uri="client.xmi" />
- <package uri="modulemap.xmi" />
- <package uri="ejb.xmi" />
- <package uri="jca.xmi" />
- <package uri="webapplication.xmi" />
- <package uri="jsp.xmi" />
- <package uri="commonext.xmi" />
- <package uri="localtran.xmi" />
- <package uri="ejbext.xmi" />
- <package uri="webappext.xmi" />
- <package uri="applicationext.xmi" />
- <package uri="applicationclientext.xmi" />
- <package uri="ejbbnd.xmi" />
- <package uri="webappbnd.xmi" />
- <package uri="commonbnd.xmi" />
- <package uri="j2cbnd.xmi" />
- <package uri="clientbnd.xmi" />
- <package uri="applicationbnd.xmi" />
- <package uri="ejbrdbmapping.xmi" />
- <package uri="http:///ejbrdbmapping.ecore " />
- </emfEnablement> -->
- <commonSorter
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEViewerSorter"
- id="org.eclipse.jst.navigator.j2ee.ui.J2EEContent">
- <parentExpression>
- <or>
- <instanceof
- value="org.eclipse.jst.j2ee.internal.provider.J2EEItemProvider" />
- <instanceof
- value="org.eclipse.emf.ecore.EObject" />
- <instanceof
- value="org.eclipse.core.resources.IWorkspaceRoot" />
- </or>
- </parentExpression>
- </commonSorter>
- <actionProvider
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEActionProvider"
- id="org.eclipse.jst.j2ee.navigator.ui.J2EEActionProvider">
- <enablement>
- <or>
- <instanceof value="org.eclipse.emf.ecore.EObject" />
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.J2EEItemProvider"/>
- </or>
- </enablement>
- </actionProvider>
- </navigatorContent>
- <!-- EJB New -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.ejb.ui.project.facet.EjbProjectWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- EJB Import -->
- <commonWizard
- type="import"
- wizardId="org.eclipse.jst.ejb.ui.internal.wizard.EJBComponentImportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.ejb.EJBJar"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.ejb.provider.GroupedEJBItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- EJB Export -->
- <commonWizard
- type="export"
- wizardId="org.eclipse.jst.ejb.ui.internal.wizard.EJBComponentExportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.ejb"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.ejb.EJBJar"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.ejb.provider.GroupedEJBItemProvider"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Add Enterprise Bean -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.ejb.annotation.ui.internal.wizards.AddEjbWizard">
- <enablement>
- <or>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.ejb"/>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.ejb.EJBJar"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.ejb.provider.GroupedEJBItemProvider"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Connector New -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorProjectWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Connector import -->
- <commonWizard
- type="import"
- wizardId="org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorComponentImportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.jca.Connector"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- <instanceof value="org.eclipse.jst.j2ee.jca.internal.impl.ResourceAdapterImpl"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Connector Export -->
- <commonWizard
- type="export"
- wizardId="org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorComponentExportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.connector"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.jca.Connector"/>
- <instanceof value="org.eclipse.jst.j2ee.jca.internal.impl.ResourceAdapterImpl"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Web New -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- New Servlet -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.servlet.ui.internal.wizard.AddServletWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <or>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.web"/>
- </or>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.webapplication.WebApp"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.war.ui.util.WebServletGroupItemProvider"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Web Import -->
- <commonWizard
- type="import"
- wizardId="org.eclipse.jst.servlet.ui.internal.wizard.WebComponentImportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.webapplication.WebApp"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.war.ui.util.WebGroupItemProvider"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Web Export -->
- <commonWizard
- type="export"
- wizardId="org.eclipse.jst.servlet.ui.internal.wizard.WebComponentExportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.web"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.webapplication.WebApp"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.war.ui.util.WebGroupItemProvider"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- EAR New -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.ui.project.facet.EarProjectWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- </or>
- </enablement>
- </commonWizard>
- <!-- AppClient New -->
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.ui.project.facet.appclient.AppClientProjectWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- EAR Import -->
- <commonWizard
- type="import"
- wizardId="org.eclipse.jst.j2ee.internal.wizard.EARComponentImportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- </or>
- </enablement>
- </commonWizard>
- <!-- App Client Import -->
- <commonWizard
- type="import"
- wizardId="org.eclipse.jst.j2ee.internal.wizard.AppClientComponentImportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.core.resources.projectNature"
- value="org.eclipse.wst.common.modulecore.ModuleCoreNature"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.client.ApplicationClient"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- Utility Jar Import -->
- <!-- <commonWizard
- type="import"
- wizardId="org.eclipse.jst.j2ee.ui.J2EEUtilityJarImportWizard">
- <enablement>
- <or>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.provider.J2EEUtilityJarItemProvider">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.earcreation.modulemap.EARProjectMapImpl">
- </objectClass>
- <objectClass
- name="org.eclipse.core.resources.IWorkspaceRoot">
- </objectClass>
- <and>
- <objectClass
- name="org.eclipse.core.resources.IProject">
- </objectClass>
- <or>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.EARNature">
- </objectState>
- </or>
- </and>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.application.impl.ApplicationImpl">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.application.impl.ModuleImpl">
- </objectClass>
- </or>
- </enablement>
- </commonWizard> -->
- <!-- EAR export -->
- <commonWizard
- type="export"
- wizardId="org.eclipse.jst.j2ee.internal.wizard.EARComponentExportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.ear"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.application.Application"/>
- <instanceof value="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider"/>
- <instanceof value="org.eclipse.jst.j2ee.application.Module"/>
- </or>
- </enablement>
- </commonWizard>
- <!-- App Client export -->
- <commonWizard
- type="export"
- wizardId="org.eclipse.jst.j2ee.internal.wizard.AppClientComponentExportWizard">
- <enablement>
- <or>
- <instanceof value="org.eclipse.core.resources.IWorkspaceRoot"/>
- <and>
- <instanceof value="org.eclipse.core.resources.IProject"/>
- <or>
- <test property="org.eclipse.wst.common.project.facet.core.projectFacet"
- value="jst.appclient"/>
- </or>
- </and>
- <instanceof value="org.eclipse.jst.j2ee.client.ApplicationClient"/>
- </or>
- </enablement>
- </commonWizard>
- </extension>
-
- <extension
- point = "org.eclipse.ui.navigator.viewer">
- <viewerContentBinding
- viewerId="org.eclipse.wst.common.explorer.CommonProjectExplorer">
- <includes>
- <contentExtension pattern="org.eclipse.jst.navigator.j2ee.ui.J2EEContent"/>
- </includes>
- </viewerContentBinding>
- </extension>
-
- <extension
- point="org.eclipse.core.runtime.adapters">
- <factory
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEEMFAdapterFactory"
- adaptableType="org.eclipse.jst.j2ee.ejb.EJBJar">
- <adapter type="org.eclipse.core.resources.IFile"/>
- </factory>
- <factory
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEEMFAdapterFactory"
- adaptableType="org.eclipse.jst.j2ee.webapplication.WebApp">
- <adapter type="org.eclipse.core.resources.IFile"/>
- </factory>
- <factory
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEEMFAdapterFactory"
- adaptableType="org.eclipse.jst.j2ee.client.ApplicationClient">
- <adapter type="org.eclipse.core.resources.IFile"/>
- </factory>
- <factory
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEEMFAdapterFactory"
- adaptableType="org.eclipse.jst.j2ee.jca.Connector">
- <adapter type="org.eclipse.core.resources.IFile"/>
- </factory>
- <factory
- class="org.eclipse.jst.j2ee.navigator.internal.J2EEEMFAdapterFactory"
- adaptableType="org.eclipse.jst.j2ee.application.Application">
- <adapter type="org.eclipse.core.resources.IFile"/>
- </factory>
- </extension>
-
-<!-- <extension
- point="org.eclipse.wst.common.navigator.views.actionProvider">
- <actionProvider
- class="org.eclipse.jst.common.navigator.internal.actions.OpenActionsExtension" >
- <enablement>
- <or>
- <objectClass
- adaptable="true"
- name="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSet" />
- </or>
- </enablement>
- </actionProvider>
- </extension> -->
- <!-- =========================================================================== -->
-<!-- Component Working Set -->
-<!-- =========================================================================== -->
-<!-- <extension
- point="org.eclipse.ui.workingSets">
- <workingSet
- name="Component"
- updaterClass="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSetUpdater"
- icon="icons/J2EEPerspective.gif"
- id="org.eclipse.jst.j2ee.navigator.ui.ComponentWorkingSetPage">
- </workingSet>
- </extension>
-
- <extension
- point="org.eclipse.jst.j2ee.navigator.ui.componentWorkingSet">
- <componentWorkingSet
- id = "org.eclipse.jst.j2ee.navigator.ui.ComponentWorkingSetPage"
- typeId = "jst.ejb"
- icon = "icons/ejbgroup_obj.gif"
- label = "%EJB_Projects">
- </componentWorkingSet>
- </extension>
- <extension
- point="org.eclipse.jst.j2ee.navigator.ui.componentWorkingSet">
- <componentWorkingSet
- id = "org.eclipse.jst.j2ee.navigator.ui.ComponentWorkingSetPage"
- typeId = "jst.web"
- icon = "icons/webgroup_obj.gif"
- label = "%Web_Projects">
- </componentWorkingSet>
- </extension>
- <extension
- point="org.eclipse.jst.j2ee.navigator.ui.componentWorkingSet">
- <componentWorkingSet
- id = "org.eclipse.jst.j2ee.navigator.ui.ComponentWorkingSetPage"
- typeId = "jst.ear"
- icon = "icons/eargroup_obj.gif"
- label = "%Enterprise_Applications">
- </componentWorkingSet>
- </extension>
-
- <extension
- point="org.eclipse.jst.j2ee.navigator.ui.componentWorkingSet">
- <componentWorkingSet
- id = "org.eclipse.jst.j2ee.navigator.ui.ComponentWorkingSetPage"
- typeId = "jst.appclient"
- icon = "icons/appclientgroup_obj.gif"
- label = "%Application_Client_Projects">
- </componentWorkingSet>
- </extension>
-
- <extension
- point="org.eclipse.jst.j2ee.navigator.ui.componentWorkingSet">
- <componentWorkingSet
- id = "org.eclipse.jst.j2ee.navigator.ui.ComponentWorkingSetPage"
- typeId = "jst.connector"
- icon = "icons/connectorgroup_obj.gif"
- label = "%Connector_Projects">
- </componentWorkingSet>
- </extension>
-
- <extension
- point="org.eclipse.jst.common.navigator.java.workingSetProviders">
- <workingSetProviders
- class="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSetProvider">
- </workingSetProviders>
- </extension>
- <extension
- point="org.eclipse.ui.elementFactories">
- <factory
- class="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSetFactory"
- id="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSetFactory"/>
- </extension>
--->
-<!-- =========================================================================== -->
-<!-- Adding the New to the Component Working Sets -->
-<!-- =========================================================================== -->
-
-<!--
- <extension
- point="org.eclipse.wst.common.navigator.workbench.commonWizard"> -->
- <!-- EAR New -->
- <!-- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.ui.project.facet.EarProjectWizard">
- <enablement>
- <or>
- <and>
- <objectClass
- name="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSet">
- </objectClass>
- <objectState
- name="componentTypeId"
- value="jst.ear">
- </objectState>
-
- </and>
- </or>
- </enablement>
- </commonWizard> -->
- <!-- AppClient New -->
- <!-- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.ui.project.facet.appclient.AppClientProjectWizard">
- <enablement>
- <or>
- <and>
- <objectClass
- name="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSet">
- </objectClass>
- <objectState
- name="componentTypeId"
- value="jst.appclient">
- </objectState>
-
- </and>
- </or>
- </enablement>
- </commonWizard>
- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard">
- <enablement>
- <or>
- <and>
- <objectClass
- name="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSet">
- </objectClass>
- <objectState
- name="componentTypeId"
- value="jst.web">
- </objectState>
- </and>
- </or>
- </enablement>
- </commonWizard> -->
- <!-- Connector New -->
-<!-- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.j2ee.jca.ui.internal.wizard.ConnectorProjectWizard">
- <enablement>
- <or>
- <and>
- <objectClass
- name="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSet">
- </objectClass>
- <objectState
- name="componentTypeId"
- value="jst.connector">
- </objectState>
- </and>
- </or>
- </enablement>
- </commonWizard> -->
- <!-- EJB New -->
-<!-- <commonWizard
- type="new"
- wizardId="org.eclipse.jst.ejb.ui.project.facet.EjbProjectWizard">
- <enablement>
- <or>
- <and>
- <objectClass
- name="org.eclipse.jst.j2ee.navigator.internal.workingsets.ComponentWorkingSet">
- </objectClass>
- <objectState
- name="componentTypeId"
- value="jst.ejb">
- </objectState>
- </and>
- </or>
- </enablement>
- </commonWizard>
-
- </extension>
-
- -->
-
- <!-- <extension-point id="componentWorkingSet" name="Component Working Set" schema="schema/componentWorkingSet.exsd"/>
- -->
-<!-- Drop Adapter for Adding Modules to EARs -->
- <!-- <extension
- id="org.eclipse.jst.j2ee.internal.ui.navigator.addModule.dropHandler"
- point="org.eclipse.wst.common.navigator.views.dropHandler">
- <dropHandler
- class="org.eclipse.jst.j2ee.navigator.internal.dnd.AddModuleDropAction"
- id="org.eclipse.jst.j2ee.internal.ui.navigator.addModule.dropHandler"
- name="%J2EE_Add_Module"
- description="%Adds_J2EE_modules_to_EAR_projects">
- <dragEnablement>
- <or>
- <or>
- <objectClass
- name="org.eclipse.jst.j2ee.client.ApplicationClient">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.jca.Connector">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.ejb.EJBJar">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.webapplication.WebApp">
- </objectClass>
- </or>
- <and>
- <objectClass
- name="org.eclipse.core.resources.IProject">
- </objectClass>
- <or>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.EARNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.ejb.EJBNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.ApplicationClientNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.web.WebNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.jca.ConnectorNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jdt.core.javanature">
- </objectState>
- </or>
- </and>
- </or>
- </dragEnablement>
- <dropEnablement
- validatorClass="org.eclipse.jst.j2ee.navigator.internal.dnd.AddModuleDropAction">
- <or>
- <and>
- <objectClass
- name="org.eclipse.core.resources.IProject">
- </objectClass>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.EARNature">
- </objectState>
- </and>
- <or>
- <objectClass
- name="org.eclipse.jst.j2ee.application.Application">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.earcreation.modulemap.EARProjectMap">
- </objectClass>
- </or>
- </or>
- </dropEnablement>
- <serializers>
- <serializer
- class="org.eclipse.jst.j2ee.navigator.internal.dnd.ModuleIdentifierSerializer"
- id="org.eclipse.jst.j2ee.navigator.internal.dnd.ModuleIdentifierSerializer">
- </serializer>
- </serializers>
- </dropHandler>
- </extension> -->
- <!-- Drop Adapter for Adding Utility Jars to EARs -->
-<!-- <extension
- id="org.eclipse.jst.navigator.j2ee.dnd.addUtilityJar.dropHandler"
- point="org.eclipse.wst.common.navigator.views.dropHandler">
- <dropHandler
- class="org.eclipse.jst.j2ee.navigator.internal.dnd.AddUtilityJarDropAction"
- id="org.eclipse.jst.j2ee.internal.ui.navigator.addUtilityJar.dropHandler"
- name="%J2EE_Add_Utility_Jar"
- description="%Adds_Utility_Jars_to_EAR_projects">
- <dragEnablement>
- <or>
- <or>
- <objectClass
- name="org.eclipse.jst.j2ee.client.ApplicationClient">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.jca.Connector">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.ejb.EJBJar">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.webapplication.WebApp">
- </objectClass>
- </or>
- <and>
- <objectClass
- name="org.eclipse.core.resources.IProject">
- </objectClass>
- <objectState
- name="projectNature"
- value="org.eclipse.jdt.core.javanature">
- </objectState>
- </and>
- </or>
- </dragEnablement>
- <dropEnablement
- validatorClass="org.eclipse.jst.j2ee.navigator.internal.dnd.AddUtilityJarDropAction">
- <or>
- <and>
- <objectClass
- name="org.eclipse.core.resources.IProject">
- </objectClass>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.EARNature">
- </objectState>
- </and>
- <or>
- <objectClass
- name="org.eclipse.jst.j2ee.application.Application">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.earcreation.modulemap.EARProjectMap">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.provider.J2EEUtilityJarItemProvider">
- </objectClass>
- </or>
- </or>
- </dropEnablement>
- <serializers>
- <serializer
- class="org.eclipse.jst.navigator.j2ee.dnd.ModuleIdentifierSerializer"
- id="org.eclipse.jst.navigator.j2ee.dnd.utilityJarIdentifierSerializer">
- </serializer>
- </serializers>
- </dropHandler>
- </extension>
- <extension
- id="org.eclipse.jst.navigator.j2ee.dnd.utilityJarImport.dropHandler"
- point="org.eclipse.wst.common.navigator.views.dropHandler">
- <dropHandler
- class="org.eclipse.jst.j2ee.navigator.internal.dnd.AddExternalUtilityJarDropAction"
- id="org.eclipse.jst.j2ee.navigator.internal.dnd.utilityJarImport.dropHandler"
- name="%J2EE_Utility_Jar_Import"
- description="%Import_a_jar_file_UI_">
- <dropEnablement>
- <or>
- <objectClass
- name="org.eclipse.jst.j2ee.application.Application">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.provider.J2EEUtilityJarItemProvider">
- </objectClass>
- </or>
- </dropEnablement>
- </dropHandler>
- </extension>
- <extension
- id="org.eclipse.jst.navigator.j2ee.dnd.j2eeImport.dropHandler"
- point="org.eclipse.wst.common.navigator.views.dropHandler">
- <dropHandler
- class="org.eclipse.jst.j2ee.navigator.internal.dnd.J2EEImportDropAction"
- id="org.eclipse.jst.j2ee.navigator.internal.dnd.j2eeImport.dropHandler"
- name="%J2EE_Import"
- description="%J2EE_IMPORT_MESSAGE">
- <dropEnablement>
- <or>
- <and>
- <or>
- <objectClass
- name="org.eclipse.core.resources.IProject">
- </objectClass>
- <objectClass
- name="org.eclipse.wst.common.navigator.internal.groups.NavigatorGroup">
- </objectClass>
- </or>
- <or>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.EARNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.ejb.EJBNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.ApplicationClientNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.web.WebNature">
- </objectState>
- <objectState
- name="projectNature"
- value="org.eclipse.jst.j2ee.jca.ConnectorNature">
- </objectState>
- </or>
- </and>
- <objectClass
- name="org.eclipse.jst.j2ee.internal.provider.ModulesItemProvider">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.application.Application">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.client.ApplicationClient">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.jca.Connector">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.ejb.EJBJar">
- </objectClass>
- <objectClass
- name="org.eclipse.jst.j2ee.webapplication.WebApp">
- </objectClass>
- </or>
- </dropEnablement>
- </dropHandler>
- </extension>
- -->
-
-</plugin>
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/prepareforpii.xml b/plugins/org.eclipse.jst.j2ee.navigator.ui/prepareforpii.xml
deleted file mode 100644
index f6732071f..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/prepareforpii.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<project name="PrepareForPII" default="main" basedir=".">
-
- <!-- Setup temp variables -->
- <target name="init">
- <property name="nlsDir" value="d:/NLS/Corona/0526"/>
- <property name="plugin" value="com.ibm.wtp.j2ee.ui.navigator"/>
- <property name="plugindir" value="d:/workspaceCorona/${plugin}"/>
- <property name="outputDir" value="${nlsDir}/${plugin}"/>
-
-
- </target>
-
- <!-- Create the destination dir -->
- <target name="nlsDir" depends="init">
- <mkdir dir="${nlsDir}"/>
- </target>
-
- <!-- Create the destination dir -->
- <target name="plugindir" depends="nlsDir">
- <delete dir="${outputDir}"/>
- <mkdir dir="${outputDir}"/>
- </target>
-
- <!-- Move the files to the correct locations in the workspace. -->
- <target name="main" depends="plugindir">
-
- <messageIdGen folderPath = "${plugindir}" componentId = "E" />
-
- <copy file="${plugindir}/plugin.properties" todir="${outputDir}"/>
-
- </target>
-</project>
diff --git a/plugins/org.eclipse.jst.j2ee.navigator.ui/schema/componentWorkingSet.exsd b/plugins/org.eclipse.jst.j2ee.navigator.ui/schema/componentWorkingSet.exsd
deleted file mode 100644
index 7ac37ca42..000000000
--- a/plugins/org.eclipse.jst.j2ee.navigator.ui/schema/componentWorkingSet.exsd
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.jst.j2ee.navigator.ui">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.eclipse.jst.j2ee.navigator.ui" id="componentWorkingSet" name="Component Working Set"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
- <element name="extension">
- <complexType>
- <sequence>
- <element ref="componentWorkingSet"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
- a fully qualified identifier of the target extension point
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
- an optional identifier of the extension instance
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
- an optional name of the extension instance
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="componentWorkingSet">
- <complexType>
- <attribute name="typeId" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="icon" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="label" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- &lt;b&gt;This extension point is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.&lt;/b&gt;
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="examples"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="apiInfo"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="implementation"/>
- </appInfo>
- <documentation>
-
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
- Copyright (c) 2005 IBM Corporation and others.&lt;br&gt;
-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 &lt;a
-href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>

Back to the top