root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / PluginsLibrary.java @ 38574
History | View | Annotate | Download (1.09 KB)
1 |
package org.gvsig.andami; |
---|---|
2 |
|
3 |
import org.gvsig.andami.actioninfo.impl.DefaultActionInfoManager; |
4 |
import org.gvsig.andami.impl.DefaultPluginsManager; |
5 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
6 |
import org.gvsig.tools.library.AbstractLibrary; |
7 |
import org.gvsig.tools.library.LibraryException; |
8 |
import org.gvsig.tools.util.Caller; |
9 |
import org.gvsig.tools.util.impl.DefaultCaller; |
10 |
|
11 |
|
12 |
public class PluginsLibrary extends AbstractLibrary { |
13 |
|
14 |
@Override
|
15 |
public void doRegistration() { |
16 |
registerAsAPI(PluginsLibrary.class); |
17 |
} |
18 |
|
19 |
protected void doInitialize() throws LibraryException { |
20 |
PluginsLocator.registerDefaultManager(DefaultPluginsManager.class); |
21 |
PluginsLocator.registerActionInfoManager(DefaultActionInfoManager.class); |
22 |
} |
23 |
|
24 |
protected void doPostInitialize() throws LibraryException { |
25 |
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 |
} |
38 |
|
39 |
} |