Revision 19196 trunk/prototypes/mobile/desktop/extensions/extExportMobile/src/es/prodevelop/gvsig/exportMobile/ClipExtension.java

View differences:

ClipExtension.java
13 13

  
14 14

  
15 15
/**
16
 * This extension will be visible if any view is execute. Get the layers are in
17
 * TOC and the exents of the view to work with them.
18
 * If are any group of layers in TOC, we work with its layers as
19
 * if this gropu doesn?t exists.
20 16
 * 
17
 * This extension allows a user to export all the layers in a view
18
 * 
21 19
 * @author amoreno
22 20
 *
23 21
 */
24 22
public class ClipExtension extends Extension {
25 23

  
24
	/**
25
	 * Starts the extension
26
	 */
26 27
	public void initialize() {
27 28
//		//Initialiser SOAP writer with the desination SOAP file
28 29
		//File destFile = new File("SOAPComEventModif.xml");
29 30
		//CommMessageWriterManager.registerManager(new CommMessageWriterManager(new SOAPCommMessageWriter(destFile)));
30 31
	}
31 32

  
33
	
32 34
	public boolean isEnabled() {
33 35

  
34 36
		return true;
35 37
	}
36 38

  
39
	/**
40
	 * is visible when a view is the active window
41
	 */
37 42
	public boolean isVisible() {
38 43
		com.iver.andami.ui.mdiManager.IWindow f = (com.iver.andami.ui.mdiManager.IWindow) PluginServices
39 44
				.getMDIManager().getActiveWindow();
......
45 50
		return (f instanceof View);
46 51
	}
47 52

  
53
	/**
54
	 * @param actionCommand not used
55
	 * It's called when the export to gvsig mobile button is pressed
56
	 */
48 57
	public void execute(String actionCommand) {
49 58

  
50 59
		View view = (View) PluginServices.getMDIManager().getActiveWindow();

Also available in: Unified diff