Examples of commentType


Examples of com.puppetlabs.xtext.dommodel.formatter.comments.ICommentConfiguration.CommentType

  @Override
  public boolean format(StyleSet styleSet, IDomNode dom, ITextFlow flow, ILayoutContext context) {
    RegionMatch match = intersect(dom, context);
    if(match.isInside()) {
      if(match.isContained() && !context.isWhitespacePreservation()) {
        CommentType commentType = commentConfiguration.classify(dom);
        ICommentFormatterAdvice advice = commentConfiguration.getFormatterAdvice(commentType);
        if(!advice.enabled() || CommentType.Unknown == commentType) {
          flow.appendText(dom.getText(), true);
          return true;
        }
View Full Code Here

Examples of no.ugland.utransprod.model.CommentType

     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      String labelText;
      String heading;
      CommentType commentType;
      if (checkBoxClosed.isSelected()) {
        commentType = CommentTypeUtil.getCommentType("Lukking");
        labelText = "Skriv kommentar til lukking";
        heading = "Lukking";
      } else {
View Full Code Here

Examples of no.ugland.utransprod.model.CommentType

    public static CommentType getCommentType(String commentTypeName){
        initCommentTypes();
        return commentTypeMap.get(commentTypeName);
    }
    public static boolean hasCommentType(List<CommentType> commentTypes,String commentTypeName){
        CommentType commentType = getCommentType(commentTypeName);
        if(commentType!=null){
            return commentTypes.contains(commentType);
        }
        return false;
    }
View Full Code Here

Examples of org.aavso.tools.vstar.data.CommentType

    if (cc != null) {
      origString = cc;
      for (char c : cc.toCharArray()) {
        if (c != ' ') {
          CommentType commentCode = CommentType
              .getTypeFromFlag(String.valueOf(c));

          if (commentCode != CommentType.OTHER) {
            commentcodes.add(commentCode);
          } else {
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

    private void addSpecial(SimpleNode node, Object special, boolean after) {
        if (special instanceof Token) {
            Token t = (Token) special;
            if (t.toString().trim().startsWith("#")) {
                commentType comment = new commentType(t.image.trim());
                comment.beginColumn = t.beginColumn;
                comment.beginLine = t.beginLine;
                special = comment;

                if (node.beginLine != comment.beginLine) {
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

     * Adds the special tokens as tokens in the document.
     */
    private void writeSpecials(SimpleNode node, List<Object> specials) {
        for (Object c : specials) {
            if (c instanceof commentType) {
                commentType comment = (commentType) c;
                doc.add(comment.beginLine, comment.beginColumn, comment.id, comment);

            } else if (c instanceof Name) {
                Name name = (Name) c;
                doc.add(name.beginLine, name.beginColumn, name.id, name);
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

            writtenComment = true; //make it as if we've written it
            return indent;
        }

        ILinePart2 iLinePart2 = (ILinePart2) linePart;
        commentType commentType = (commentType) linePart.getToken();
        int col = commentType.beginColumn;
        if (col == 1) { //yes, our indexing starts at 1.
            lastWasComment = true;
            writtenComment = true;
            writeStateV2.writeRaw(iLinePart2.getString());
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

                return ((NameTok) n.name).id;
            }
        }

        if (node instanceof commentType) {
            commentType type = (commentType) node;
            return type.id;
        }

        if (node instanceof excepthandlerType) {
            excepthandlerType type = (excepthandlerType) node;
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

    @Override
    protected void doAddNode(ASTEntry entry) {
        SimpleNode node = entry.node;

        if (node instanceof commentType) {
            commentType type = (commentType) node;
            if (type.beginColumn == 1) {
                entry.parent = null; //top-level
            } else {

                //try to match it to some other indentation already set.
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.commentType

        if (specials == null || isInAssign) {
            return;
        }
        for (Object object : specials) {
            if (object instanceof commentType) {
                commentType type = (commentType) object;
                String trimmed = type.id.trim();

                if (trimmed.startsWith("#---") || trimmed.endsWith("---")) {
                    atomic(type);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.