[jbosstools-commits] JBoss Tools SVN: r43678 - in trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui: src/org/jboss/ide/eclipse/as/wtp/ui and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 14 01:11:40 EDT 2012


Author: rob.stryker at jboss.com
Date: 2012-09-14 01:11:40 -0400 (Fri, 14 Sep 2012)
New Revision: 43678

Removed:
   trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/icons/folder.gif
   trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/icons/prj_obj.gif
   trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/vcf/
Modified:
   trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/Messages.java
   trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/WTPOveridePlugin.java
   trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/messages.properties
Log:
JBIDE-12612 deleting cruft

Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/icons/folder.gif
===================================================================
(Binary files differ)

Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/icons/prj_obj.gif
===================================================================
(Binary files differ)

Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/Messages.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/Messages.java	2012-09-14 05:02:07 UTC (rev 43677)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/Messages.java	2012-09-14 05:11:40 UTC (rev 43678)
@@ -4,14 +4,6 @@
 
 public class Messages extends NLS {
 	private static final String BUNDLE_NAME = "org.jboss.ide.eclipse.as.wtp.ui.messages"; //$NON-NLS-1$
-	public static String ModuleDependencyDescription;
-	public static String AddModuleDependenciesPropertiesPage_AddProjectButton;
-	public static String AddModuleDependenciesPropertiesPage_DeployPathColumn;
-	public static String AddModuleDependenciesPropertiesPage_RemoveSelectedButton;
-	public static String AddModuleDependenciesPropertiesPage_SelectAProjectTitle;
-	public static String AddModuleDependenciesPropertiesPage_SourceColumn;
-	public static String J2EEDependenciesPage_Description;
-	public static String J2EEDependenciesPage_ErrorCheckingFacets;
 	public static String MODULE_EXISTS_ERROR;
 	public static String DESTINATION_INVALID;
 	public static String DESTINATION_ARCHIVE_SHOULD_END_WITH;
@@ -24,7 +16,6 @@
 	public static String Export_LabelProject;
 	public static String Export_LabelBrowse;
 	public static String Export_OverwriteCheckbox;
-	public static String OutputFolders;
 	static {
 		// initialize resource bundle
 		NLS.initializeMessages(BUNDLE_NAME, Messages.class);

Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/WTPOveridePlugin.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/WTPOveridePlugin.java	2012-09-14 05:02:07 UTC (rev 43677)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/WTPOveridePlugin.java	2012-09-14 05:11:40 UTC (rev 43678)
@@ -23,15 +23,6 @@
 
 	// The plug-in ID
 	public static final String PLUGIN_ID = "org.jboss.ide.eclipse.as.wtp.ui"; //$NON-NLS-1$
-	public static final String[] ICON_DIRS = new String[]{"icons/full/obj16", //$NON-NLS-1$
-		"icons/full/cview16", //$NON-NLS-1$
-		"icons/full/ctool16", //$NON-NLS-1$
-		"icons/full/clcl16", //$NON-NLS-1$
-		"icons/full/ovr16", //$NON-NLS-1$
-		"icons/full/extra", //$NON-NLS-1$
-		"icons/full/wizban", //$NON-NLS-1$
-		"icons", //$NON-NLS-1$
-		""}; //$NON-NLS-1$
 	
 	// The shared instance
 	private static WTPOveridePlugin plugin;
@@ -61,53 +52,6 @@
 	}
 
 	/**
-	 * Get a .gif from the image registry.
-	 */
-	public Image getImage(String key) {
-		ImageRegistry imageRegistry = getImageRegistry();
-		Image image = imageRegistry.get(key);
-		if (image == null || image.isDisposed()) {
-			ImageDescriptor descriptor = getImageDescriptor(key);
-			if (descriptor != null) {
-				image = descriptor.createImage();
-				imageRegistry.put(key, image);
-			}
-		}
-		return image;
-	}
-
-	/**
-	 * This gets a .gif from the icons folder.
-	 */
-	public ImageDescriptor getImageDescriptor(String key) {
-		ImageDescriptor imageDescriptor = null;
-		URL gifImageURL = getImageURL(key,getBundle());
-		if (gifImageURL != null)
-			imageDescriptor = ImageDescriptor.createFromURL(gifImageURL);
-		return imageDescriptor;
-	}
-
-	/**
-	 * This gets a .gif from the icons folder.
-	 */
-	public URL getImageURL(String key, Bundle bundle) {
-		String gif = "/" + key + ".gif"; //$NON-NLS-1$ //$NON-NLS-2$
-		IPath path = null;
-		for (int i = 0; i < ICON_DIRS.length; i++) {
-			path = new Path(ICON_DIRS[i]).append(gif);
-			if (Platform.find(bundle,path) == null)
-				continue;
-			try {
-				return new URL( bundle.getEntry("/"), path.toString()); //$NON-NLS-1$ 
-			} catch (MalformedURLException exception) {
-				logError(exception);
-				continue;
-			}
-		}
-		return null;
-	}
-	
-	/**
 	 * Returns the shared instance
 	 *
 	 * @return the shared instance

Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/messages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/messages.properties	2012-09-14 05:02:07 UTC (rev 43677)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/messages.properties	2012-09-14 05:11:40 UTC (rev 43678)
@@ -1,11 +1,3 @@
-ModuleDependencyDescription=Adjust the project's module assembly structure
-AddModuleDependenciesPropertiesPage_AddProjectButton=Add Project...
-AddModuleDependenciesPropertiesPage_DeployPathColumn=Deploy Path
-AddModuleDependenciesPropertiesPage_RemoveSelectedButton=Remove selected...
-AddModuleDependenciesPropertiesPage_SelectAProjectTitle=Select a Project
-AddModuleDependenciesPropertiesPage_SourceColumn=Source
-J2EEDependenciesPage_Description=ModuleDependency Page Description
-J2EEDependenciesPage_ErrorCheckingFacets=Error Checking Project Facets
 Export_WizardTitle=Export a Project Module
 Export_PageTitle=Export a Project Module
 Export_PageDescription=Export a project according to it's "module" structure. 
@@ -17,5 +9,4 @@
 DESTINATION_INVALID=Destination archive is invalid.
 DESTINATION_ARCHIVE_SHOULD_END_WITH=Destination archive should end with {0}.
 RESOURCE_EXISTS_ERROR=Resource {0} already exists. If you wish to overwrite select the "Overwrite Existing file" option.
-IS_READ_ONLY=Destination location is read only.
-OutputFolders=\u0020output folders
\ No newline at end of file
+IS_READ_ONLY=Destination location is read only.
\ No newline at end of file



More information about the jbosstools-commits mailing list