-
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#226 Comment formatting - test, refactoring
- Loading branch information
Showing
11 changed files
with
645 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
5 changes: 2 additions & 3 deletions
5
src/main/java/krasa/formatter/eclipse/EclipseFormatterAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package krasa.formatter.eclipse; | ||
|
||
import com.intellij.openapi.diagnostic.Logger; | ||
import com.intellij.pom.java.LanguageLevel; | ||
import krasa.formatter.exception.FileDoesNotExistsException; | ||
|
||
public abstract class EclipseFormatterAdapter { | ||
protected final Logger LOG = Logger.getInstance(this.getClass().getName()); | ||
|
||
public abstract String format(String text, int startOffset, int endOffset, LanguageLevel level) | ||
public abstract String format(int kind, String text, int startOffset, int length, int indentationLevel, String lineSeparator, String languageLevel) | ||
throws FileDoesNotExistsException; | ||
|
||
protected String getErrorMessage(LanguageLevel effectiveLanguageLevel) { | ||
protected String getErrorMessage(String effectiveLanguageLevel) { | ||
return "languageLevel=" + effectiveLanguageLevel; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.