if(sCurrentActiveTask != null) { this.context = ((ITask) availableTasks.get(sCurrentActiveTask)).getContext(); String[] sErrors = ((ITask) availableTasks.get(sCurrentActiveTask)).getErrors(); new ErrorDialog("WizardBase: Errors Encountered", "The following errors were reported by the task panel you just left", sErrors, new String[] { }); }
if ( sCurrentActiveTask != null ) { this.context = ( (ITask) availableTasks.get( sCurrentActiveTask ) ).getContext( ); String[] sErrors = ( (ITask) availableTasks.get( sCurrentActiveTask ) ).getErrors( ); if ( sErrors != null && sErrors.length > 0 ) { new ErrorDialog( "WizardBase: Errors Encountered", "The following errors were reported by the task panel you just left", sErrors, new String[]{} ); } }
    public void switchTo(String sTaskID)    {        // Update the context from the current task...if available        if(sCurrentActiveTask != null)        {            this.context = ((ITask) availableTasks.get(sCurrentActiveTask)).getContext();            String[] sErrors = ((ITask) availableTasks.get(sCurrentActiveTask)).getErrors();            new ErrorDialog("WizardBase: Errors Encountered", "The following errors were reported by the task panel you just left", sErrors, new String[] { });        }        // Clear any existing popup        if(shellPopup != null && !shellPopup.isDisposed())        {            shellPopup.close();        }        // Pass the errorHints if any have been reported by previous task        if(errorHints != null)        {            ((ITask) availableTasks.get(sTaskID)).setErrorHints(errorHints);        }        // Pass the context to the new task...so it can prepare its UI        ((ITask) availableTasks.get(sTaskID)).setContext(context);        // Clear errorHints        errorHints = null;        // Get the new UI and display it        Control c = ((ITask) availableTasks.get(sTaskID)).getUI(cmpTaskContainer);        slTaskContainer.topControl = c;        cmpTaskContainer.layout();        tasklist.setActive((String) vTaskLabels.get(vTaskIDs.indexOf(sTaskID)));        // Update current active task ID        sCurrentActiveTask = sTaskID;        // TODO: Handle enabling / disabling of Buttons    }