Author: koen.aers(a)jboss.com
Date: 2011-03-10 18:42:05 -0500 (Thu, 10 Mar 2011)
New Revision: 29694
Added:
trunk/forge/plugins/org.jboss.tools.seam.forge/src/org/jboss/tools/seam/forge/preferences/ForgeIntallationLabelProvider.java
Log:
even more runtime preferences stuf
- page is working
- initialization is working
(second trial)
Added:
trunk/forge/plugins/org.jboss.tools.seam.forge/src/org/jboss/tools/seam/forge/preferences/ForgeIntallationLabelProvider.java
===================================================================
---
trunk/forge/plugins/org.jboss.tools.seam.forge/src/org/jboss/tools/seam/forge/preferences/ForgeIntallationLabelProvider.java
(rev 0)
+++
trunk/forge/plugins/org.jboss.tools.seam.forge/src/org/jboss/tools/seam/forge/preferences/ForgeIntallationLabelProvider.java 2011-03-10
23:42:05 UTC (rev 29694)
@@ -0,0 +1,27 @@
+package org.jboss.tools.seam.forge.preferences;
+
+import org.eclipse.jface.viewers.ITableLabelProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.swt.graphics.Image;
+import org.jboss.tools.seam.forge.launching.ForgeInstallation;
+
+public class ForgeIntallationLabelProvider extends LabelProvider implements
ITableLabelProvider {
+
+ public String getColumnText(Object element, int columnIndex) {
+ if (element instanceof ForgeInstallation) {
+ ForgeInstallation forgeInstallation= (ForgeInstallation)element;
+ switch(columnIndex) {
+ case 0:
+ return forgeInstallation.getName();
+ case 1:
+ return forgeInstallation.getLocation();
+ }
+ }
+ return element.toString();
+ }
+
+ public Image getColumnImage(Object element, int columnIndex) {
+ return null;
+ }
+
+}
Property changes on:
trunk/forge/plugins/org.jboss.tools.seam.forge/src/org/jboss/tools/seam/forge/preferences/ForgeIntallationLabelProvider.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain