Package no.hal.jex.editor.commands

Examples of no.hal.jex.editor.commands.CreateExerciseFromTestAnnotationsCommand


  @Override
  protected Command createActionCommand(EditingDomain editingDomain, Collection selection) {
    if (selection.size() == 1) {
      Object owner = selection.iterator().next();
      if (owner instanceof Exercise) {
        return new CreateExerciseFromTestAnnotationsCommand((Exercise)owner, "tests");
      }
    }
    return UnexecutableCommand.INSTANCE;
  }
View Full Code Here

TOP

Related Classes of no.hal.jex.editor.commands.CreateExerciseFromTestAnnotationsCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.