gvsig-raster / org.gvsig.raster.tools / trunk / templates / rasterTaskProjectTemplate / alg_with_preview_template / sources / swingapi / ProjectTemplateSwingLibrary.java @ 1843
History | View | Annotate | Download (919 Bytes)
1 |
package org.gvsig.raster.projecttemplate.swing; |
---|---|
2 |
|
3 |
import org.gvsig.tools.library.AbstractLibrary; |
4 |
import org.gvsig.tools.library.LibraryException; |
5 |
import org.gvsig.tools.locator.ReferenceNotRegisteredException; |
6 |
|
7 |
/**
|
8 |
* Library for API initialization and configuration.
|
9 |
*
|
10 |
* @author gvSIG team
|
11 |
* @version $Id$
|
12 |
*/
|
13 |
public class ProjectTemplateSwingLibrary extends AbstractLibrary { |
14 |
|
15 |
@Override
|
16 |
protected void doInitialize() throws LibraryException { |
17 |
} |
18 |
|
19 |
@Override
|
20 |
protected void doPostInitialize() throws LibraryException { |
21 |
// Validate there is any implementation registered.
|
22 |
ProjectTemplateSwingManager manager = ProjectTemplateSwingLocator.getSwingManager(); |
23 |
if (manager == null) { |
24 |
throw new ReferenceNotRegisteredException( |
25 |
ProjectTemplateSwingLocator.SWING_MANAGER_NAME, |
26 |
ProjectTemplateSwingLocator.getInstance()); |
27 |
} |
28 |
} |
29 |
|
30 |
} |