Skip to content

Update Sketch menu in IDE GUI #2331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
5b39261
Explicitely store a layout type for a library
matthijskooijman Jul 7, 2014
cf9f437
Let Sketch.getExtensions() return a List
matthijskooijman Jul 8, 2014
715aeac
Use SketchCode.isExtension in more places
matthijskooijman Jul 8, 2014
dc03e32
Don't store the extension in SketchCode
matthijskooijman Jul 8, 2014
c314bbe
Removed unused Base.getBoardsViaNetwork() and related member.
cmaglie Aug 26, 2014
8f71b15
Refactoring of Theme class
cmaglie Jan 26, 2014
0f18f60
Removed some warning from Editor class
cmaglie Jan 26, 2014
3e75412
Refactored and simplified EditorConsole class.
cmaglie Jan 26, 2014
220e2e6
Splitted GUI and Streams in EditorConsole
cmaglie Jan 26, 2014
5f087f9
Removed some trivial warnings
cmaglie Jan 26, 2014
3b5328b
Rationalized Preferences and Theme classes.
cmaglie Jan 31, 2014
083fb38
Removed GUI dependencies from SketchCode class.
bitron Jan 30, 2014
e471fdd
Make Compiler independent from Sketch.
bitron Jan 30, 2014
20c6fc1
Reintroduced 'Next Tab' and 'Prev Tab' click actions
cmaglie Feb 1, 2014
7b69298
Applied (a sort of) decorator pattern to SketchCodeDoc.
cmaglie Feb 1, 2014
d97e2c1
Made Compiler and PdePreprocessor independent from Preferences.
bitron Apr 5, 2014
20c1130
Moved some code from Sketch to SketchData.
bitron Apr 7, 2014
5febb87
Created PApplet and PConstants wrapper classes.
cmaglie Aug 19, 2014
d8f4a98
Drop dependency from processing-core project.
cmaglie Aug 19, 2014
17afb0c
Refactored OS detection subroutine.
cmaglie Aug 19, 2014
5948f29
Moved version info to BaseNoGui new class (work in progress).
bitron Aug 21, 2014
20b9b0f
Moved getAvrBasePath() and related methods from Base to BaseNoGui (wo…
bitron Aug 21, 2014
77350e1
Moved packages, currentDirectory and portableFolder (and related meth…
bitron Aug 21, 2014
b63da18
Moved platform (and related methods) from Base to BaseNoGui (work in …
bitron Aug 21, 2014
2376e26
Moved getBoardPreferences() and related methods from Base to BaseNoGu…
bitron Aug 21, 2014
0e55584
Moved saveFile() from Base to BaseNoGui (work in progress).
bitron Aug 21, 2014
0095684
Moved libraries and importToLibraryTable (and related methods) from B…
bitron Aug 21, 2014
056f849
Moved back some code from BaseNoGui to Base in order to remove showWa…
bitron Aug 21, 2014
62159f3
Changed dependency from Preferences to PreferencesData in processing.…
bitron Aug 21, 2014
65b0569
Moved some initialization code from Base to BaseNoGui.
bitron Aug 21, 2014
b55e6d1
Removed dependency from Base in the uploaders.
bitron Aug 21, 2014
ede3ce9
Added notifier interface and classes.
bitron Aug 21, 2014
1728f4e
Removed dependency from Base in PreferencesData.
bitron Aug 21, 2014
5389440
Removed leftover references to Base in BaseNoGui.
bitron Aug 21, 2014
53c80b6
Removed unused parameter (base).
bitron Aug 21, 2014
f7de149
Renamed user notifier classes.
bitron Aug 21, 2014
22206da
Changed UserNotifier from interface to abstract class.
bitron Aug 21, 2014
ca22e9e
Moved showWarning() implementation from Base to BaseNoGui.
bitron Aug 21, 2014
39f3e5d
Removed dependency from Base in all Platform classes.
bitron Aug 22, 2014
78916e6
Removed self class references from Base.
bitron Aug 22, 2014
1d3ef88
Removed dependency from Preferences in a bunch of classes.
bitron Aug 22, 2014
37fd154
Moved some code from Base to BaseNoGui and removed leftover self clas…
bitron Aug 22, 2014
32d3a87
Moved the sketch building code from Sketch to Compiler.
bitron Aug 22, 2014
6d11e73
Moved the sketch structure check code from Editor to SketchData.
bitron Aug 22, 2014
5a46751
Added sketch structure check to the build method of Compile.
bitron Aug 22, 2014
e78911e
Moved discoveryManager from Base to BaseNoGui.
bitron Aug 22, 2014
e9bceff
Fixed wrong sketch structure check in Editor and SketchData.
bitron Aug 22, 2014
af3326a
Moved removeDescendants() and removeDir() from Base to BaseNoGui.
bitron Aug 22, 2014
3e91bd2
Removed last dependency from Base in processing.app.Platform.
bitron Aug 22, 2014
2cc58c4
Moved isSanitaryName() and sanitizeName() from Sketch to BaseNoGui.
bitron Aug 22, 2014
377656c
Moved countLines() and loadFile() from Base to BaseNoGui.
bitron Aug 22, 2014
4105994
Split UploaderAndMonitorFactory in two distinct classes.
bitron Aug 25, 2014
1169806
Moved last showError() method for Base to BaseNoGui.
bitron Aug 25, 2014
e0520c6
Moved the sketch uploading code from Sketch to Compiler.
bitron Aug 25, 2014
871d625
Removed leftover dependency from SketchCodeDocument in SketchData.
bitron Aug 25, 2014
bb9df7f
Moved onBoardOrPortChange() and related members/methods from Base to …
bitron Aug 25, 2014
5cdce58
Moved some parameter processing methods from Base to BaseNoGui.
bitron Aug 25, 2014
1ce9423
Moved some code from Base to BaseNoGui into new getSketchbookPath() m…
bitron Aug 26, 2014
d433ea4
Moved portableSketchbookFolder from Base to BaseNoGui.
bitron Aug 26, 2014
c762cd5
Refactored Base.getDefaultSketchbookFolder() method.
bitron Aug 26, 2014
61dbba6
Moved getDefaultSketchbookFolder() from Base to BaseNoGui and other m…
bitron Aug 26, 2014
7700b49
Moved commandline parsing code from Base/BaseNoGui to new Commandline…
bitron Aug 26, 2014
672113b
Moved getBuildFolder() and related members/methods from Base to BaseN…
bitron Aug 26, 2014
5812f2a
Added main() and init() methods to BaseNoGui.
bitron Sep 10, 2014
2007470
Updated version number.
bitron Sep 18, 2014
543d511
Fixed wrong sketch structure check.
bitron Sep 18, 2014
a52efd7
Removed inheritance relationship between SketchCodeDocument and Sketc…
bitron Sep 18, 2014
3c78073
Fixed bug introduced with GUI refactor.
bitron Sep 19, 2014
3752bc6
Fixed another bug introduced with GUI refactor.
bitron Sep 19, 2014
2272a03
Added new command line options.
bitron Sep 19, 2014
7e488ab
Modified preferences initialization in BaseNoGui.
bitron Sep 23, 2014
c9cf641
Split IDE into 2 projects.
cmaglie Sep 23, 2014
b2b5763
arduino-core project is now correctly compiled through ant build script
cmaglie Sep 24, 2014
d1455ef
Removed no more used 'core' project
cmaglie Sep 24, 2014
dd22a17
Check for Arduino revision in BaseNoGui.java instead of Base.java
cmaglie Sep 24, 2014
eb68760
Changed core JAR file name in Info.plist file.
bitron Sep 24, 2014
9c7f211
Updated core project reference in the Eclipse root .classpath file.
bitron Sep 24, 2014
83a6c23
Moved specialized Platform classes and related resources to the 'ardu…
bitron Sep 25, 2014
65a47e2
Created 'arduino-builder' project.
bitron Sep 25, 2014
831dcec
Update Sketch menu in IDE GUI
championswimmer Sep 23, 2014
2ffadd2
also enable save hex command for windows properly
championswimmer Sep 27, 2014
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<classpathentry excluding="processing/app/tools/format/|processing/app/tools/format/src/|processing/app/Trace.java|processing/app/RunnerClassLoader.java" kind="src" path="app/src"/>
<classpathentry kind="src" path="app/test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/processing-core"/>
<classpathentry kind="lib" path="app/lib/antlr.jar"/>
<classpathentry kind="lib" path="app/lib/apple.jar"/>
<classpathentry kind="lib" path="app/lib/ecj.jar"/>
Expand All @@ -21,5 +20,6 @@
<classpathentry kind="lib" path="app/lib/jmdns-3.4.1.jar"/>
<classpathentry kind="lib" path="app/lib/jsch-0.1.50.jar"/>
<classpathentry kind="lib" path="app/lib/jssc-2.8.0.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
<classpathentry kind="output" path="app/bin"/>
</classpath>
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
app/bin/
app/pde.jar
build/macosx/work/
core/bin/
core/core.jar
arduino-core/bin/
arduino-core/arduino-core.jar
hardware/arduino/bootloaders/caterina_LUFA/Descriptors.o
hardware/arduino/bootloaders/caterina_LUFA/Descriptors.lst
hardware/arduino/bootloaders/caterina_LUFA/Caterina.sym
Expand Down
2 changes: 1 addition & 1 deletion app/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<classpathentry kind="lib" path="lib/antlr.jar"/>
<classpathentry kind="lib" path="lib/jna.jar"/>
<classpathentry kind="lib" path="lib/ecj.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/processing-core"/>
<classpathentry kind="lib" path="lib/apple.jar"/>
<classpathentry kind="lib" path="lib/commons-codec-1.7.jar"/>
<classpathentry kind="lib" path="lib/commons-exec-1.1.jar"/>
Expand All @@ -14,5 +13,6 @@
<classpathentry kind="lib" path="lib/jmdns-3.4.1.jar"/>
<classpathentry kind="lib" path="lib/jsch-0.1.50.jar"/>
<classpathentry kind="lib" path="lib/jssc-2.8.0.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
<classpathentry kind="output" path="bin"/>
</classpath>
9 changes: 3 additions & 6 deletions app/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<include name="*.jar"/>
</fileset>
<pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement path="../core/core.jar"/>
<pathelement path="../arduino-core/arduino-core.jar"/>
</path>

<path id="class.path.test">
Expand All @@ -25,9 +25,9 @@

<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="../core/core.jar" />
<available file="../arduino-core/arduino-core.jar" />
</condition>
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../core/core.jar" />
<fail unless="core-built" message="Please build the Arduino-core library first and make sure it sits in ../arduino-core/arduino-core.jar" />

<mkdir dir="bin" />

Expand Down Expand Up @@ -89,9 +89,6 @@
includeAntRuntime="false"
debug="true"
classpathref="class.path" />
<copy todir="bin" overwrite="true" verbose="true">
<fileset dir="src" includes="**/*.properties" />
</copy>
</target>

<target name="test" depends="compile" description="Runs the test">
Expand Down
17 changes: 17 additions & 0 deletions app/src/cc/arduino/packages/MonitorFactory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package cc.arduino.packages;

import processing.app.AbstractMonitor;
import processing.app.NetworkMonitor;
import processing.app.SerialMonitor;

public class MonitorFactory {

public AbstractMonitor newMonitor(BoardPort port) {
if ("network".equals(port.getProtocol())) {
return new NetworkMonitor(port);
}

return new SerialMonitor(port);
}

}
3 changes: 2 additions & 1 deletion app/src/processing/app/AbstractMonitor.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package processing.app;

import processing.app.debug.MessageConsumer;
import processing.core.PApplet;
import processing.app.legacy.PApplet;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
Expand All @@ -14,6 +14,7 @@

import static processing.app.I18n._;

@SuppressWarnings("serial")
public abstract class AbstractMonitor extends JFrame implements MessageConsumer {

protected final JLabel noLineEndingAlert;
Expand Down
Loading