Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
889da8f
implement Wire.end() for SAM core
sandeepmistry Aug 26, 2015
b64fec1
Add end callback for deinitialization on end
sandeepmistry Sep 29, 2015
e609e67
USB libraries: replace non-portable u8 with uint8_t
facchinm Jul 17, 2015
8e523df
sam: add HID library
facchinm Jul 17, 2015
77a7103
remove HID from core
facchinm Jul 17, 2015
dfd4119
port PluggableUSB to sam core
facchinm Jul 17, 2015
20b2a30
Added support to VID+PID specific build properties
Aug 26, 2015
7249361
Added support to Genuino boards (drivers, boards.txt entries, bootloa…
cmaglie Aug 26, 2015
b4f58a9
Release new boards as AVR core 1.6.8
cmaglie Aug 27, 2015
3dba83d
Update revisions.txt
Aug 27, 2015
83e1570
LoadVIDPIDSpecificPreferences was giving for granted that the attache…
Aug 28, 2015
a093f77
Update revisions.txt
Aug 28, 2015
00b059d
MacOSX: Home/End key preference was coded backwards. Fixed. See #3715
Aug 28, 2015
4dd07c9
Cleanup
Aug 31, 2015
bc26004
AVR: Faster Interrupts, no size change.
xxxajk Nov 3, 2014
bf32490
Added EXTERNAL_NUM_INTERRUPTS for AVR xxU2 series
cmaglie Aug 31, 2015
46e0dab
Added missing #ifdef in WInterrupts.c... (oops)
cmaglie Sep 1, 2015
333f295
...and also a leading ','... (oops 2)
cmaglie Sep 1, 2015
d7f7ddc
Call on onBoardOrPortChange after selectBoard in no GUI mode
sandeepmistry Sep 1, 2015
9b7930a
Added Ethernet.maintain() to examples
agdl Sep 2, 2015
a47fb77
Removed StringToIntRGB example
agdl Sep 3, 2015
cde3a14
fix OUT endpoints
facchinm Sep 4, 2015
548970b
Libraries in unknown categories get set as Uncategorized. Fixes #3732
Sep 8, 2015
438bf5a
Code cleanup
Sep 8, 2015
48f8c64
Editor is now able to find a commented line even if // was not writte…
Sep 8, 2015
90f7290
Proxy selection was using old logic when url resulted in 302
Sep 9, 2015
4e1f656
Fixed DNSClient::inet_aton function.
cmaglie Aug 24, 2015
8b8796e
Added IPAddress::fromString(....) function
cmaglie Sep 9, 2015
f8d88e0
Boards Manager: if a tool is not resolvable, print a warning and DON'…
Sep 11, 2015
aed2d2d
Removed spourious arduino-builder folder
Sep 14, 2015
43ae8c0
Update translations
Sep 14, 2015
f1d3254
Upgraded rsyntaxtextarea to 2.5.8
Sep 14, 2015
905280a
Forgot to update windows config*.xml files
Sep 14, 2015
769c8a7
New compiler
Aug 31, 2015
a48ee45
Update revisions.txt
Sep 14, 2015
9130883
Windows: fixing permissions problems
Sep 14, 2015
e04efce
Updating arduino-builder to 1.0.0-beta4
Sep 15, 2015
c13b9f5
Adding preprocessing recipes to AVR core
Sep 15, 2015
d6fe9f0
Updating arduino-builder to 1.0.0-beta5
Sep 15, 2015
936605a
arduino-builder arguments must be passed in separate cmd.addArgument …
Sep 16, 2015
2f8fc9e
Better to separate arguments only when specifying paths, otherwise we…
Sep 16, 2015
06667c8
Faster recompilation of unsaved sketches
Sep 16, 2015
c89d610
Updating arduino-builder to 1.0.0-beta6
Sep 16, 2015
4b5fd9a
Updating arduino-builder to 1.0.0-beta7
Sep 17, 2015
2117062
Updating splashscreen text ONLY if visible. Fixes #3808
Sep 17, 2015
46ad08e
MacOSX: restored CTRL+A=begin of line and CTRL+E=end of line. Fixes #…
Sep 17, 2015
3e4e781
If a token is of some COMMENT_* type, don't use keywords. Fixes #3532
Sep 17, 2015
26ecbd0
If may happen that the boardPort param given to setBoardPort is still…
Sep 17, 2015
8aadc6d
Code cleanup
Sep 17, 2015
28c32c9
Temboo library updated to 1.1.3
Sep 17, 2015
9bb7cd0
New editor: restored EOL markers. Fixes #3817
Sep 18, 2015
9e2d365
Build path is now a function of sketch path. This allows to recycle p…
Sep 18, 2015
1c8097a
Fixed wrong condition in turnOffPWM(..)
cmaglie Sep 15, 2015
563567c
Added categories to libraries
cmaglie Sep 18, 2015
c6470ea
Moved build artifacts into root build folder
cmaglie Sep 18, 2015
1f1b413
Fixed wrong category in EEPROM
cmaglie Sep 18, 2015
fc230a7
Ethernet use DNS in examples
eddyst Aug 25, 2015
35e477f
Updating arduino-builder to 1.0.0-beta8
Sep 18, 2015
0fc69fe
Updating arduino-builder to 1.0.0-beta9
Sep 18, 2015
5cb7500
Windows: fixed wrong sha file name
Sep 18, 2015
28770b7
Boards support and Library update check can be disabled from File > P…
Sep 18, 2015
aa15e2a
Returning a copy of installed libraries list, so clients can deal wit…
Sep 18, 2015
5d56230
Remove Raw HID definitions at wrong place
NicoHood Sep 20, 2015
24155d5
Fix HW Serial buffer size determination
NicoHood Sep 20, 2015
a2aec8d
Fix CDC Serial buffer size determination
NicoHood Sep 20, 2015
c32cb4f
Update revisions.txt
Sep 21, 2015
75676f6
pulseInLong: fix incorrect timeout handling
facchinm Sep 21, 2015
6763451
Updated translations. Some new languages graduated
Sep 21, 2015
cac2956
SAM: fix pulseInLong timeout using micros()
facchinm Sep 21, 2015
24db3a7
fix pulseInLong considering overflow
facchinm Sep 21, 2015
3975a46
Bridge lib: removing from this repo. It's downloaded at build time, j…
Sep 21, 2015
36ac619
Removing Robot* libraries from this repo. Downloaded at build time
Sep 21, 2015
5865561
Removing SpacebrewYun library from this repo. Downloaded at build time
Sep 21, 2015
f56122b
asd
Sep 21, 2015
cea7920
build.xml: target download-library converted to a macro, easier to read
Sep 21, 2015
d84f17a
Modified reference to Leonardo only in the examples
agdl Sep 21, 2015
383f233
Removed some old code, including PdePreprocessor and OldCompiler
Sep 21, 2015
6de5357
Examples menu: added group title. Fixes #3725
Sep 21, 2015
65ce6e3
Examples from some libs have been retired
Sep 22, 2015
4813a62
Updating arduino-builder to 1.0.0-beta10
Sep 22, 2015
97178f2
Made an arduino-builder message easier to understand
Sep 22, 2015
c63f619
Updating arduino-builder to 1.0.0-beta11
Sep 22, 2015
d14d9aa
HID: Renamed fields in HIDDescriptorListNode and HID_Descriptor
cmaglie Sep 21, 2015
8795408
HID: merged HID_Descriptor into HIDDescriptorListNode
cmaglie Sep 21, 2015
d57ec68
Updating arduino-builder to 1.0.0-beta12
Sep 23, 2015
363f252
Allow per-platform keywords.txt
PaulStoffregen Sep 23, 2015
b83cef8
Fixed eclipse classhpath
cmaglie Sep 23, 2015
7b9ad72
Fixed typo in Ethernet lib
cmaglie Sep 23, 2015
482ec0d
Updated translations
Sep 23, 2015
e7f5124
removing unused variable from Stepper
ccoenen Sep 23, 2015
40e93bc
Updating arduino-builder to 1.0.0-beta14
Sep 24, 2015
44a60cf
SAM: Stop build on unresolved symbols
cmaglie Sep 23, 2015
d52c920
{build.path}/{archive_file} is now {archive_file_path} in recipe.ar.p…
Sep 24, 2015
3187cb8
Removing Esplora library from this repo. Downloaded at build time
Sep 24, 2015
d80efbb
Added pulseInLong Keyword
agdl Sep 24, 2015
3db5e9c
Adding .elf extension to compiled sketch list
Sep 24, 2015
8bd0ddc
Fixed another regression in IPAddress.h
cmaglie Sep 24, 2015
56a6156
Allow highlighting line with error even if gcc reports full path to file
Sep 24, 2015
0b6d6eb
OSX: attempting to draw a black dot in the upper left red button. Fix…
Sep 24, 2015
3f3be29
compile_everything.bash
Sep 24, 2015
64765e5
Updating arduino-builder to 1.0.0-beta15
Sep 25, 2015
ae4f0c0
If a package is already defined, don't replace it with the one found …
Sep 25, 2015
c6217ab
Whoops, local packages were loaded at all. Fixed
Sep 25, 2015
505ad45
Fallback to stock library_index.json file if the copy in .arduino15 i…
Sep 25, 2015
e81fbc0
Fixed license headers. See https://github.com/arduino/Arduino/pull/3498
Sep 25, 2015
b3c7400
Implemented Go to Line menu and shortcut CTRL+L. Fixes #976
Sep 25, 2015
cc815da
SAM: small cosmetic fix to platform.txt
cmaglie Sep 23, 2015
43ef818
SAM: tidy up -mcpu and -mthumb params in platform.txt
cmaglie Sep 23, 2015
8c547cf
Added Arduino Zero exclusion to README
agdl Sep 28, 2015
75a6e0f
[HID] fixed wrong datatype for descriptor len
cmaglie Sep 28, 2015
07798dd
[HID] added 'const' qualifier in HID initialization
cmaglie Sep 28, 2015
0724fc1
Fixed typo in Keyboard API
NicoHood Sep 28, 2015
273188e
Fix compiler warnings in USBCore.cpp
NicoHood Sep 24, 2015
92b0a33
Fix compiler warning in CDC.cpp
NicoHood Sep 24, 2015
fd14e38
Remove Compiler Warning in Tone.cpp
NicoHood Sep 25, 2015
4b5feac
Removed Timer warnings when Timer 2 is not present
NicoHood Sep 25, 2015
da32361
Removed not needed Timer warning
NicoHood Sep 25, 2015
b52148e
[HID] Changed 'u8' to 'uint8_t' in definitions
cmaglie Sep 28, 2015
60c7005
[HID] Removed unused PUSBReturn structure
cmaglie Sep 28, 2015
6a44110
[HID] Added missing const in length
cmaglie Sep 28, 2015
167437d
[HID] Added missing return in HID.begin()
cmaglie Sep 28, 2015
338e952
Updating arduino-builder to 1.0.0-beta16
Sep 28, 2015
1de509d
Updating arduino-builder to 1.0.0-beta17
Sep 29, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ hardware/arduino/bootloaders/caterina_LUFA/Caterina.elf
hardware/arduino/bootloaders/caterina_LUFA/Caterina.eep
hardware/arduino/bootloaders/caterina_LUFA/.dep/
build/*.zip
build/*.tar.bz2
build/windows/work/
build/windows/*.zip
build/windows/*.tgz
Expand Down
3 changes: 1 addition & 2 deletions app/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<classpathentry excluding="processing/app/tools/format/" kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="lib/ecj.jar"/>
<classpathentry kind="lib" path="lib/apple.jar"/>
<classpathentry kind="lib" path="lib/bcpg-jdk15on-152.jar"/>
<classpathentry kind="lib" path="lib/bcprov-jdk15on-152.jar"/>
Expand All @@ -29,6 +28,6 @@
<classpathentry kind="lib" path="test-lib/jcip-annotations-1.0.jar"/>
<classpathentry kind="lib" path="lib/commons-lang3-3.3.2.jar"/>
<classpathentry kind="lib" path="lib/java-semver-0.8.0.jar"/>
<classpathentry kind="lib" path="lib/rsyntaxtextarea-2.5.7.1+arduino.jar"/>
<classpathentry kind="lib" path="lib/rsyntaxtextarea-2.5.8.1+arduino.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Empty file removed app/lib/ecj.LICENSE.EPL-1.0.txt
Empty file.
Binary file removed app/lib/ecj.jar
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/cc/arduino/ConsoleOutputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ private void clearBuffer() {
if (document != null) {
SwingUtilities.invokeLater(() -> {
try {
String lineWithoutSlashR = line.replace("\r\n", "\n").replace("\r", "\n");
String lineWithoutCR = line.replace("\r\n", "\n").replace("\r", "\n");
int offset = document.getLength();
document.insertString(offset, lineWithoutSlashR, attributes);
document.insertString(offset, lineWithoutCR, attributes);
} catch (BadLocationException ble) {
//ignore
}
Expand Down
2 changes: 0 additions & 2 deletions app/src/cc/arduino/packages/formatter/AStyle.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */

/*
* This file is part of Arduino.
*
Expand Down
114 changes: 114 additions & 0 deletions app/src/cc/arduino/view/GoToLineNumber.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8" ?>

<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="tr(&quot;Go to line&quot;)" type="code"/>
</Property>
<Property name="modal" type="boolean" value="true"/>
<Property name="resizable" type="boolean" value="false"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="lineNumber" pref="203" max="32767" attributes="0"/>
</Group>
<Group type="102" alignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="ok" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="cancel" min="-2" max="-2" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="lineNumber" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="32767" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="cancel" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="ok" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="tr(&quot;Line number:&quot;)" type="code"/>
</Property>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
</AuxValues>
</Component>
<Component class="javax.swing.JTextField" name="lineNumber">
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="lineNumberActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JButton" name="cancel">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="tr(&quot;Cancel&quot;)" type="code"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cancelActionPerformed"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
</AuxValues>
</Component>
<Component class="javax.swing.JButton" name="ok">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="tr(&quot;OK&quot;)" type="code"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="okActionPerformed"/>
</Events>
<AuxValues>
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
</AuxValues>
</Component>
</SubComponents>
</Form>
148 changes: 148 additions & 0 deletions app/src/cc/arduino/view/GoToLineNumber.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
/*
* This file is part of Arduino.
*
* Arduino is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* As a special exception, you may use this file as part of a free software
* library without restriction. Specifically, if other files instantiate
* templates or use macros or inline functions from this file, or you compile
* this file and link it with other files to produce an executable, this
* file does not by itself cause the resulting executable to be covered by
* the GNU General Public License. This exception does not however
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
*/

package cc.arduino.view;

import processing.app.Base;
import processing.app.Editor;

import java.awt.event.WindowEvent;

import static processing.app.I18n.tr;

public class GoToLineNumber extends javax.swing.JDialog {

private final Editor editor;

public GoToLineNumber(Editor editor) {
super(editor);
this.editor = editor;
initComponents();

Base.registerWindowCloseKeys(getRootPane(), this::cancelActionPerformed);
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

javax.swing.JLabel jLabel1 = new javax.swing.JLabel();
lineNumber = new javax.swing.JTextField();
javax.swing.JButton cancel = new javax.swing.JButton();
javax.swing.JButton ok = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle(tr("Go to line"));
setModal(true);
setResizable(false);

jLabel1.setText(tr("Line number:"));

lineNumber.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
lineNumberActionPerformed(evt);
}
});

cancel.setText(tr("Cancel"));
cancel.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cancelActionPerformed(evt);
}
});

ok.setText(tr("OK"));
ok.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
okActionPerformed(evt);
}
});

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(lineNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(ok)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(cancel)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(lineNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(cancel)
.addComponent(ok))
.addContainerGap())
);

pack();
}// </editor-fold>//GEN-END:initComponents

private void okActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okActionPerformed
try {
int line = Integer.parseInt(lineNumber.getText());
editor.goToLine(line);
cancelActionPerformed(evt);
} catch (Exception e) {
// ignore
}
}//GEN-LAST:event_okActionPerformed

private void cancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelActionPerformed
dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
}//GEN-LAST:event_cancelActionPerformed

private void lineNumberActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lineNumberActionPerformed
okActionPerformed(evt);
}//GEN-LAST:event_lineNumberActionPerformed

// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JTextField lineNumber;
// End of variables declaration//GEN-END:variables
}
6 changes: 5 additions & 1 deletion app/src/cc/arduino/view/SplashScreenHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ public void splashText(String str) {
splashGraphics.drawString(str, (int) splashTextArea.getX() + 10, (int) splashTextArea.getY() + (30 - metrics.getHeight()) + 4);

// make sure it's displayed
splash.update();
synchronized (SplashScreen.class) {
if (splash.isVisible()) {
splash.update();
}
}
}

public void close() {
Expand Down
Loading