name that better explains its behavior

This commit is contained in:
Ben Fry
2015-05-19 16:36:38 -04:00
parent a554d7f356
commit dd0dadc845
2 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ import processing.app.Language;
* @author Manindra Moharana <me@mkmoharana.com>
*
*/
public class ErrorBar extends JPanel {
public class ErrorColumn extends JPanel {
/**
* Preferred height of the component
*/
@@ -133,7 +133,7 @@ public class ErrorBar extends JPanel {
}
public ErrorBar(JavaEditor editor, int height, JavaMode mode) {
public ErrorColumn(JavaEditor editor, int height, JavaMode mode) {
this.editor = editor;
this.preferredHeight = height;
this.errorCheckerService = editor.errorCheckerService;

View File

@@ -79,7 +79,7 @@ public class JavaEditor extends Editor {
// private EditorToolbar javaToolbar;
// private DebugToolbar debugToolbar;
private ErrorBar errorBar;
private ErrorColumn errorBar;
// protected XQConsoleToggle btnShowConsole;
// protected XQConsoleToggle btnShowErrors;
@@ -162,7 +162,7 @@ public class JavaEditor extends Editor {
// remove the text area temporarily
box.remove(2);
textAndError.setLayout(new BorderLayout());
errorBar = new ErrorBar(this, textarea.getMinimumSize().height, jmode);
errorBar = new ErrorColumn(this, textarea.getMinimumSize().height, jmode);
textAndError.add(errorBar, BorderLayout.EAST);
textarea.setBounds(0, 0, errorBar.getX() - 1, textarea.getHeight());
textAndError.add(textarea);