Package org.eclipse.jdt.internal.formatter.align

Examples of org.eclipse.jdt.internal.formatter.align.Alignment.wasReset()


    boolean insideStringConcat = false;
    while (targetAlignment != null){
      boolean couldBreak = targetAlignment.tieBreakRule == Alignment.R_OUTERMOST ||
        (!insideStringConcat &&
            insideMessage > 0 && targetAlignment.kind == Alignment.MESSAGE_ARGUMENTS &&
            (!targetAlignment.wasReset() || previousKind != Alignment.MESSAGE_SEND));
      if (couldBreak && targetAlignment.couldBreak()){
        outerMostDepth = relativeDepth;
      }
      switch (targetAlignment.kind) {
        case Alignment.MESSAGE_ARGUMENTS:
View Full Code Here


        }
      } else if (targetAlignment.wasSplit) {
        // reset the nearest already broken outermost alignment.
        // Note that it's not done twice to avoid infinite loop while raising
        // the exception on an innermost alignment...
        if (!targetAlignment.wasReset()) {
          targetAlignment.reset();
          if (msgArgsDepth > alignmentException.relativeDepth) {
            alignmentException.relativeDepth = msgArgsDepth;
          }
          throw alignmentException;
View Full Code Here

    boolean insideStringConcat = false;
    while (targetAlignment != null){
      boolean couldBreak = targetAlignment.tieBreakRule == Alignment.R_OUTERMOST ||
        (!insideStringConcat &&
            insideMessage > 0 && targetAlignment.kind == Alignment.MESSAGE_ARGUMENTS &&
            (!targetAlignment.wasReset() || previousKind != Alignment.MESSAGE_SEND));
      if (couldBreak && targetAlignment.couldBreak()){
        outerMostDepth = relativeDepth;
      }
      switch (targetAlignment.kind) {
        case Alignment.MESSAGE_ARGUMENTS:
View Full Code Here

        }
      } else if (targetAlignment.wasSplit) {
        // reset the nearest already broken outermost alignment.
        // Note that it's not done twice to avoid infinite loop while raising
        // the exception on an innermost alignment...
        if (!targetAlignment.wasReset()) {
          targetAlignment.reset();
          if (msgArgsDepth > alignmentException.relativeDepth) {
            alignmentException.relativeDepth = msgArgsDepth;
          }
          throw alignmentException;
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.