forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r231137 - /forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/wizards/ActivatePluginsPage.java
Date Tue, 09 Aug 2005 23:17:51 GMT
Author: rgardler
Date: Tue Aug  9 16:17:45 2005
New Revision: 231137

URL: http://svn.apache.org/viewcvs?rev=231137&view=rev
Log:
pre-populates the selected plugins list with the plugins that have already been selected (thans
to Anil Ramnanan, Fixes For-609)

Modified:
    forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/wizards/ActivatePluginsPage.java

Modified: forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/wizards/ActivatePluginsPage.java
URL: http://svn.apache.org/viewcvs/forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/wizards/ActivatePluginsPage.java?rev=231137&r1=231136&r2=231137&view=diff
==============================================================================
--- forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/wizards/ActivatePluginsPage.java
(original)
+++ forrest/trunk/tools/eclipse/plugins/org.apache.forrest/src/org/apache/forrest/eclipse/wizards/ActivatePluginsPage.java
Tue Aug  9 16:17:45 2005
@@ -128,6 +128,21 @@
 			return availablePlugins;
 	
 		}
+		 
+		 /**
+			 * Returns a list of plugins that have already been set for this project 
+			 * 
+			 */ 
+			 private Vector getSetPlugins() {
+				String propertiesPath = xDocPath + "/forrest.properties";
+				String setPlugins = Utilities.getProperty(propertiesPath,"project.required.plugins");

+				String[] pluginList = setPlugins.split(",");
+				Vector v = new Vector (pluginList.length);
+				for (int i=0; i < pluginList.length; i++)
+				    v.addElement (pluginList[i]); 
+				return  v;
+		
+			}
 	/**
 	 * @see IDialogPage#createControl(Composite)
 	 */
@@ -257,7 +272,8 @@
 	    selectedPluginsListViewerPosition.top =  new FormAttachment(70, 1000, 0);
 	    selectedPluginsListViewerPosition.bottom =  new FormAttachment(844, 1000, 0);
 	    selectedPluginsListViewer.getControl().setLayoutData(selectedPluginsListViewerPosition);
-		selectedPluginsListViewer.setInput(selectedPlugins);
+		selectedPlugins = getSetPlugins();
+	    selectedPluginsListViewer.setInput(selectedPlugins);
 	    setControl(container);
 
 	}



Mime
View raw message