root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / PluginsLibrary.java @ 38618
History | View | Annotate | Download (1.09 KB)
1 | 34114 | fdiaz | package org.gvsig.andami; |
---|---|---|---|
2 | |||
3 | 38564 | jjdelcerro | import org.gvsig.andami.actioninfo.impl.DefaultActionInfoManager; |
4 | 34114 | fdiaz | import org.gvsig.andami.impl.DefaultPluginsManager; |
5 | 34833 | fdiaz | import org.gvsig.andami.ui.mdiManager.WindowInfo; |
6 | 34114 | fdiaz | import org.gvsig.tools.library.AbstractLibrary; |
7 | import org.gvsig.tools.library.LibraryException; |
||
8 | 34833 | fdiaz | import org.gvsig.tools.util.Caller; |
9 | import org.gvsig.tools.util.impl.DefaultCaller; |
||
10 | 34114 | fdiaz | |
11 | |||
12 | public class PluginsLibrary extends AbstractLibrary { |
||
13 | |||
14 | 35142 | cordinyana | @Override
|
15 | public void doRegistration() { |
||
16 | registerAsAPI(PluginsLibrary.class); |
||
17 | 34114 | fdiaz | } |
18 | 35142 | cordinyana | |
19 | 34114 | fdiaz | protected void doInitialize() throws LibraryException { |
20 | PluginsLocator.registerDefaultManager(DefaultPluginsManager.class); |
||
21 | 38564 | jjdelcerro | PluginsLocator.registerActionInfoManager(DefaultActionInfoManager.class); |
22 | 34114 | fdiaz | } |
23 | |||
24 | protected void doPostInitialize() throws LibraryException { |
||
25 | 34833 | fdiaz | Caller caller = new DefaultCaller();
|
26 | |||
27 | caller.add( new WindowInfo.RegisterPersistence() );
|
||
28 | |||
29 | /*
|
||
30 | * Do register of all
|
||
31 | */
|
||
32 | if( !caller.call() ) {
|
||
33 | throw new LibraryException(PluginsLibrary.class, caller.getExceptions()); |
||
34 | } |
||
35 | |||
36 | |||
37 | 34114 | fdiaz | } |
38 | |||
39 | } |