public void extractPatternInfo(Pattern pattern) {
      if (pattern.getType() != PatternType.STATE) {
        // execute a command on the context that will notify the user about this
      }

      selectedPatternName.setText(pattern.getName());
      selectedPatternClass.setText(pattern.getPatternClass());
      selectedPatternId.setText(pattern.getId());
      selectedPatternDescription.setText(pattern.getDescription());
      selectedPatternQuestion.setText(pattern.getQuestion());
    }
 public void patternSelected(Pattern p) {
   if (p.getType() == PatternType.PROPERTY) {}
 }