Repository is archived
No commit activity in last 3 years
No release in over 3 years
Buildr extension to process bytecode using swung-weaver. Swung weaver is bytecode weaving of annotated UI classes to ensure all UI updates occur in the Event Dispatch Thread
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

swung-weave

A simple project that processes bytecode transforming methods annotated with the annotation @RunInEDT and @RunOutsideEDT

A method annotated with @RunInEDT may be transformed into something like

void method() { if (!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeAndWait(new Runnable() { public void run() { method(); } ); return; }

 // do method code here, guaranteed to be in EDT

}

Installing the IDEA plugin

The plugin is available in JetBrains repos. To install, simply go to "File > Settings > Plugins > Available" and select the SwungWeave plugin from the list of available plugins and install it.

How it works

For each module of the project with the SwungWeave facet, the plugin looks for a class named org.realityforge.swung_weave.tool.Main in its classpath. If found, it scans all the classes of the module in its main and test output directories and enhances the annotated methods using it.