Statistics
| Revision:

root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / PluginsLibrary.java @ 34833

History | View | Annotate | Download (1005 Bytes)

1
package org.gvsig.andami;
2

    
3
import org.gvsig.andami.impl.DefaultPluginsManager;
4
import org.gvsig.andami.ui.mdiManager.WindowInfo;
5
import org.gvsig.tools.library.AbstractLibrary;
6
import org.gvsig.tools.library.Library;
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
    public PluginsLibrary() {
15
        super(PluginsLibrary.class,Library.TYPE.API );
16
    }
17
    
18
    protected void doInitialize() throws LibraryException {
19
        PluginsLocator.registerDefaultManager(DefaultPluginsManager.class);
20
    }
21

    
22
    protected void doPostInitialize() throws LibraryException {
23
        Caller caller = new DefaultCaller();
24

    
25
        caller.add( new WindowInfo.RegisterPersistence() );
26

    
27
        /*
28
         * Do register of all
29
         */
30
        if( !caller.call() ) {
31
                throw new LibraryException(PluginsLibrary.class, caller.getExceptions());
32
        }
33

    
34

    
35
    }
36

    
37
}