|
From: Benjamin B. <bg...@us...> - 2005-06-23 08:17:13
|
Update of /cvsroot/sblim/ecute/Plugin/com/ibm/ecute In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5526/Plugin/com/ibm/ecute Modified Files: EntryPoint.java Log Message: Version 2.1 beta 1e: CMPI provider generator support Index: EntryPoint.java =================================================================== RCS file: /cvsroot/sblim/ecute/Plugin/com/ibm/ecute/EntryPoint.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- EntryPoint.java 10 May 2005 09:11:53 -0000 1.16 +++ EntryPoint.java 23 Jun 2005 08:17:00 -0000 1.17 @@ -465,43 +465,6 @@ return false; } -// private boolean selectInputPlugins() { -// //create panel -// if (inputPluginPanel == null) { -// inputPluginBoxes = new JCheckBox[inputPlugindescriptors.length]; -// inputPluginPanel = new JPanel(); -// inputPluginPanel.setLayout(new GridLayout(0, 1)); -// inputPluginPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); -// for (int i = 0; i < inputPlugindescriptors.length; i++) { -// String name = inputPlugindescriptors[i].name; -// boolean activated = inputPlugindescriptors[i].activated; -// String description = inputPlugindescriptors[i].plugin.getDescription(); -// inputPluginBoxes[i] = new javax.swing.JCheckBox(name, activated); -// inputPluginBoxes[i].setToolTipText(description); -// inputPluginPanel.add(inputPluginBoxes[i]); -// } -// } -// //put panel in main frame -// frame.reset(); -// frame.setTitle("Select input plugins"); -// frame.setPanel(inputPluginPanel); -// //wait for user -// int buttonPressed = frame.waitUser(); -// if (buttonPressed == PluginFrame.CANCEL_PRESSED) -// System.exit(0); -// //save current boxes state -// for (int i = 0; i < inputPluginBoxes.length; i++) { -// configuration.setProperty(inputPluginsPackage, inputPlugindescriptors[i].name, inputPluginBoxes[i] -// .isSelected() -// + ""); -// inputPlugindescriptors[i].activated = inputPluginBoxes[i].isSelected(); -// } -// if (buttonPressed == PluginFrame.NEXT_PRESSED) -// return true; -// else -// return false; -// } - private void loadConfiguration4InputPlugins() { numberOfActivatedInputPlugins = 0; for (int i = 0; i < inputPlugindescriptors.length; i++) { @@ -550,45 +513,6 @@ return true; } -// private boolean validateInputPlugins() { -// if (numberOfActivatedInputPlugins == 0) -// return true; -// boolean allValid = true; -// int pluginWithProblems = -1; -// for (int i = 0; i < inputPlugindescriptors.length; i++) { -// if (!inputPlugindescriptors[i].activated) -// continue; -// if (inputPlugindescriptors[i].plugin.isValidCongufiguration()) -// continue; -// pluginWithProblems = i; -// allValid = false; -// } -// if (allValid) { -// if (interactive) { -// JPanel myPanel = new JPanel(); -// JLabel myLabel = new JLabel("Configuration complete"); -// myPanel.add(myLabel); -// frame.reset(); -// frame.setTitle("Ready to load model from sources"); -// frame.setPanel(myPanel); -// frame.setVisible(true); -// int status = frame.waitUser(); -// switch (status) { -// case PluginFrame.CANCEL_PRESSED: -// System.exit(1); -// case PluginFrame.BACK_PRESSED: -// return false; -// case PluginFrame.NEXT_PRESSED: -// return true; -// } -// } -// } else { -// String pluginName = inputPlugindescriptors[pluginWithProblems].name; -// showConfigurationError(pluginName); -// return false; -// } -// return true; -// } private boolean validatePlugins() { if (numberOfActivatedInputPlugins == 0) @@ -710,44 +634,6 @@ } } -// private boolean selectOutputPlugins() { -// //create panel -// if (outputPluginPanel == null) { -// outputPluginBoxes = new JCheckBox[outputPlugindescriptors.length]; -// outputPluginPanel = new JPanel(); -// outputPluginPanel.setLayout(new GridLayout(0, 1)); -// outputPluginPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); -// for (int i = 0; i < outputPlugindescriptors.length; i++) { -// String name = outputPlugindescriptors[i].name; -// boolean activated = outputPlugindescriptors[i].activated; -// String description = outputPlugindescriptors[i].plugin.getDescription(); -// outputPluginBoxes[i] = new javax.swing.JCheckBox(name, activated); -// outputPluginBoxes[i].setToolTipText(description); -// outputPluginPanel.add(outputPluginBoxes[i]); -// } -// } -// //put panel in main frame -// frame.reset(); -// frame.setTitle("Select output plugins"); -// frame.setPanel(outputPluginPanel); -// frame.setVisible(true); -// //wait for user -// int buttonPressed = frame.waitUser(); -// if (buttonPressed == PluginFrame.CANCEL_PRESSED) -// System.exit(0); -// //save current boxes state -// for (int i = 0; i < outputPluginBoxes.length; i++) { -// configuration.setProperty(outputPluginsPackage, outputPlugindescriptors[i].name, outputPluginBoxes[i] -// .isSelected() -// + ""); -// outputPlugindescriptors[i].activated = outputPluginBoxes[i].isSelected(); -// } -// if (buttonPressed == PluginFrame.NEXT_PRESSED) -// return true; -// else -// return false; -// } - private void loadConfiguration4OutputPlugins() { numberOfActivatedOutputPlugins = 0; for (int i = 0; i < outputPlugindescriptors.length; i++) { @@ -796,46 +682,6 @@ return true; } -// private boolean validateOutputPlugins() { -// if (numberOfActivatedOutputPlugins == 0) -// return true; -// boolean allValid = true; -// int pluginWithProblems = -1; -// for (int i = 0; i < outputPlugindescriptors.length; i++) { -// if (!outputPlugindescriptors[i].activated) -// continue; -// if (outputPlugindescriptors[i].plugin.isValidCongufiguration()) -// continue; -// pluginWithProblems = i; -// allValid = false; -// } -// if (allValid) { -// if (interactive) { -// JPanel myPanel = new JPanel(); -// JLabel myLabel = new JLabel("Configuration complete"); -// myPanel.add(myLabel); -// frame.reset(); -// frame.setTitle("Ready to generate output"); -// frame.setPanel(myPanel); -// frame.setVisible(true); -// int status = frame.waitUser(); -// switch (status) { -// case PluginFrame.CANCEL_PRESSED: -// System.exit(1); -// case PluginFrame.BACK_PRESSED: -// return false; -// case PluginFrame.NEXT_PRESSED: -// return true; -// } -// } -// } else { -// String pluginName = outputPlugindescriptors[pluginWithProblems].name; -// showConfigurationError(pluginName); -// return false; -// } -// return true; -// } - private boolean executeOutputPlugins(boolean previousDialogReturn) { if (previousDialogReturn == false) return true; //Execute plugins only when the user clicked next |