Skip to content

Instantly share code, notes, and snippets.

View tschulte's full-sized avatar

Tobias Schulte tschulte

View GitHub Profile
import java.util.ArrayList;
import java.util.List;
import javafx.beans.property.ListProperty;
import javafx.beans.property.Property;
import javafx.beans.property.SimpleListProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.WritableObjectValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
@tschulte
tschulte / FXObservableListMapSet(delombok).java
Created April 14, 2016 08:08
Handling of FXObservable Annotation for ObservableList, ObservableMap and ObservableSet
// Generated by delombok at Thu Apr 14 10:04:10 CEST 2016
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.ObservableMap;
import javafx.collections.ObservableSet;
public class FXObservableListMapSet {
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
private javafx.beans.property.ListProperty<java.lang.Integer> theListWithDefaultProperty;
@tschulte
tschulte / rxjava_progress.groovy
Created November 1, 2014 20:00
Automatically show progress of rxjava Observable
@Grab('io.reactivex:rxjava:+')
@Grab('io.reactivex:rxswing:+')
import groovy.beans.Bindable
import groovy.swing.SwingBuilder
import rx.Observable
import rx.schedulers.*
import java.awt.BorderLayout
def sb = new SwingBuilder()
@tschulte
tschulte / innertable.adoc
Last active August 29, 2015 14:04
Table with inner table
ID Address

[+]12345

Gutenbergstr. 5

85716

Unterschleißheim

[+]12346

Bavariastr. 6

80336

München

ID Address
@tschulte
tschulte / CustomBundleLocalization.java
Last active August 29, 2015 13:56
Use custom ResourceBundle.Control in Eclipse TranslationService and MessageFactoryService
package custom.translation;
import java.util.Dictionary;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.ResourceBundle.Control;
import kam.text.Utf8ResourceTextControl;
import org.eclipse.e4.core.internal.services.ResourceBundleHelper;