Alexander Müller Posted January 18, 2014 Share Posted January 18, 2014 (edited) Hi, I'd like to share my little Java framework that I use to write workflows. I'm open for ideas, suggestions, bug reports and pull requests. Have fun. Download https://github.com/visusnet/alfred-worker Configuration Example Code Example package net.coffeedriven; import net.coffeedriven.alfred.spi.AbstractWorkflowPlugin; import net.coffeedriven.alfred.spi.Item; import net.coffeedriven.alfred.spi.ItemManager; import net.coffeedriven.alfred.spi.PluginException; public class ExamplePlugin extends AbstractWorkflowPlugin { @Override public void run(String query) throws PluginException { Item item = new Item() .setArg(query) .setAutocomplete(query) .setTitle(query) .setValid(true) .setUid(query); getItemManager().addItem(item); } } Preview Best, Alexander Edited January 18, 2014 by Alexander Müller Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now