Example #1
0
 public StsBotConfigEditor activeConfigEditor() {
   IEditorReference editor = workbenchContentsFinder.findActiveEditor();
   if (!(editor.getEditor(false) instanceof SpringConfigEditor)) {
     throw new WidgetNotFoundException("There is no active editor");
   }
   return new StsBotConfigEditor(editor, this);
 }
Example #2
0
  public List<StsBotConfigEditor> configEditors(Matcher<?> matcher) {
    List<IEditorReference> editorReferences = workbenchContentsFinder.findEditors(matcher);

    List<StsBotConfigEditor> editorBots = new ArrayList<StsBotConfigEditor>();
    for (IEditorReference editorReference : editorReferences) {
      editorBots.add(new StsBotConfigEditor(editorReference, this));
    }

    return editorBots;
  }