Revision 14811 trunk/extensions/extWCS/src/com/iver/cit/gvsig/wcs/WCSClientExtension.java

View differences:

WCSClientExtension.java
40 40
*/
41 41
package com.iver.cit.gvsig.wcs;
42 42

  
43
import com.iver.andami.PluginServices;
43 44
import com.iver.andami.plugins.Extension;
44 45
import com.iver.cit.gvsig.AddLayer;
46
import com.iver.cit.gvsig.fmap.MapControl;
45 47
import com.iver.cit.gvsig.fmap.layers.FLyrWCS;
46 48
import com.iver.cit.gvsig.gui.toc.WCSPropsTocMenuEntry;
47 49
import com.iver.cit.gvsig.gui.toc.WCSZoomPixelCursorTocMenuEntry;
......
57 59
public class WCSClientExtension extends Extension {
58 60
	/**
59 61
	 * Initializes the toc menu
60
	 * 
62
	 *
61 63
	 */
62 64
	public void initialize() {
63 65
		// Adds a new tab to the "add layer" wizard for WMS layer creation
64 66
    	AddLayer.addWizard(WCSWizard.class);
65
    	
66
    	
67

  
68

  
67 69
    	// Adds an entry to the TOC's floating menu to those layers defined in this extensionFPopupMenu.addEntry(new WCSPropsTocMenuEntry());
68 70
    	FPopupMenu.addEntry(new WCSPropsTocMenuEntry());
69
    	
70
    	// Adds an entry to the TOC's floating menu for the "zoom to pixel" tool 
71

  
72
    	// Adds an entry to the TOC's floating menu for the "zoom to pixel" tool
71 73
    	FPopupMenu.addEntry(new WCSZoomPixelCursorTocMenuEntry());
72
    	
74

  
73 75
    	ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance();
74 76
    	extensionPoints.add("CatalogLayers","OGC:WCS",FLyrWCS.class);
75
    	
76
    	
77

  
78
    	initializeIcons();
79

  
80

  
77 81
	}
78 82

  
79 83
	public void execute(String actionCommand) {
......
84 88
		// may return whatever
85 89
		return true;
86 90
	}
87
	
91

  
88 92
	public boolean isVisible() {
89 93
		// may return whatever
90 94
		return false;
91 95
	}
92
	
96

  
97
	void initializeIcons(){
98
		PluginServices.getIconTheme().register(
99
	    		"view-previsualize-area",
100
	    		MapControl.class.getResource("images/ZoomPixelCursor.gif")
101
	    	);
102
	}
93 103
}

Also available in: Unified diff