Revision 22463 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/ThemeManagerWindow.java

View differences:

ThemeManagerWindow.java
169 169
			 * then fires the LegendChanged event that causes the view to be refreshed.
170 170
			 * After that, it closes the window.
171 171
			 */
172
			for (int i = 0; i < tabs.getTabCount(); i++) {
173
				AbstractThemeManagerPage tab = (AbstractThemeManagerPage) tabs.getComponentAt(i);
174
				tab.applyAction();
175
			}
176 172

  
177
			layer.getMapContext().callLegendChanged();
178

  
173
			actionPerformed(new ActionEvent(e.getSource(), e.getID(), "APPLY"));
179 174
			close();
180 175
		} else if (e.getActionCommand() == "CANCEL") {
181 176
			/* Causes all the tabs in the ThemeManagerWindow to perform THEIR cancel-action
......
190 185
			/* Causes the current visible tab in the ThemeManagerWindow to perform
191 186
			 * ITS specific apply-action.
192 187
			 */
193
			((AbstractThemeManagerPage) tabs.getSelectedComponent()).applyAction();
188
			for (int i = 0; i < tabs.getTabCount(); i++) {
189
				AbstractThemeManagerPage tab = (AbstractThemeManagerPage) tabs.getComponentAt(i);
190
				tab.applyAction();
191
			}
194 192
			layer.getMapContext().callLegendChanged();
195 193
		} else {}
196 194
		

Also available in: Unified diff