mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Fixes to compile under Java 1.5 (on my Linux machine).
This commit is contained in:
@ -2655,7 +2655,6 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
public TextAreaPopup() {
|
public TextAreaPopup() {
|
||||||
openURLItem = new JMenuItem("Open URL");
|
openURLItem = new JMenuItem("Open URL");
|
||||||
openURLItem.addActionListener(new ActionListener() {
|
openURLItem.addActionListener(new ActionListener() {
|
||||||
@Override
|
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
Base.openURL(clickedURL);
|
Base.openURL(clickedURL);
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ public class SyntaxUtilities
|
|||||||
Segment tag = stringToSegment(parse[1]);
|
Segment tag = stringToSegment(parse[1]);
|
||||||
Segment post = stringToSegment(parse[2]);
|
Segment post = stringToSegment(parse[2]);
|
||||||
|
|
||||||
if (pre.length()>0)
|
if (pre.count>0)
|
||||||
x = Utilities.drawTabbedText(pre, x, y, gfx, expander, 0);
|
x = Utilities.drawTabbedText(pre, x, y, gfx, expander, 0);
|
||||||
|
|
||||||
Font f = gfx.getFont();
|
Font f = gfx.getFont();
|
||||||
@ -219,7 +219,7 @@ public class SyntaxUtilities
|
|||||||
x = Utilities.drawTabbedText(tag, x, y, gfx, expander, 0);
|
x = Utilities.drawTabbedText(tag, x, y, gfx, expander, 0);
|
||||||
|
|
||||||
commentStyle.setGraphicsFlags(gfx, f);
|
commentStyle.setGraphicsFlags(gfx, f);
|
||||||
if (post.length()>0)
|
if (post.count>0)
|
||||||
x = Utilities.drawTabbedText(post, x, y, gfx, expander, 0);
|
x = Utilities.drawTabbedText(post, x, y, gfx, expander, 0);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user