-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
before drawing FregeFX as a dependency
- Loading branch information
Dierk Koenig
committed
Aug 23, 2015
1 parent
d959248
commit 0f94ca1
Showing
335 changed files
with
10,568 additions
and
8,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.frege; | ||
|
||
import frege.runtime.Applicable; | ||
import frege.runtime.Delayed; | ||
import frege.runtime.Lambda; | ||
import javafx.event.Event; | ||
import javafx.event.EventHandler; | ||
|
||
public class FregeEventHandler implements EventHandler { | ||
protected Lambda lambda; | ||
|
||
public FregeEventHandler(Lambda lambda) { | ||
this.lambda = lambda; | ||
} | ||
|
||
@Override | ||
public void handle(Event event) { | ||
try { | ||
Applicable inter = lambda.apply(event); | ||
Delayed.forced(inter.apply(null).result().forced()); // the second argument is the IO context | ||
} catch(RuntimeException re) { | ||
re.printStackTrace(); | ||
throw re; | ||
} | ||
} | ||
} |
File renamed without changes.
13 changes: 0 additions & 13 deletions
13
preFregeFX/src/generated/frege/javafx/animation/AnimationAccessorImpl.fr
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
preFregeFX/src/generated/frege/javafx/animation/AnimationTimer.fr
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
preFregeFX/src/generated/frege/javafx/animation/ParallelTransition.fr
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
preFregeFX/src/generated/frege/javafx/animation/PathTransition.fr
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
preFregeFX/src/generated/frege/javafx/animation/PauseTransitionBuilder.fr
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
preFregeFX/src/generated/frege/javafx/animation/ScaleTransitionBuilder.fr
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
preFregeFX/src/generated/frege/javafx/animation/SequentialTransition.fr
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
preFregeFX/src/generated/frege/javafx/animation/SequentialTransitionBuilder.fr
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
preFregeFX/src/generated/frege/javafx/animation/Timeline.fr
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
preFregeFX/src/generated/frege/javafx/animation/Transition.fr
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
preFregeFX/src/generated/frege/javafx/animation/TransitionBuilder.fr
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
preFregeFX/src/generated/frege/javafx/animation/TranslateTransition.fr
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
preFregeFX/src/generated/frege/javafx/animation/TranslateTransitionBuilder.fr
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.