Revision 12168
trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/dialog/RegistrableTabPanel.java | ||
---|---|---|
120 | 120 |
return; |
121 | 121 |
if (getTab().getSelectedIndex() == -1) |
122 | 122 |
return; |
123 |
String title = getTab().getTitleAt(getTab().getSelectedIndex()); |
|
123 |
// String title = getTab().getTitleAt(getTab().getSelectedIndex());
|
|
124 | 124 |
|
125 | 125 |
Iterator iterator = extensionPoint.keySet().iterator(); |
126 | 126 |
while (iterator.hasNext()) { |
127 | 127 |
try { |
128 | 128 |
String key = (String) iterator.next(); |
129 | 129 |
IRegistrablePanel panel = (IRegistrablePanel) extensionPoint.get(key); |
130 |
if (key.equals(title)) { |
|
131 |
switch (action) { |
|
132 |
case 0: |
|
133 |
panel.accept(); |
|
134 |
break; |
|
135 |
case 1: |
|
136 |
panel.apply(); |
|
137 |
break; |
|
138 |
} |
|
130 |
// if (key.equals(title)) { |
|
131 |
switch (action) { |
|
132 |
case 0: |
|
133 |
panel.accept(); |
|
134 |
break; |
|
135 |
case 1: |
|
136 |
panel.apply(); |
|
137 |
break; |
|
138 |
case 2: |
|
139 |
panel.cancel(); |
|
140 |
break; |
|
139 | 141 |
} |
140 |
if (action == 2) |
|
141 |
panel.cancel(); |
|
142 |
// } |
|
142 | 143 |
} catch (ClassCastException e) { |
143 | 144 |
// No se ejecuta |
144 | 145 |
continue; |
Also available in: Unified diff