use of edu.mit.csail.sdg.alloy4.OurBorder in project org.alloytools.alloy by AlloyTools.
the class SimpleGUI method notifyChange.
/**
* Updates the status bar at the bottom of the screen.
*/
private Runner notifyChange() {
if (wrap)
return wrapMe();
commands = null;
if (text == null)
// If this was called prior to the "text" being fully
return null;
// initialized
OurSyntaxWidget t = text.get();
if (Util.onMac())
frame.getRootPane().putClientProperty("windowModified", Boolean.valueOf(t.modified()));
if (t.isFile())
frame.setTitle(t.getFilename());
else
frame.setTitle("Alloy Analyzer " + Version.version());
toolbar.setBorder(new OurBorder(false, false, text.count() <= 1, false));
int c = t.getCaret();
int y = t.getLineOfOffset(c) + 1;
int x = c - t.getLineStartOffset(y - 1) + 1;
status.setText("<html> Line " + y + ", Column " + x + (t.modified() ? " <b style=\"color:#B43333;\">[modified]</b></html>" : "</html>"));
return null;
}
Aggregations