Package org.jamesii.core.model.symbolic

Examples of org.jamesii.core.model.symbolic.SymbolicModelException


    this.currentHighlighter = highlighters.get(0);
    this.highlighters = highlighters;
    this.infoProviders = infoProviders;

    if (currentHighlighter == null || model == null) {
      throw new SymbolicModelException(
          "Model, ModelManager, Highlighter can't be null!");
    }
  }
View Full Code Here


      int caretPos = editor.getCaretPosition();
      document =
          (IDocument<Object>) getModel().getAsDocument(
              currentHighlighter.getDocumentClass());
      if (document == null) {
        throw new SymbolicModelException("Could not convert model to document!");
      }

      String text = (String) document.getContent();
      if (text == null) {
        throw new SymbolicModelException(
            "Given model does not support a textual symbolic model!");
      }
      editor.setText(text);
      editor.setCaretPosition(caretPos);
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jamesii.core.model.symbolic.SymbolicModelException

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.