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

View differences:

PluginsLibrary.java
1 1
package org.gvsig.andami;
2 2

  
3 3
import org.gvsig.andami.impl.DefaultPluginsManager;
4
import org.gvsig.andami.ui.mdiManager.WindowInfo;
4 5
import org.gvsig.tools.library.AbstractLibrary;
5 6
import org.gvsig.tools.library.Library;
6 7
import org.gvsig.tools.library.LibraryException;
8
import org.gvsig.tools.util.Caller;
9
import org.gvsig.tools.util.impl.DefaultCaller;
7 10

  
8 11

  
9 12
public class PluginsLibrary extends AbstractLibrary {
......
17 20
    }
18 21

  
19 22
    protected void doPostInitialize() throws LibraryException {
20
        //do nothing
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

  
21 35
    }
22 36

  
23 37
}

Also available in: Unified diff