Index: openide/dialogs/src/org/openide/DialogDisplayer.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/dialogs/src/org/openide/DialogDisplayer.java,v retrieving revision 1.5 diff -u -r1.5 DialogDisplayer.java --- openide/dialogs/src/org/openide/DialogDisplayer.java 20 Sep 2006 05:25:12 -0000 1.5 +++ openide/dialogs/src/org/openide/DialogDisplayer.java 18 Jan 2007 10:12:10 -0000 @@ -286,7 +286,7 @@ } public void updateOptions() { - Set addedOptions = new HashSet(5); + Set addedOptions = new HashSet(5); Object[] options = nd.getOptions(); if (options == null) { Index: openide/dialogs/src/org/openide/WizardDescriptor.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/dialogs/src/org/openide/WizardDescriptor.java,v retrieving revision 1.40.4.1 diff -u -r1.40.4.1 WizardDescriptor.java --- openide/dialogs/src/org/openide/WizardDescriptor.java 16 Jan 2007 18:54:05 -0000 1.40.4.1 +++ openide/dialogs/src/org/openide/WizardDescriptor.java 18 Jan 2007 10:12:10 -0000 @@ -253,8 +253,8 @@ /** 'North' or 'South' */ private String imageAlignment = "North"; // NOI18N - /** Iterator between panels in the wizard */ - private Iterator panels; + /** Iterator between panels in the wizard and its settings */ + private SettingsAndIterator data; /** Change listener that invokes method update state */ private ChangeListener weakChangeListener; @@ -267,12 +267,6 @@ // base listener which won't be directly attached, will only wrapped by WeakListener private Listener baseListener; - /** current panel */ - private Panel current; - - /** settings to be used for the panels */ - private Object settings; - /** message format to create title of the document */ private MessageFormat titleFormat; @@ -320,19 +314,18 @@ * @param settings the settings to pass to panels, or null * @see #WizardDescriptor(WizardDescriptor.Iterator, Object) */ - public WizardDescriptor(Panel[] wizardPanels, Object settings) { - this(new ArrayIterator(wizardPanels), settings); + public WizardDescriptor(Panel[] wizardPanels, Data settings) { + this(new SettingsAndIterator(new ArrayIterator(wizardPanels), settings)); } - + /** Create a new wizard from a fixed list of panels with settings * defaulted to this. * * @param wizardPanels the panels to use * @see #WizardDescriptor(WizardDescriptor.Iterator, Object) */ - public WizardDescriptor(Panel[] wizardPanels) { - // passing CLOSE_PREVENTER which is treated especially - this(wizardPanels, CLOSE_PREVENTER); + public WizardDescriptor(Panel[] wizardPanels) { + this(SettingsAndIterator.create(new ArrayIterator(wizardPanels))); } /** Create wizard for a sequence of panels, passing some settings to the panels. @@ -341,10 +334,14 @@ * @see WizardDescriptor.Panel#readSettings * @see WizardDescriptor.Panel#storeSettings */ - public WizardDescriptor(Iterator panels, Object settings) { + public WizardDescriptor(Iterator panels, Data settings) { + this(new SettingsAndIterator(panels, settings)); + } + + private WizardDescriptor(SettingsAndIterator data) { super("", "", true, DEFAULT_OPTION, null, CLOSE_PREVENTER); // NOI18N - this.settings = (settings == CLOSE_PREVENTER) ? this : settings; + this.data = data; baseListener = new Listener(); @@ -371,11 +368,9 @@ super.setOptions(new Object[] { previousButton, nextButton, finishButton, cancelButton }); super.setClosingOptions(new Object[] { finishOption, cancelButton }); - this.panels = panels; - // attach the change listener to iterator - weakChangeListener = WeakListeners.change(baseListener, panels); - panels.addChangeListener(weakChangeListener); + weakChangeListener = WeakListeners.change(baseListener, data.getIterator(this)); + data.getIterator(this).addChangeListener(weakChangeListener); callInitialize(); } @@ -385,9 +380,8 @@ * * @param panels iterator over all {@link WizardDescriptor.Panel}s that can appear in the wizard */ - public WizardDescriptor(Iterator panels) { - // passing CLOSE_PREVENTER which is treated especially - this(panels, CLOSE_PREVENTER); + public WizardDescriptor(Iterator panels) { + this(SettingsAndIterator.create(panels)); } /** Initializes settings. @@ -431,14 +425,15 @@ * Correctly updates the buttons. * @param panels the new list of {@link WizardDescriptor.Panel}s */ + @SuppressWarnings("unchecked") public final synchronized void setPanels(Iterator panels) { - if (this.panels != null) { - this.panels.removeChangeListener(weakChangeListener); + if (data.getIterator(this) != null) { + data.getIterator(this).removeChangeListener(weakChangeListener); } - this.panels = panels; - weakChangeListener = WeakListeners.change(baseListener, panels); - panels.addChangeListener(weakChangeListener); + data = data.clone(panels); + weakChangeListener = WeakListeners.change(baseListener, data.getIterator(this)); + data.getIterator(this).addChangeListener(weakChangeListener); init = false; updateState(); @@ -657,33 +652,36 @@ * */ protected synchronized void updateState() { - Panel p = panels.current(); + updateStateOpen(data); + } + private void updateStateOpen(SettingsAndIterator data) { + Panel p = data.getIterator(this).current(); // listeners on the panel - if (current != p) { - if (current != null) { + if (data.current != p) { + if (data.current != null) { // remove - current.removeChangeListener(weakChangeListener); - current.storeSettings(settings); + data.current.removeChangeListener(weakChangeListener); + data.current.storeSettings(data.getSettings(this)); } // Hack - obtain current panel again // It's here to allow dynamic change of panels in wizard // (which can be done in storeSettings method) - p = panels.current(); + p = data.getIterator(this).current(); // add to new, detach old change listener and attach new one - panels.removeChangeListener(weakChangeListener); + data.getIterator(this).removeChangeListener(weakChangeListener); weakChangeListener = WeakListeners.change(baseListener, p); - panels.addChangeListener(weakChangeListener); + data.getIterator(this).addChangeListener(weakChangeListener); p.addChangeListener(weakChangeListener); - current = p; - current.readSettings(settings); + data.current = p; + p.readSettings(data.getSettings(this)); } - boolean next = panels.hasNext(); - boolean prev = panels.hasPrevious(); + boolean next = data.getIterator(this).hasNext(); + boolean prev = data.getIterator(this).hasPrevious(); boolean valid = p.isValid(); // AWT sensitive code @@ -778,7 +776,7 @@ panelName = ""; // NOI18N } - Object[] args = { panelName, panels.name() }; + Object[] args = { panelName, data.getIterator(this).name() }; MessageFormat mf = getTitleFormat(); if (autoWizardStyle) { @@ -796,22 +794,22 @@ // for xtesting usage only boolean isForwardEnabled () { - return panels.current ().isValid () && !validationRuns; + return data.getIterator(this).current ().isValid () && !validationRuns; } private void updateStateInAWT () { - Panel p = panels.current (); - boolean next = panels.hasNext (); - boolean prev = panels.hasPrevious (); + Panel p = data.getIterator(this).current (); + boolean next = data.getIterator(this).hasNext (); + boolean prev = data.getIterator(this).hasPrevious (); boolean valid = p.isValid () && !validationRuns; nextButton.setEnabled (next && valid); previousButton.setEnabled (prev); cancelButton.setEnabled (true); - if (current instanceof FinishablePanel) { + if (data.current instanceof FinishablePanel) { // check if isFinishPanel - if (((FinishablePanel)current).isFinishPanel ()) { + if (((FinishablePanel)data.current).isFinishPanel ()) { finishButton.setEnabled (valid); } else { // XXX What if the last panel is not FinishPanel ??? enable ? @@ -821,7 +819,7 @@ // original way finishButton.setEnabled ( valid && - (!next || (current instanceof FinishPanel)) + (!next || (data.current instanceof FinishPanel)) ); } } @@ -881,7 +879,7 @@ * wizard window exceeds screen bounds after resize. */ private void resizeWizard(Window parentWindow, Dimension prevSize) { - Dimension curSize = panels.current().getComponent().getPreferredSize(); + Dimension curSize = data.getIterator(this).current().getComponent().getPreferredSize(); // only enlarge if needed, don't shrink if ((curSize.width > prevSize.width) || (curSize.height > prevSize.height)) { @@ -1117,8 +1115,11 @@ /** Overrides superclass method. Adds reseting of wizard * for CLOSED_OPTION. */ public void setValue(Object value) { + setValueOpen(value, data); + } + + private void setValueOpen(Object value, SettingsAndIterator data) { Object convertedValue = backConvertOption(value); - // set new value w/o fire PROP_VALUE change Object oldValue = getValue(); setValueWithoutPCH(convertedValue); @@ -1129,8 +1130,8 @@ } else if (FINISH_OPTION.equals(convertedValue) || NEXT_OPTION.equals(convertedValue)) { //Bugfix #25820: make sure that storeSettings //is called before propertyChange. - if (current != null) { - current.storeSettings(settings); + if (data.current != null) { + data.current.storeSettings(data.getSettings(this)); } } @@ -1140,10 +1141,14 @@ /** Resets wizard when after closed/cancelled/finished the wizard dialog. */ private void resetWizard() { - if (current != null) { - current.storeSettings(settings); - current.removeChangeListener(weakChangeListener); - current = null; + resetWizardOpen(data); + } + + private void resetWizardOpen(SettingsAndIterator data) { + if (data.current != null) { + data.current.storeSettings(data.getSettings(this)); + data.current.removeChangeListener(weakChangeListener); + data.current = null; if (wizardPanel != null) { wizardPanel.resetPreferredSize(); @@ -1153,7 +1158,7 @@ callUninitialize(); // detach the change listener at the end of wizard - panels.removeChangeListener(weakChangeListener); + data.getIterator(this).removeChangeListener(weakChangeListener); } private int getIntFromBundle(String key) { @@ -1243,24 +1248,30 @@ // helper methods which call to InstantiatingIterator private void callInitialize() { - assert panels != null; + assert data.getIterator(this) != null; - if (panels instanceof InstantiatingIterator) { - ((InstantiatingIterator) panels).initialize(this); + if (data.getIterator(this) instanceof InstantiatingIterator) { + ((InstantiatingIterator) data.getIterator(this)).initialize(this); } newObjects = Collections.EMPTY_SET; } private void callUninitialize() { - assert panels != null; + assert data.getIterator(this) != null; - if (panels instanceof InstantiatingIterator) { - ((InstantiatingIterator) panels).uninitialize(this); + if (data.getIterator(this) instanceof InstantiatingIterator) { + ((InstantiatingIterator) data.getIterator(this)).uninitialize(this); } } private void callInstantiate() throws IOException { + callInstantiateOpen(data); + } + + private void callInstantiateOpen(SettingsAndIterator data) throws IOException { + Iterator panels = data.getIterator(this); + assert panels != null; err.log (Level.FINE, "Is AsynchronousInstantiatingIterator? " + (panels instanceof AsynchronousInstantiatingIterator)); @@ -1287,7 +1298,7 @@ } // bugfix #44444, force store settings before do instantiate new objects - panels.current().storeSettings(settings); + panels.current().storeSettings(data.getSettings(this)); if (panels instanceof InstantiatingIterator) { showWaitCursor(); @@ -1361,11 +1372,11 @@ /** Iterator on the sequence of panels. * @see WizardDescriptor.Panel */ - public interface Iterator { + public interface Iterator { /** Get the current panel. * @return the panel */ - public Panel current(); + public Panel current(); /** Get the name of the current panel. * @return the name @@ -1414,7 +1425,7 @@ * * Please see complete guide at http://performance.netbeans.org/howto/dialogs/wizard-panels.html */ - public interface Panel { + public interface Panel { /** Get the component displayed in this panel. * * Note; method can be called from any thread, but not concurrently @@ -1442,7 +1453,7 @@ * @exception IllegalStateException if the the data provided * by the wizard are not valid. */ - public void readSettings(Object settings); + public void readSettings(Data settings); /** Provides the wizard panel with the opportunity to update the * settings with its current customized state. @@ -1457,7 +1468,7 @@ * in fact the TemplateWizard. * @param settings the object representing wizard panel state */ - public void storeSettings(Object settings); + public void storeSettings(Data settings); /** Test whether the panel is finished and it is safe to proceed to the next one. * If the panel is valid, the "Next" (or "Finish") button will be enabled. @@ -1487,14 +1498,14 @@ * implementing this interface. * @deprecated 4.28 Use FinishablePanel instead. */ - public interface FinishPanel extends Panel { + public interface FinishPanel extends Panel { } /** A special interface for panels that need to do additional * validation when Next or Finish button is clicked. * @since 4.28 */ - public interface ValidatingPanel extends Panel { + public interface ValidatingPanel extends Panel { /** * Is called when Next of Finish buttons are clicked and * allows deeper check to find out that panel is in valid @@ -1520,7 +1531,7 @@ * * @since 6.2 (16 May 2005) */ - public interface AsynchronousValidatingPanel extends ValidatingPanel { + public interface AsynchronousValidatingPanel extends ValidatingPanel { /** * Called synchronously from UI thread when Next @@ -1544,7 +1555,7 @@ * Finish button. * @since 4.28 */ - public interface FinishablePanel extends Panel { + public interface FinishablePanel extends Panel { /** Specify if this panel would enable Finish button. Finish button is * enabled if and only if isValid() returns true and isFinishPanel() * returns true. @@ -1562,7 +1573,7 @@ * in a template's declaration.) * @since org.openide/1 4.33 */ - public interface InstantiatingIterator extends Iterator { + public interface InstantiatingIterator extends Iterator { /** Returns set of instantiated objects. If instantiation fails then wizard remains open to enable correct values. * * @throws IOException @@ -1591,7 +1602,7 @@ * in a template's declaration.) * @since org.openide/1 6.5 */ - public interface AsynchronousInstantiatingIterator extends InstantiatingIterator { + public interface AsynchronousInstantiatingIterator extends InstantiatingIterator { /** * Is called in separate thread when the Finish button @@ -1613,7 +1624,7 @@ * in a template's declaration.) * @since org.openide.dialogs 7.1 */ - public interface ProgressInstantiatingIterator extends AsynchronousInstantiatingIterator { + public interface ProgressInstantiatingIterator extends AsynchronousInstantiatingIterator { /** * Is called in separate thread when the Finish button @@ -1633,10 +1644,10 @@ /** Special iterator that works on an array of Panels. */ - public static class ArrayIterator extends Object implements Iterator { + public static class ArrayIterator extends Object implements Iterator { /** Array of items. */ - private Panel[] panels; + private Panel[] panels; /** Index into the array */ @@ -1653,7 +1664,7 @@ /** Construct an iterator. * @param array the list of panels to use */ - public ArrayIterator(Panel[] array) { + public ArrayIterator(Panel[] array) { panels = array; index = 0; } @@ -1662,13 +1673,14 @@ * constructed using default constructor. * (for example during deserialization. * Default implementation returns empty array. */ - protected Panel[] initializePanels() { + @SuppressWarnings("unchecked") + protected Panel[] initializePanels() { return new Panel[0]; } /* The current panel. */ - public Panel current() { + public Panel current() { return panels[index]; } @@ -1746,6 +1758,7 @@ /** Action listener */ public void actionPerformed(ActionEvent ev) { + final Iterator panels = data.getIterator(WizardDescriptor.this); if (wizardPanel != null) { wizardPanel.setErrorMessage(" ", null); //NOI18N } @@ -2638,6 +2651,41 @@ assert ESTIMATED_HEIGHT == Utilities.loadImage ("org/netbeans/modules/dialogs/warning.gif").getHeight (null) : "Use only 16px icon."; preferredSize.height = Math.max (ESTIMATED_HEIGHT, preferredSize.height); return preferredSize; + } + } + + private static final class SettingsAndIterator { + private final Iterator panels; + private final Data settings; + private final boolean useThis; + /** current panel */ + private Panel current; + + + public SettingsAndIterator(Iterator iterator, Data settings) { + this(iterator, settings, false); + } + public SettingsAndIterator(Iterator iterator, Data settings, boolean useThis) { + this.panels = iterator; + this.settings = settings; + this.useThis = useThis; + } + public static SettingsAndIterator create(Iterator iterator) { + return new SettingsAndIterator(iterator, null, true); + } + + public Iterator getIterator(WizardDescriptor caller) { + return panels; + } + + @SuppressWarnings("unchecked") + public Data getSettings(WizardDescriptor caller) { + return useThis ? (Data)caller : settings; + } + + public SettingsAndIterator clone(Iterator it) { + SettingsAndIterator s = new SettingsAndIterator(it, settings, useThis); + return s; } } } Index: openide/loaders/src/org/openide/loaders/NewObjectWizardPanel.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/NewObjectWizardPanel.java,v retrieving revision 1.7 diff -u -r1.7 NewObjectWizardPanel.java --- openide/loaders/src/org/openide/loaders/NewObjectWizardPanel.java 1 Jul 2006 09:08:22 -0000 1.7 +++ openide/loaders/src/org/openide/loaders/NewObjectWizardPanel.java 18 Jan 2007 10:12:32 -0000 @@ -30,7 +30,7 @@ * * @author Jiri Rechtacek */ -final class NewObjectWizardPanel implements WizardDescriptor.FinishablePanel { +final class NewObjectWizardPanel implements WizardDescriptor.FinishablePanel { private NewObjectPanel newObjectPanelUI; /** listener to changes in the wizard */ private ChangeListener listener; @@ -135,7 +135,7 @@ * This method can be called multiple times on one instance of WizardDescriptor.Panel. * @param settings the object representing wizard panel state, as originally supplied to {@link WizardDescriptor#WizardDescriptor(WizardDescriptor.Iterator,Object)} */ - public void readSettings(Object settings) { + public void readSettings(WizardDescriptor settings) { this.wizard = (TemplateWizard)settings; DataObject template = wizard.getTemplate (); if (template != null) { @@ -159,7 +159,7 @@ * This method can be called multiple times on one instance of WizardDescriptor.Panel. * @param settings the object representing a settings of the wizard */ - public void storeSettings(Object settings) { + public void storeSettings(WizardDescriptor settings) { String name = getPanelUI ().getNewObjectName (); if (name.equals (NewObjectPanel.defaultNewObjectName ())) { name = null; Index: openide/loaders/src/org/openide/loaders/TemplateWizard.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/TemplateWizard.java,v retrieving revision 1.25.4.1 diff -u -r1.25.4.1 TemplateWizard.java --- openide/loaders/src/org/openide/loaders/TemplateWizard.java 16 Jan 2007 18:58:48 -0000 1.25.4.1 +++ openide/loaders/src/org/openide/loaders/TemplateWizard.java 18 Jan 2007 10:12:32 -0000 @@ -68,9 +68,9 @@ static java.awt.Dimension PREF_DIM = new java.awt.Dimension (560, 350); /** panel */ - private Panel templateChooser; + private Panel templateChooser; /** panel */ - private Panel targetChooser; + private Panel targetChooser; /** whether to show target chooser */ private boolean showTargetChooser = true; @@ -271,7 +271,7 @@ /** Returns wizard panel that is used to choose a template. * @return wizard panel */ - public Panel templateChooser () { + public Panel templateChooser () { synchronized (this) { if (templateChooser == null) { templateChooser = createTemplateChooser (); @@ -284,7 +284,7 @@ * name of the template. * @return wizard panel */ - public Panel targetChooser () { + public Panel targetChooser () { synchronized (this) { if (targetChooser == null) { targetChooser = createTargetChooser (); @@ -307,7 +307,7 @@ * * @return the panel */ - protected Panel createTemplateChooser () { + protected Panel createTemplateChooser () { return new TemplateWizardPanel1 (); } @@ -315,8 +315,12 @@ * * @return the panel */ - protected Panel createTargetChooser () { - return showTargetChooser ? (Panel)new TemplateWizardPanel2 () : (Panel)new NewObjectWizardPanel (); + protected Panel createTargetChooser () { + if (showTargetChooser) { + return new TemplateWizardPanel2 (); + } else { + return new NewObjectWizardPanel (); + } } /** Allows subclasses to provide their own default iterator @@ -661,6 +665,7 @@ * @param obj the data object * @return custom iterator or null */ + @SuppressWarnings("unchecked") public static Iterator getIterator (DataObject obj) { Object unknownIterator = obj.getPrimaryFile ().getAttribute(CUSTOM_ITERATOR); if (unknownIterator == null) { @@ -672,7 +677,7 @@ it = (Iterator)unknownIterator; // own brigde for each one iterator type } if (unknownIterator instanceof WizardDescriptor.InstantiatingIterator) { - it = new InstantiatingIteratorBridge((WizardDescriptor.InstantiatingIterator) unknownIterator); + it = new InstantiatingIteratorBridge((WizardDescriptor.InstantiatingIterator) unknownIterator); } if (it != null) { return it; @@ -808,7 +813,7 @@ *

* Implements Node.Cookie since version 2.13 */ - public interface Iterator extends WizardDescriptor.Iterator, + public interface Iterator extends WizardDescriptor.Iterator, java.io.Serializable, org.openide.nodes.Node.Cookie { /** Instantiates the template using information provided by * the wizard. If instantiation fails then wizard remains open to enable correct values. @@ -887,7 +892,7 @@ /** Get the current panel. * @return the panel */ - public Panel current() { + public Panel current() { return targetChooser (); } @@ -936,8 +941,8 @@ } private static class InstantiatingIteratorBridge implements TemplateWizard.Iterator { - private WizardDescriptor.InstantiatingIterator instantiatingIterator; - public InstantiatingIteratorBridge (WizardDescriptor.InstantiatingIterator it) { + private WizardDescriptor.InstantiatingIterator instantiatingIterator; + public InstantiatingIteratorBridge (WizardDescriptor.InstantiatingIterator it) { instantiatingIterator = it; } @@ -949,7 +954,7 @@ instantiatingIterator.addChangeListener (l); } - public org.openide.WizardDescriptor.Panel current () { + public org.openide.WizardDescriptor.Panel current () { return instantiatingIterator.current (); } Index: openide/loaders/src/org/openide/loaders/TemplateWizardIterImpl.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/TemplateWizardIterImpl.java,v retrieving revision 1.10 diff -u -r1.10 TemplateWizardIterImpl.java --- openide/loaders/src/org/openide/loaders/TemplateWizardIterImpl.java 6 Aug 2006 15:58:35 -0000 1.10 +++ openide/loaders/src/org/openide/loaders/TemplateWizardIterImpl.java 18 Jan 2007 10:12:32 -0000 @@ -57,7 +57,7 @@ /** Getter for the first panel. * @return the first and default panel */ - private WizardDescriptor.Panel firstPanel () { + private WizardDescriptor.Panel firstPanel () { return wizardInstance.templateChooser(); } @@ -114,7 +114,7 @@ /** Get the current panel. * @return the panel */ - public WizardDescriptor.Panel current() { + public WizardDescriptor.Panel current() { return showingPanel ? firstPanel () : getIterator ().current (); } Index: openide/loaders/src/org/openide/loaders/TemplateWizardIteratorWrapper.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/TemplateWizardIteratorWrapper.java,v retrieving revision 1.2 diff -u -r1.2 TemplateWizardIteratorWrapper.java --- openide/loaders/src/org/openide/loaders/TemplateWizardIteratorWrapper.java 6 Aug 2006 15:58:35 -0000 1.2 +++ openide/loaders/src/org/openide/loaders/TemplateWizardIteratorWrapper.java 18 Jan 2007 10:12:32 -0000 @@ -29,7 +29,7 @@ * * @author Jiri Rechtacek */ -class TemplateWizardIteratorWrapper implements WizardDescriptor.Iterator, ChangeListener { +class TemplateWizardIteratorWrapper implements WizardDescriptor.Iterator, ChangeListener { private TemplateWizardIterImpl iterImpl; @@ -63,7 +63,7 @@ /** Get the current panel. * @return the panel */ - public WizardDescriptor.Panel current() { + public WizardDescriptor.Panel current() { return iterImpl.current (); } @@ -143,19 +143,19 @@ return iterImpl.instantiate (handle); } - static class InstantiatingIterator extends TemplateWizardIteratorWrapper implements WizardDescriptor.InstantiatingIterator { + static class InstantiatingIterator extends TemplateWizardIteratorWrapper implements WizardDescriptor.InstantiatingIterator { public InstantiatingIterator (TemplateWizardIterImpl it) { super (it); } } - static class AsynchronousInstantiatingIterator extends InstantiatingIterator implements WizardDescriptor.AsynchronousInstantiatingIterator { + static class AsynchronousInstantiatingIterator extends InstantiatingIterator implements WizardDescriptor.AsynchronousInstantiatingIterator { public AsynchronousInstantiatingIterator (TemplateWizardIterImpl it) { super (it); } } - static class ProgressInstantiatingIterator extends InstantiatingIterator implements WizardDescriptor.ProgressInstantiatingIterator { + static class ProgressInstantiatingIterator extends InstantiatingIterator implements WizardDescriptor.ProgressInstantiatingIterator { private TemplateWizardIterImpl itImpl; public ProgressInstantiatingIterator (TemplateWizardIterImpl it) { super (it); Index: openide/loaders/src/org/openide/loaders/TemplateWizardPanel1.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/TemplateWizardPanel1.java,v retrieving revision 1.3 diff -u -r1.3 TemplateWizardPanel1.java --- openide/loaders/src/org/openide/loaders/TemplateWizardPanel1.java 1 Jul 2006 09:08:23 -0000 1.3 +++ openide/loaders/src/org/openide/loaders/TemplateWizardPanel1.java 18 Jan 2007 10:12:32 -0000 @@ -28,7 +28,7 @@ * * @author Jiri Rechtacek */ -final class TemplateWizardPanel1 implements WizardDescriptor.Panel { +final class TemplateWizardPanel1 implements WizardDescriptor.Panel { private TemplateWizard1 templateWizard1UI; /** listener to changes in the wizard */ private ChangeListener listener; @@ -101,7 +101,7 @@ * This method can be called multiple times on one instance of WizardDescriptor.Panel. * @param settings the object representing wizard panel state, as originally supplied to {@link WizardDescriptor#WizardDescriptor(WizardDescriptor.Iterator,Object)} */ - public void readSettings(Object settings) { + public void readSettings(WizardDescriptor settings) { getPanelUI ().implReadSettings (settings); } @@ -114,7 +114,7 @@ * This method can be called multiple times on one instance of WizardDescriptor.Panel. * @param settings the object representing a settings of the wizard */ - public void storeSettings(Object settings) { + public void storeSettings(WizardDescriptor settings) { getPanelUI ().implStoreSettings (settings); } Index: openide/loaders/src/org/openide/loaders/TemplateWizardPanel2.java =================================================================== RCS file: /shared/data/ccvs/repository/openide/loaders/src/org/openide/loaders/TemplateWizardPanel2.java,v retrieving revision 1.5 diff -u -r1.5 TemplateWizardPanel2.java --- openide/loaders/src/org/openide/loaders/TemplateWizardPanel2.java 2 Aug 2006 06:53:33 -0000 1.5 +++ openide/loaders/src/org/openide/loaders/TemplateWizardPanel2.java 18 Jan 2007 10:12:32 -0000 @@ -27,7 +27,7 @@ * * @author Jiri Rechtacek */ -final class TemplateWizardPanel2 implements WizardDescriptor.FinishablePanel { +final class TemplateWizardPanel2 implements WizardDescriptor.FinishablePanel { private TemplateWizard2 templateWizard2UI; /** listener to changes in the wizard */ private ChangeListener listener; @@ -111,7 +111,7 @@ * by the wizard are not valid. * */ - public void readSettings(Object settings) { + public void readSettings(WizardDescriptor settings) { this.settings = (WizardDescriptor)settings; getPanelUI ().implReadSettings (settings); } @@ -130,7 +130,7 @@ * @param settings the object representing wizard panel state * */ - public void storeSettings(Object settings) { + public void storeSettings(WizardDescriptor settings) { getPanelUI ().implStoreSettings (settings); this.settings = null; }