Author: rob.stryker(a)jboss.com
Date: 2010-01-11 15:04:53 -0500 (Mon, 11 Jan 2010)
New Revision: 19698
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/vcf/
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/vcf/OutputFoldersLabelProvider.java
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml
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.properties
Log:
JBIDE-5655
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml 2010-01-11 19:37:16 UTC
(rev 19697)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/plugin.xml 2010-01-11 20:04:53 UTC
(rev 19698)
@@ -88,4 +88,12 @@
</selection>
</wizard>
</extension>
+
+ <extension
+
point="org.jboss.ide.eclipse.as.wtp.ui.virtualComponentLabelProvider">
+ <provider
+
class="org.jboss.ide.eclipse.as.wtp.ui.vcf.OutputFoldersLabelProvider"
+ weight="5">
+ </provider>
+ </extension>
</plugin>
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 2010-01-11
19:37:16 UTC (rev 19697)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/Messages.java 2010-01-11
20:04:53 UTC (rev 19698)
@@ -24,7 +24,7 @@
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/messages.properties
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/messages.properties 2010-01-11
19:37:16 UTC (rev 19697)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/messages.properties 2010-01-11
20:04:53 UTC (rev 19698)
@@ -18,3 +18,4 @@
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
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/vcf/OutputFoldersLabelProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/vcf/OutputFoldersLabelProvider.java
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.ui/src/org/jboss/ide/eclipse/as/wtp/ui/vcf/OutputFoldersLabelProvider.java 2010-01-11
20:04:53 UTC (rev 19698)
@@ -0,0 +1,29 @@
+package org.jboss.ide.eclipse.as.wtp.ui.vcf;
+
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
+import org.jboss.ide.eclipse.as.wtp.core.vcf.OutputFoldersVirtualComponent;
+import org.jboss.ide.eclipse.as.wtp.ui.Messages;
+import org.jboss.ide.eclipse.as.wtp.ui.propertypage.IVirtualComponentLabelProvider;
+
+public class OutputFoldersLabelProvider implements IVirtualComponentLabelProvider {
+ public OutputFoldersLabelProvider() {
+ }
+
+ public boolean canHandle(IVirtualComponent component) {
+ return component instanceof OutputFoldersVirtualComponent;
+ }
+
+ public Image getSourceImage(IVirtualComponent component) {
+ return
PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_FOLDER);
+ }
+
+ public String getSourceText(IVirtualComponent component) {
+ //OutputFoldersVirtualComponent fileset = (OutputFoldersVirtualComponent)component;
+ return component.getProject().getName() + Messages.OutputFolders;
+ }
+
+
+}
Show replies by date