public void initWizard(Wizard w) { if (w instanceof WizMEName) { ToDoItem item = w.getToDoItem(); MModelElement me = (MModelElement) item.getOffenders().elementAt(0); String sug = me.getName(); String ins = "Change the name to something different."; ((WizMEName)w).setInstructions(ins); ((WizMEName)w).setSuggestion(sug); ((WizMEName)w).setMustEdit(true); } }
public void init() { super.init(); try { Environment.setUserProperty( Constants.WHATS_NEW_VERSION_VIEWED_PROPERTY_NAME, new StringProperty( Constants.WHATS_NEW_VERSION_VIEWED_PROPERTY_NAME, Environment.getQuollWriterVersion().getVersion())); } catch (Exception e) { Environment.logError("Unable to set the whats new version viewed property", e); } }
/** * Returns a reference to the current WizardModel for this Wizard component. * * @return The current WizardModel for this Wizard component. */ public WizardModel getWizardModel() { return wizard.getModel(); }