geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bjr...@apache.org
Subject svn commit: r727514 - in /geronimo/devtools/eclipse-plugin: branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/ branches/2.1.4/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v...
Date Wed, 17 Dec 2008 21:17:05 GMT
Author: bjreed
Date: Wed Dec 17 13:17:05 2008
New Revision: 727514

URL: http://svn.apache.org/viewvc?rev=727514&view=rev
Log:
GERONIMODEVTOOLS-546.  Adding 5th page to the Server Plugin Manager to keep track of plugins
that were added and removed from the server.

Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
    geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
    geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
    geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
Wed Dec 17 13:17:05 2008
@@ -434,6 +434,8 @@
     public static String wizardPage3Description_PluginManager;
     public static String wizardPage4Title_PluginManager;
     public static String wizardPage4Description_PluginManager;
+    public static String wizardPage5Title_PluginManager;
+    public static String wizardPage5Description_PluginManager;
     public static String localPluginRepo;
     public static String failedToSave;
     public static String savedSuccess;
@@ -449,4 +451,5 @@
     public static String dependencies;
     public static String obsoletes;
     public static String installable;
+    public static String event;
 }

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
Wed Dec 17 13:17:05 2008
@@ -428,7 +428,9 @@
 wizardPage3Title_PluginManager=Update Plugin Information (continued)
 wizardPage3Description_PluginManager=Update information for the plugin.
 wizardPage4Title_PluginManager=Install Plugin
-wizardPage4Description_PluginManager=Select plugins to be installed to the server. 
+wizardPage4Description_PluginManager=Select plugins to be installed to the server.
+wizardPage5Title_PluginManager=Installation Complete
+wizardPage5Description_PluginManager=List of plugins that have been installed to the server.

 localPluginRepo=Local Plugin Repository:
 failedToSave=Failed to save {0}.
 savedSuccess={0} saved successfully.
@@ -446,3 +448,4 @@
 dependencies=Dependencies
 obsoletes=Obsoletes
 installable=Installable
+event=Event

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
Wed Dec 17 13:17:05 2008
@@ -755,8 +755,9 @@
     }
 
     // mimics org.apache.geronimo.system.plugin.PluginInstallerGbean.install
-    public void installPlugins (String localRepoDir, List<PluginType> pluginList) {
+    public ArrayList<String> installPlugins (String localRepoDir, List<PluginType>
pluginList) {
         Trace.tracePoint("Entry", "GeronimoServerPluginManager.installPlugins", localRepoDir,
pluginList);
+        ArrayList<String> eventLog = new ArrayList<String>();
 
         //List<Artifact> downloadedArtifacts = new ArrayList<Artifact>();
         try {
@@ -789,6 +790,7 @@
                     if (configManager.isLoaded(obsolete)) {
                         if (configManager.isRunning(obsolete)) {
                             configManager.stopConfiguration(obsolete);
+                            eventLog.add(obsolete.toString() + " stopped");
                         }
                         configManager.unloadConfiguration(obsolete);
                         obsoletes.add(obsolete);
@@ -805,17 +807,16 @@
             if (configManager.isOnline()) {
                 for (int i = 0; i < toInstall.size(); i++) {
                     Artifact artifact = toArtifact(toInstall.get(i).getPluginArtifact().get(0).getModuleId());
-                    //for (Artifact artifact : artifacts) {
-                        if (!configManager.isRunning(artifact)) {
-                            if (!configManager.isLoaded(artifact)) {
-                                File serverArtifact = new File(getArtifactLocation (artifact));
-                                File localDir = new File (createDirectoryStructure(localRepoDir,
artifact));
-                                writeToDirectory(localDir, serverArtifact);
-                                configManager.loadConfiguration(artifact);
-                            }
-                            configManager.startConfiguration(artifact);
+                    if (!configManager.isRunning(artifact)) {
+                        if (!configManager.isLoaded(artifact)) {
+                            File serverArtifact = new File(getArtifactLocation (artifact));
+                            File localDir = new File (createDirectoryStructure(localRepoDir,
artifact));
+                            writeToDirectory(localDir, serverArtifact);
+                            configManager.loadConfiguration(artifact);
                         }
-                    //}
+                        configManager.startConfiguration(artifact);
+                        eventLog.add(artifact.toString() + " started");
+                    }
                 }
             }
 
@@ -823,7 +824,8 @@
             e.printStackTrace();
         }
 
-        Trace.tracePoint("Exit", "GeronimoServerPluginManager.installPlugins");
+        Trace.tracePoint("Exit", "GeronimoServerPluginManager.installPlugins", eventLog.toString());
+        return eventLog;
     }
 
     // mimics org.apache.geronimo.system.plugin.PluginInstallerGbean.verifyPrerequisistes

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.4/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
Wed Dec 17 13:17:05 2008
@@ -71,6 +71,7 @@
     protected ServerPluginManagerWizardPage2 page2;
     protected ServerPluginManagerWizardPage3 page3;
     protected ServerPluginManagerWizardPage4 page4;
+    protected ServerPluginManagerWizardPage5 page5;
 
     // pageVisible is used to keep track of exactly which page we are viewing
     protected int pageVisible;
@@ -93,6 +94,8 @@
         addPage(page3);
         page4 = new ServerPluginManagerWizardPage4("page4");
         addPage(page4);
+        page5 = new ServerPluginManagerWizardPage5("page5");
+        addPage(page5);
     }
 
     public void backPressed () {
@@ -112,8 +115,10 @@
                     page1.setPageComplete(true);
                     page2.setPageComplete(true);
                     page3.setPageComplete(true);
+                    page5.setPageComplete(false);
                     pageVisible = 4;
                 } else {
+                    page5.setPageComplete(true);
                     pageVisible = 1;
                 }
                 break;
@@ -162,6 +167,12 @@
                 }
                 pageVisible = 0;
                 break;
+            case 4:
+                ArrayList<String> eventList = page4.installPlugins();
+                page5.setEventList (eventList);
+                page5.setPageComplete(true);
+                pageVisible++;
+                break;
         }
     }
 
@@ -387,7 +398,7 @@
                 buf.append(artifactToString(artifactType));
             }
             return buf.toString();
-         }
+        }
 
         private String artifactToString(ArtifactType artifact) {
             StringBuffer buffer = new StringBuffer();
@@ -696,7 +707,6 @@
                         setPageComplete(false);
                     }
                 }
-
             });
 
             setPageComplete(false);
@@ -721,6 +731,16 @@
             }
         }
 
+        // install selected plugins to the server
+        public ArrayList<String> installPlugins() {
+            // take each selected object in the pluginLoadTable and install and start
+            List<PluginType> pluginList = new ArrayList<PluginType>();
+            for (int i = 0; i < pluginLoadTable.getSelectionCount(); i++) {
+                pluginList.add ((PluginType)pluginLoadTable.getItem(pluginLoadTable.getSelectionIndices()[i]).getData());
+            }
+            return pluginManager.installPlugins(localRepoPath.getText(), pluginList);
+        }
+
         private String[] pluginToStringArray (PluginType plugin) {
             String[] stringArray = new String[pluginLoadTable.getColumnCount()];
             stringArray[0] = plugin.getName();
@@ -741,14 +761,48 @@
         }
     }
 
-    public boolean performFinish() {
-        // take each selected object in the pluginLoadTable and install and start
-        List<PluginType> pluginList = new ArrayList<PluginType>();
-        for (int i = 0; i < pluginLoadTable.getSelectionCount(); i++) {
-            pluginList.add ((PluginType)pluginLoadTable.getItem(pluginLoadTable.getSelectionIndices()[i]).getData());
+    public class ServerPluginManagerWizardPage5 extends AbstractWizardPage {
+        Table eventTable;
+
+        public ServerPluginManagerWizardPage5(String pageName) {
+            super(pageName);
         }
-        pluginManager.installPlugins(localRepoPath.getText(), pluginList);
 
+        public void createControl(Composite parent) {
+            parent.setLayoutData(createGridData(400, 300));
+            Composite composite = createComposite(parent);
+
+            String[] columnNames = {CommonMessages.event};
+            int[] columnWidths = {400};
+            eventTable = this.createTable(composite, columnNames, columnWidths);
+
+            setPageComplete(true);
+            setControl(composite);
+        }
+
+        protected void setEventList (ArrayList<String> eventList) {
+            eventTable.clearAll();
+            for (int i = 0; i < eventList.size(); i++) {
+                TableItem tabItem = new TableItem (eventTable, SWT.NONE);
+                String event = eventList.get(i);
+                tabItem.setData(event);
+                tabItem.setText(event);
+            }
+        }
+
+        @Override
+        protected String getWizardPageTitle() {
+            return CommonMessages.wizardPage5Title_PluginManager;
+        }
+
+        @Override
+        protected String getWizardPageDescription() {
+            return CommonMessages.wizardPage5Description_PluginManager;
+        }
+    }
+
+    // everything already done, simply close everything down
+    public boolean performFinish() {
         return true;
     }
 

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.java
Wed Dec 17 13:17:05 2008
@@ -434,6 +434,8 @@
     public static String wizardPage3Description_PluginManager;
     public static String wizardPage4Title_PluginManager;
     public static String wizardPage4Description_PluginManager;
+    public static String wizardPage5Title_PluginManager;
+    public static String wizardPage5Description_PluginManager;
     public static String localPluginRepo;
     public static String failedToSave;
     public static String savedSuccess;
@@ -449,4 +451,5 @@
     public static String dependencies;
     public static String obsoletes;
     public static String installable;
+    public static String event;
 }

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.ui/src/main/java/org/apache/geronimo/st/ui/internal/Messages.properties
Wed Dec 17 13:17:05 2008
@@ -428,7 +428,9 @@
 wizardPage3Title_PluginManager=Update Plugin Information (continued)
 wizardPage3Description_PluginManager=Update information for the plugin.
 wizardPage4Title_PluginManager=Install Plugin
-wizardPage4Description_PluginManager=Select plugins to be installed to the server. 
+wizardPage4Description_PluginManager=Select plugins to be installed to the server.
+wizardPage5Title_PluginManager=Installation Complete
+wizardPage5Description_PluginManager=List of plugins that have been installed to the server.

 localPluginRepo=Local Plugin Repository:
 failedToSave=Failed to save {0}.
 savedSuccess={0} saved successfully.
@@ -446,3 +448,4 @@
 dependencies=Dependencies
 obsoletes=Obsoletes
 installable=Installable
+event=Event

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.core/src/main/java/org/apache/geronimo/st/v21/core/operations/GeronimoServerPluginManager.java
Wed Dec 17 13:17:05 2008
@@ -754,8 +754,9 @@
     }
 
     // mimics org.apache.geronimo.system.plugin.PluginInstallerGbean.install
-    public void installPlugins (String localRepoDir, List<PluginType> pluginList) {
+    public ArrayList<String> installPlugins (String localRepoDir, List<PluginType>
pluginList) {
         Trace.tracePoint("Entry", "GeronimoServerPluginManager.installPlugins", localRepoDir,
pluginList);
+        ArrayList<String> eventLog = new ArrayList<String>();
 
         //List<Artifact> downloadedArtifacts = new ArrayList<Artifact>();
         try {
@@ -788,6 +789,7 @@
                     if (configManager.isLoaded(obsolete)) {
                         if (configManager.isRunning(obsolete)) {
                             configManager.stopConfiguration(obsolete);
+                            eventLog.add(obsolete.toString() + " stopped");
                         }
                         configManager.unloadConfiguration(obsolete);
                         obsoletes.add(obsolete);
@@ -804,17 +806,16 @@
             if (configManager.isOnline()) {
                 for (int i = 0; i < toInstall.size(); i++) {
                     Artifact artifact = toArtifact(toInstall.get(i).getPluginArtifact().get(0).getModuleId());
-                    //for (Artifact artifact : artifacts) {
-                        if (!configManager.isRunning(artifact)) {
-                            if (!configManager.isLoaded(artifact)) {
-                                File serverArtifact = new File(getArtifactLocation (artifact));
-                                File localDir = new File (createDirectoryStructure(localRepoDir,
artifact));
-                                writeToDirectory(localDir, serverArtifact);
-                                configManager.loadConfiguration(artifact);
-                            }
-                            configManager.startConfiguration(artifact);
+                    if (!configManager.isRunning(artifact)) {
+                        if (!configManager.isLoaded(artifact)) {
+                            File serverArtifact = new File(getArtifactLocation (artifact));
+                            File localDir = new File (createDirectoryStructure(localRepoDir,
artifact));
+                            writeToDirectory(localDir, serverArtifact);
+                            configManager.loadConfiguration(artifact);
                         }
-                    //}
+                        configManager.startConfiguration(artifact);
+                        eventLog.add(artifact.toString() + " started");
+                    }
                 }
             }
 
@@ -822,7 +823,8 @@
             e.printStackTrace();
         }
 
-        Trace.tracePoint("Exit", "GeronimoServerPluginManager.installPlugins");
+        Trace.tracePoint("Exit", "GeronimoServerPluginManager.installPlugins", eventLog.toString());
+        return eventLog;
     }
 
     // mimics org.apache.geronimo.system.plugin.PluginInstallerGbean.verifyPrerequisistes

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java?rev=727514&r1=727513&r2=727514&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/ServerPluginManagerWizard.java
Wed Dec 17 13:17:05 2008
@@ -71,6 +71,7 @@
     protected ServerPluginManagerWizardPage2 page2;
     protected ServerPluginManagerWizardPage3 page3;
     protected ServerPluginManagerWizardPage4 page4;
+    protected ServerPluginManagerWizardPage5 page5;
 
     // pageVisible is used to keep track of exactly which page we are viewing
     protected int pageVisible;
@@ -93,6 +94,8 @@
         addPage(page3);
         page4 = new ServerPluginManagerWizardPage4("page4");
         addPage(page4);
+        page5 = new ServerPluginManagerWizardPage5("page5");
+        addPage(page5);
     }
 
     public void backPressed () {
@@ -112,8 +115,10 @@
                     page1.setPageComplete(true);
                     page2.setPageComplete(true);
                     page3.setPageComplete(true);
+                    page5.setPageComplete(false);
                     pageVisible = 4;
                 } else {
+                    page5.setPageComplete(true);
                     pageVisible = 1;
                 }
                 break;
@@ -162,6 +167,12 @@
                 }
                 pageVisible = 0;
                 break;
+            case 4:
+                ArrayList<String> eventList = page4.installPlugins();
+                page5.setEventList (eventList);
+                page5.setPageComplete(true);
+                pageVisible++;
+                break;
         }
     }
     
@@ -720,6 +731,16 @@
                 tabItem.setText(pluginValues);
             }
         }
+
+        // install selected plugins to the server
+        public ArrayList<String> installPlugins() {
+            // take each selected object in the pluginLoadTable and install and start 
+            List<PluginType> pluginList = new ArrayList<PluginType>();
+            for (int i = 0; i < pluginLoadTable.getSelectionCount(); i++) {
+                pluginList.add ((PluginType)pluginLoadTable.getItem(pluginLoadTable.getSelectionIndices()[i]).getData());
+            }
+            return pluginManager.installPlugins(localRepoPath.getText(), pluginList);
+        }
         
         private String[] pluginToStringArray (PluginType plugin) {
             String[] stringArray = new String[pluginLoadTable.getColumnCount()];
@@ -741,14 +762,48 @@
         }
     }
 
-    public boolean performFinish() {
-        // take each selected object in the pluginLoadTable and install and start 
-        List<PluginType> pluginList = new ArrayList<PluginType>();
-        for (int i = 0; i < pluginLoadTable.getSelectionCount(); i++) {
-            pluginList.add ((PluginType)pluginLoadTable.getItem(pluginLoadTable.getSelectionIndices()[i]).getData());
+    public class ServerPluginManagerWizardPage5 extends AbstractWizardPage {
+        Table eventTable;
+        
+        public ServerPluginManagerWizardPage5(String pageName) {
+            super(pageName);
         }
-        pluginManager.installPlugins(localRepoPath.getText(), pluginList);
 
+        public void createControl(Composite parent) {
+            parent.setLayoutData(createGridData(400, 300));
+            Composite composite = createComposite(parent);
+
+            String[] columnNames = {CommonMessages.event};
+            int[] columnWidths = {400};
+            eventTable = this.createTable(composite, columnNames, columnWidths);
+
+            setPageComplete(true);
+            setControl(composite);
+        }
+
+        protected void setEventList (ArrayList<String> eventList) {
+            eventTable.clearAll();
+            for (int i = 0; i < eventList.size(); i++) {
+                TableItem tabItem = new TableItem (eventTable, SWT.NONE);
+                String event = eventList.get(i);
+                tabItem.setData(event);
+                tabItem.setText(event);
+            }
+        }
+
+        @Override
+        protected String getWizardPageTitle() {
+            return CommonMessages.wizardPage5Title_PluginManager;
+        }
+
+        @Override
+        protected String getWizardPageDescription() {
+            return CommonMessages.wizardPage5Description_PluginManager;
+        }
+    }
+
+    // everything already done, simply close everything down
+    public boolean performFinish() {
         return true;
     }
 



Mime
View raw message