Skip to content

Autocomplete #3484

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 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0063898
refactoring of Sketck class and creation of BaseSketck class allowing
ricardojlrufino Jan 21, 2015
11f6eb0
State of the buttons (UNDO / REDO) is now in
ricardojlrufino Jan 23, 2015
4c83280
Trying to fix (unsuccessfully) support for the Japanese Input
ricardojlrufino Jan 23, 2015
83891fd
Removed old Japanese support files (perhaps the new java already support
ricardojlrufino Jan 23, 2015
13269a9
[Linux] Installation Script that creates shortcuts on the menu and
ricardojlrufino Jan 23, 2015
b07d636
Syntax highlighting Styles
ricardojlrufino Jan 23, 2015
0c466b0
New Editor based on RSyntaxTextArea (for autocomplete and syntax errors)
ricardojlrufino Jan 23, 2015
5834681
Improved rendering of the name of the tabs
ricardojlrufino Jan 23, 2015
0a2839e
Arduino IDE Launcher class
ricardojlrufino Jan 23, 2015
a181828
arduino-autocomplete module project
ricardojlrufino Jan 23, 2015
12c6b14
Refactoring sketche to support listeners, integration with autocomplete
ricardojlrufino Jan 23, 2015
9b64e70
Listeners to monitor changes in sketches and in the active libraries
ricardojlrufino Jan 23, 2015
00fc88a
Classes for the Log control and some utility classes
ricardojlrufino Jan 23, 2015
3cc9157
Correction in REGEX doing parser of compilation errors (in LINUX)
ricardojlrufino Jan 23, 2015
403133e
small refactoring on PdePreprocessor
ricardojlrufino Jan 23, 2015
3b8007a
[Important] Added line in the beginning, to the autocomplete detect
ricardojlrufino Jan 23, 2015
3a67523
Base - logs configuration and fix the icon on Linux
ricardojlrufino Jan 23, 2015
a7f6c51
Linux - improvements in the script to display icons correctly and spash
ricardojlrufino Jan 23, 2015
9e196f1
Fixes in the build scripts for autocomplete module
ricardojlrufino Jan 23, 2015
0f0ba70
improvement when adding items in autocomplete
ricardojlrufino Mar 8, 2015
aaf4273
Rename class PdeTokenMarker to SketchTokenMaker
ricardojlrufino Mar 8, 2015
2bc6da2
update lib cplus-libparser
ricardojlrufino Mar 8, 2015
f5cc40f
update arduino.desktop link
ricardojlrufino Mar 8, 2015
4f72737
update build .classpath
ricardojlrufino Mar 9, 2015
d5aa45e
remove unused imports
ricardojlrufino Mar 9, 2015
3641374
Merge branch 'ide-1.5.x' into 1.6.x-autocomplete-neweditor
ricardojlrufino Mar 9, 2015
5d8c1f7
fix CTRL+'/' not working on Linux (with new Editor)
ricardojlrufino Mar 10, 2015
9818577
clean syntax errors before upload
ricardojlrufino Mar 10, 2015
2c9072e
completion shortcuts: dw,dr,aw,ar (digitalWrite, digitalRead,
ricardojlrufino Mar 10, 2015
481e7ab
openUrl - show message if file not exist
ricardojlrufino Mar 10, 2015
6cbf93b
Open reference documentation using CONTROL + CLICK
ricardojlrufino Mar 10, 2015
73a647d
update lib cplus-libparser
ricardojlrufino Mar 10, 2015
bcdd420
add LED_BUILTIN to autocomplete
ricardojlrufino Mar 10, 2015
0358bb6
Merge remote-tracking branch 'upstream/master' into 1.6.x-autocomplet…
ricardojlrufino Mar 10, 2015
a4d48be
remove java7 generic JList<?>
ricardojlrufino Mar 10, 2015
fb31607
maintaining compatibility with Java 1.6
ricardojlrufino Mar 10, 2015
22b6e4d
Merge remote-tracking branch 'origin/1.6.x-autocomplete-neweditor' in…
ricardojlrufino Mar 10, 2015
0e85891
fix launcher depencencies for windows
ricardojlrufino Mar 11, 2015
839c609
fix launcher depencencies for macosx - fixes #2
ricardojlrufino Mar 15, 2015
e53d775
fix launcher depencencies for macosx - fixes #2
ricardojlrufino Mar 15, 2015
1551eb4
Autocomplete re-integration
ricardojlrufino Jul 5, 2015
97088be
Compiler/SyntaxError - show multiple compiler erros at same time
ricardojlrufino Jul 8, 2015
7b92cf0
fixed - autocomplete cache/listeners problem on 'saveAs' sketch (It is
ricardojlrufino Jul 8, 2015
a52a909
fix eclipse classpath (add cplus-libparser-0.0.1)
ricardojlrufino Jul 8, 2015
79eb524
update Arduino.h, add param names and cplus-libparser jar
ricardojlrufino Jul 8, 2015
cdca07c
refactoring - move ConsoleLogger to arduino-core
ricardojlrufino Jul 8, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions .project
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>processing-head</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>processing-head</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions app/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
<classpathentry kind="lib" path="lib/guava-18.0.jar"/>
<classpathentry kind="lib" path="lib/java-semver-0.8.0.jar"/>
<classpathentry kind="lib" path="lib/rsyntaxtextarea-2.5.6.1+arduino.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/arduino-autocomplete"/>
<classpathentry kind="lib" path="lib/rsyntax-autocomplete-2.6.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="lib/cplus-libparser-0.0.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
34 changes: 17 additions & 17 deletions app/.project
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>processing</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>processing</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
10 changes: 0 additions & 10 deletions app/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
Expand Down Expand Up @@ -62,7 +53,6 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=di
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
Expand Down
1 change: 1 addition & 0 deletions app/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</fileset>
<pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
<pathelement path="../arduino-core/arduino-core.jar"/>
<pathelement path="../arduino-autocomplete/arduino-autocomplete.jar"/>
</path>

<path id="class.path.test">
Expand Down
Binary file added app/lib/cplus-libparser-0.0.1.jar
Binary file not shown.
Binary file added app/lib/rsyntax-autocomplete-2.6.0-SNAPSHOT.jar
Binary file not shown.
46 changes: 46 additions & 0 deletions app/src/ArduinoIDE.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */

/*
* This file is part of Arduino.
*
* Copyright 2015 Ricardo JL Rufino ([email protected])
* Copyright 2015 Arduino LLC
*
* 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.
*/

import processing.app.Base;

/**
* Arduino IDE Launcher class
* @author Ricardo JL Rufino ([email protected])
* @date 23/01/2015
*/
public class ArduinoIDE {

public static void main(String[] args) throws Exception {
Base.main(args);
}

}
38 changes: 3 additions & 35 deletions app/src/processing/app/Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@
import cc.arduino.utils.Progress;
import cc.arduino.view.*;
import cc.arduino.view.Event;

import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;

import org.apache.commons.compress.utils.IOUtils;
import org.apache.commons.lang3.StringUtils;

import processing.app.debug.TargetBoard;
import processing.app.debug.TargetPackage;
import processing.app.debug.TargetPlatform;
Expand All @@ -64,10 +67,6 @@
import java.io.*;
import java.util.*;
import java.util.List;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.Logger;

import static processing.app.I18n._;


Expand Down Expand Up @@ -146,8 +145,6 @@ static public void guardedMain(String args[]) throws Exception {

BaseNoGui.initLogger();

initLogger();

BaseNoGui.initPlatform();

BaseNoGui.getPlatform().init();
Expand Down Expand Up @@ -226,35 +223,6 @@ static public void guardedMain(String args[]) throws Exception {
INSTANCE = new Base(args);
}


static public void initLogger() {
Handler consoleHandler = new ConsoleLogger();
consoleHandler.setLevel(Level.ALL);
consoleHandler.setFormatter(new LogFormatter("%1$tl:%1$tM:%1$tS [%4$7s] %2$s: %5$s%n"));

Logger globalLogger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
globalLogger.setLevel(consoleHandler.getLevel());

// Remove default
Handler[] handlers = globalLogger.getHandlers();
for(Handler handler : handlers) {
globalLogger.removeHandler(handler);
}
Logger root = Logger.getLogger("");
handlers = root.getHandlers();
for(Handler handler : handlers) {
root.removeHandler(handler);
}

globalLogger.addHandler(consoleHandler);

Logger.getLogger("cc.arduino.packages.autocomplete").setParent(globalLogger);
Logger.getLogger("br.com.criativasoft.cpluslibparser").setParent(globalLogger);
Logger.getLogger(Base.class.getPackage().getName()).setParent(globalLogger);

}


static protected void setCommandLine() {
commandLine = true;
}
Expand Down
Loading