Shane Mc Cormack
b691b14491
Update the copyright date on all files.
UpdateCopyright.sh now works out the year automatically.
UpdateCopyright.sh now ignores .git aswell as .svn
UpdateCopyright.sh now excludes Binary Files from being matched during the initial search, rather than as an afterthought.
Change-Id: I2cfc56851a4217a4c85cbc7361c7a90421aae717
Reviewed-on: http://gerrit.dmdirc.com/202
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
14 lat temu
Shane Mc Cormack
c04b824345
Get licenses from plugins.
Fixes issue 2642.
Returns an InputStream because thats what the license panel uses for everything else.
Change-Id: I487257961ac40bb421ef8b8c92da32a221ce2ce9
Reviewed-on: http://gerrit.dmdirc.com/106
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
14 lat temu
Chris Smith
e1755d7c41
Normalise paths used in PluginInfo.getRelativePath()
Should fix issue 2913
Change-Id: I0e838aa6f3911e9aab239852b452fabab6fe138d
Reviewed-on: http://gerrit.dmdirc.com/82
Reviewed-by: Gregory Holmes <greboid@dmdirc.com >
Tested-by: Gregory Holmes <greboid@dmdirc.com >
14 lat temu
Shane Mc Cormack
636a8efda1
Reformat the plugin manager
Change-Id: Ie6f2b1aaef0bd753cffa61abe3117f22dc0955af
Reviewed-on: http://gerrit.dmdirc.com/78
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
Reviewed-by: Chris Smith <chris@dmdirc.com >
Tested-by: Chris Smith <chris@dmdirc.com >
14 lat temu
Shane Mc Cormack
8cba804acc
Rework previous commit. (Issue 2978)
Change-Id: I9abcc603a9a456a92e4403f053112166df58147e
Reviewed-on: http://gerrit.dmdirc.com/4
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Tested-by: Shane Mc Cormack <shane@dmdirc.com >
15 lat temu
Shane Mc Cormack
567d3c58a7
Fixes issue 2978.
15 lat temu
Gregory Holmes
1709ba6b5e
fixes issue 2983
15 lat temu
Chris Smith
6886693f07
More debugging
15 lat temu
Chris Smith
b19d107a0b
Plugins are now versioned using git. Fixes issue 2316.
15 lat temu
Shane Mc Cormack
d9209ab07b
Add updateProvides() call in loadPlugin(). Fixes issue 2347. Fixes issue 2346.
15 lat temu
Shane Mc Cormack
f4ae5473f8
Don't check for services (which may well lead to loading plugins that the user doesn't want loaded) when temploading.
15 lat temu
Shane Mc Cormack
c29d31ffbf
Fixes issue 2325
15 lat temu
Shane Mc Cormack
7171850bce
If no alias is defined for an export, the method name itself is used such that "getFoo in class.path" is the same as "getFoo in class.path as getFoo"
15 lat temu
Shane Mc Cormack
185e071c68
Use correct domain for icons (issue 2303)
15 lat temu
Shane Mc Cormack
a39e2a4d4b
Probably fixes issue 2303.
Put formatters/icons in formatters: icons: key sections. Anything that needs to be set by code should be done in domainUpdated as with defaults.
15 lat temu
Chris Smith
61bc043879
Remove superfluous import
15 lat temu
Chris Smith
26bb145584
Catch Throwable not Exception when calling a plugin's onLoad method
Also catch throwable if the plugin is temp loaded already
Fixes issue 2214
15 lat temu
Chris Smith
79d2b27e87
Remove old version/update channel things
Fixes issue 1721
15 lat temu
Shane Mc Cormack
75eb14de9a
Check that the metadata exists and that there isa keysection called defaults before trying to read the defaults.
Fixes issue 2256
Fixes issue 2257
15 lat temu
Shane Mc Cormack
8d941c3d59
Ok, I suck. I really suck.
15 lat temu
Shane Mc Cormack
3c7f721af1
oops, silly mistake!
15 lat temu
Shane Mc Cormack
4eb23aacce
Issue 2244 - Plugin defaults can now be set in the plugin.config by using the defaults: key.
key/value pairs in the config are automatically added to the plugin-<plugin name> domain.
The domainUpdated(); method can be overridden to set any defaults that should be set in code. (such as the ident plugin defaulting to the current username)
15 lat temu
Chris Smith
de5813cbdc
Add getRelativeFilename to PluginInfo and use that when updating the
autoload list. Fixes issue 2152.
15 lat temu
Shane Mc Cormack
18e1ee3d24
Remove from provides lists when unloading.
Fixes issue 2157
15 lat temu
Shane Mc Cormack
fb58ef3cbf
Fix AutoLoading, fixes issue 2163.
15 lat temu
Chris Smith
ea03491052
Javadoc fixes
Constructors should be the first methods, not split up with one half way down the file
15 lat temu
Chris Smith
7af29c06f4
Import tidying
15 lat temu
Shane Mc Cormack
033d8aeacd
Actually do something with the migrated variable!
15 lat temu
Shane Mc Cormack
1584b50d3f
Fixes issue 2137 (Check all required-services, not just the first one)
Fixes issue 2132 (Nice way to expose and reuse methods in services)
15 lat temu
Shane Mc Cormack
bcd15f15b3
Allow specifying "any" as a service name, eg "any ui".
Fixes issue 2135
15 lat temu
Shane Mc Cormack
fe6aed8100
Fixes
15 lat temu
Shane Mc Cormack
4b57f504c7
Add isUnloadable() and metadata->unloadable
15 lat temu
Shane Mc Cormack
38c542eb13
Fix converting persistent
15 lat temu
Shane Mc Cormack
441b409afb
Required Services are now specified as a list section rather than a key of requires:
15 lat temu
Shane Mc Cormack
400343ee3b
Show providers aswell as services if requested.
15 lat temu
Shane Mc Cormack
6266ee0e90
Start work on sub plugins.
PluginClassloader still needs to try to ask its parent first
15 lat temu
Shane Mc Cormack
89423ab8fd
tenuous -> preliminary
15 lat temu
Shane Mc Cormack
8928819713
Finish making minversion optional!
Add method to get all services available as a list
15 lat temu
Shane Mc Cormack
8c517c786b
Remove debugging, don't require minversion any more
15 lat temu
Shane Mc Cormack
0ec8918e7f
Fix Plugins not loading properly now that doAutoLoad isn't guarenteed.
Add activate() method to Service that makes sure that at least 1 of the providers of the service is active
15 lat temu
Shane Mc Cormack
33db79ca88
Move static methods from Service to PluginManager
Fix getDescription() not working
Fixes issue 2090
15 lat temu
Shane Mc Cormack
94c88f27b7
Change Services to use ServiceProviders rather than PluginInfos - PluginInfos are now ServiceProviders.
15 lat temu
Shane Mc Cormack
09e459f602
Check all providers of a service for isLoaded() before loading the first one
15 lat temu
Shane Mc Cormack
dce944869a
Add requires/provides support to Plugins.
Fixes issue 2086
Probably fixes issue 1225 aswell
Fixes issue 1394 (sub uis can provide swing aswell as swing_windows or so, or swing can be provided by one plugin and swing_windows can be provided by another that requires swing)
15 lat temu
Shane Mc Cormack
271d5f904d
Migrate plugins to use plugin.config (which is a ConfigFile not a Properties file), old plugin.infos will still be read if plugin.config doesn't exist or is invalid
Fixes issue 2087.
15 lat temu
Gregory Holmes
ad6cddbba0
Update copyright header to 2009
15 lat temu
Shane Mc Cormack
77fd322b87
Assume version numbers of 0 are valid for plugin min-versions. I think this fixes issue 1899.
15 lat temu
Chris Smith
dc864cfa38
Removed shane's silly $id$ stuff from everywhere
15 lat temu
Shane Mc Cormack
ebf70cddce
Remove debugging for issue 1408
git-svn-id: http://svn.dmdirc.com/trunk@4458 00569f92 -eb28-0410-84fd-f71c24880f
16 lat temu
Shane Mc Cormack
bdf92a8be4
Fixes issue 1560
git-svn-id: http://svn.dmdirc.com/trunk@4451 00569f92 -eb28-0410-84fd-f71c24880f
16 lat temu