Skip to content

Instantly share code, notes, and snippets.

@dunmatt
Last active December 18, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dunmatt/5863021 to your computer and use it in GitHub Desktop.
Save dunmatt/5863021 to your computer and use it in GitHub Desktop.
This is a snippet for Sublime Text 2 (and probably TextMate) to stub out an ADE Component interface for you.
<snippet>
<content><![CDATA[/**
* Agent Development Environment (ADE)
*
* @version 1.0
* @author ${1:M@}
* @file ${100:${TM_FILEPATH/([^a]|a[^d]|ad[^e])+ade\/(?<dir>.+?)\/[\w\.]+$/$+{dir}/}}/$TM_FILENAME
*
* Copyright 1997-2013 M@ Dunlap and HRILab (hrilab.org)
* All rights reserved. Do not copy and use without permission.
* For questions contact ${1} at <${2:matthew.dunlap+hrilab@gmail.com}>
*/
package ${100/\//\./g};
import ade.ADEComponent;
import java.rmi.RemoteException;
/**
* $3
*
* @author ${1} <${2}>
*/
public interface ${TM_FILENAME/([^\.]+).\w*/$1/} extends ADEComponent {
$4
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ac</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.java</scope>
<description>ADE Component Interface</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment