Skip to content

Commit aa23704

Browse files
committed
Adjustments
1 parent c5f4ec7 commit aa23704

File tree

102 files changed

+36
-11654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+36
-11654
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package net.batmat.econ2015.logicalstructureandbreakpointing;
2+
3+
4+
public class Breakpointing {
5+
public static void main(String[] args) {
6+
7+
System.out.println("Here");
8+
System.out.println("Some String".substring(0, 5));
9+
System.out.println("There");
10+
}
11+
}

50slidesdemo/src/main/java/net/batmat/econ2015/quickfixes/QuickFixes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class QuickFixes {
99
private String someAttribute;
1010

1111
public static void ternaryAndInvert(String[] args) {
12-
String s = (hop != null) ? s = hop.get(0) : "somevalue";
12+
String s = (hop != null) ? hop.get(0) : "somevalue";
1313

1414
}
1515

50slidesdemo/src/main/java/net/batmat/econ2015/slides/SomeClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.batmat.econ2015.slides;
1+
package net.batmat.econ2015.inheritance;
22

33
/**
44
* Hello world!

50slidesdemo/src/main/java/net/batmat/econ2015/slides/SomeDayForward.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.batmat.econ2015.slides;
1+
package net.batmat.econ2015.inheritance;
22

33
public class SomeDayForward
44
{

50slidesdemo/src/main/java/net/batmat/econ2015/slides/SomeParentClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.batmat.econ2015.slides;
1+
package net.batmat.econ2015.inheritance;
22

33

44
public class SomeParentClass

tips/tips.adoc

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ image::ternary-after.png[]
106106

107107
Select the if/else to invert, and call the <<QuickFix,Quick Fix>>
108108

109-
== Generate for-loop on collection
109+
== Generate for-loop on collection or array
110110

111111
Just type the collection/array, and call the <<QuickFix,Quick Fix>>
112112

@@ -262,6 +262,12 @@ Present complex/weird physical data structure in a logical way in the debugger
262262
For reference see the link:http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fpreferences%2Fjava%2Fdebug%2Fref-logical_structures.htm[official documentation]
263263
or that link:http://www.javalobby.org/java/forums/t16736.html[forum discussion].
264264

265+
== Switch between tabs
266+
* Ctrl-E : displays a full list
267+
* Ctrl-F6 : Alt-tab for Eclipse
268+
269+
* Ctrl-Page Up/Down : easily switch between tabs
270+
265271
== Working Sets
266272

267273
Useful to categorize projects, or packages.
@@ -276,11 +282,24 @@ https://recoveringprogrammer.wordpress.com/2013/04/06/using-eclipse-scrapbook-to
276282

277283
== Add to snippets
278284

285+
You can easily add any code block for future reuse.
279286

280287
== Code templates
281288

289+
Difference with snippets: can be variabilized.
290+
282291
Cf. Java/Editor/Templates
283292

293+
[source,template]
294+
.Example: JDK8 foreach
295+
----
296+
${iterable}.forEach(${iterable_element} -> {
297+
${cursor}
298+
});
299+
----
300+
301+
link:https://gist.github.com/vferries/23f86bdc68e1b74b5e0d[Thanks Vincent!]
302+
284303
== Extensions: SnipMatch
285304

286305
Example: formatter on/off (cf. <<formatterOnOff>>)
@@ -306,8 +325,7 @@ Use it to debug :
306325
System.out.println("HERE WE ARE: "+theVariable);
307326
return false;
308327

309-
Gotcha: in external jars (like rt.jar) without local variable table.
310-
Use for example the `arg0` placeholder for parameters, instead of the original parameter names.
328+
Gotcha: in external jars (like rt.jar) without local variable table, use the `arg0`, `arg1`... placeholders for parameters, instead of the original parameter names.
311329

312330
== Clean Up
313331

ws/.metadata/.lock

Whitespace-only changes.

ws/.metadata/.log

Lines changed: 0 additions & 108 deletions
This file was deleted.
-20 Bytes
Binary file not shown.
-32 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)