|
PluginDeveloperGuide
Hawkscope Plugin Developer Guide
Phase-Implementation So, you want to write a Hawkscope Plugin? You are in a right place then. Required Knowledge
Anatomy of a PluginHawkscope Plugin is a Java JAR file, which contains:
Hawkscope plugins should be compiled with Java 1.5 compatibility. The Bare Minimum
plugin.loader bare.MinimumPlugin bare/MinimumPlugin.java package bare;
import com.varaneckas.hawkscope.plugin.PluginAdapter;
class MinimumPlugin extends PluginAdapter {
public String getDescription() {
return "Bare Minimum Plugin";
}
public String getName() {
return "Bare Minimum";
}
public String getVersion() {
return "1.0";
}
}Extension PointsThere are several extension points that plugins can hook into. Before Quick Access ListCan add menu items on the very top of main Hawkscope menu. Before About Menu ItemCan add menu items between Hide and About. Quick Access List Item creationCan enhance Quick Access List items while they are rendered. Folder Menu creationCan enhance Folder Menu items when they are rendered. File Menu Item creationCan enhance File items when they are rendered. File Menu Item click interceptionCan intercept File clicks and take various actions. Settings TabsCan add tabs to Settings Window's Tab folder. Example PluginYou can browse Open With built-in plugin source for a sophisticated plugin example. Another good example - Twitter plugin. Where to start?
More documentation is coming soon. |