Revision: 15235
http://gate.svn.sourceforge.net/gate/?rev=15235&view=rev
Author: markagreenwood
Date: 2012-01-27 11:29:20 +0000 (Fri, 27 Jan 2012)
Log Message:
-----------
added a utility method to check if the plugin is installed into the users
plugin folder
Modified Paths:
--------------
gate/trunk/src/gate/Gate.java
Modified: gate/trunk/src/gate/Gate.java
===================================================================
--- gate/trunk/src/gate/Gate.java 2012-01-27 11:05:22 UTC (rev 15234)
+++ gate/trunk/src/gate/Gate.java 2012-01-27 11:29:20 UTC (rev 15235)
@@ -1321,6 +1321,13 @@
return remote;
}
+ public boolean isUserPlugin() {
+ File userPluginsHome = PluginUpdateManager.getUserPluginsHome();
+ return (userPluginsHome != null
+ && getUrl().toString()
+ .startsWith(userPluginsHome.toURI().toString()));
+ }
+
public String toHTMLString() {
return html;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs