Revision 14169 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/SymbolPreviewer.java

View differences:

SymbolPreviewer.java
42 42
/* CVS MESSAGES:
43 43
 *
44 44
 * $Id$
45
 * $Log$
46
 * Revision 1.6  2007-08-16 06:54:35  jvidal
45
 * $Log: SymbolPreviewer.java,v $
46
 * Revision 1.6  2007/08/16 06:54:35  jvidal
47 47
 * javadoc updated
48 48
 *
49 49
 * Revision 1.5  2007/08/07 11:41:15  jvidal
......
178 178
			g2.drawString(noneSelected,	 (r.x*scale) - (hGap/2), r.height/2+vGap*scale);
179 179
		}
180 180
	}
181
	
181 182
	/**
182 183
	 * Sets the EditorTool for the pane.
183 184
	 *
184 185
	 * @param l,EditorTool
185 186
	 */
186

  
187
	public void setEditorTool(EditorTool l) {
187
	public void setEditorTool(EditorTool tool) {
188 188
		MouseListener[] ml = getMouseListeners();
189 189
		for (int i = 0; i < ml.length; i++) {
190 190
			super.removeMouseListener(ml[i]);
......
194 194
			super.removeMouseMotionListener(mml[i]);
195 195
		}
196 196

  
197
		if (l!= null) {
198
			super.addMouseListener(l);
199
			setCursor(l.getCursor());
200
			super.addMouseMotionListener(l);
197
		if (tool!= null) {
198
			super.addMouseListener(tool);
199
			setCursor(tool.getCursor());
200
			super.addMouseMotionListener(tool);
201 201
		}
202 202
	}
203 203

  

Also available in: Unified diff