예제 #1
0
 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);
   }
 }
예제 #2
0
  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();
 }