Revision 477 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/dynobject/DynObjectComponentAction.java
DynObjectComponentAction.java | ||
---|---|---|
38 | 38 |
import javax.swing.JPanel; |
39 | 39 |
import javax.swing.JTabbedPane; |
40 | 40 |
|
41 |
import org.slf4j.Logger; |
|
42 |
import org.slf4j.LoggerFactory; |
|
43 |
|
|
44 | 41 |
import org.gvsig.tools.ToolsLocator; |
45 | 42 |
import org.gvsig.tools.dynobject.DynObjectManager; |
46 |
import org.gvsig.tools.dynobject.exception.DynFieldValidateException; |
|
47 | 43 |
import org.gvsig.tools.main.MainAction; |
48 | 44 |
import org.gvsig.tools.service.ServiceException; |
49 | 45 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
... | ... | |
59 | 55 |
|
60 | 56 |
private static final long serialVersionUID = -3386010046112585198L; |
61 | 57 |
|
62 |
private final static Logger LOG = LoggerFactory |
|
63 |
.getLogger(DynObjectComponentAction.class); |
|
64 |
|
|
65 | 58 |
private static DynObjectManager dynManager = |
66 | 59 |
ToolsLocator.getDynObjectManager(); |
67 | 60 |
|
... | ... | |
129 | 122 |
*/ |
130 | 123 |
protected void launchNewFrame() { |
131 | 124 |
|
132 |
try { |
|
133 |
getDynObjectView().saveStatus(); |
|
134 |
|
|
125 |
getDynObjectView().saveStatus(); |
|
135 | 126 |
|
136 | 127 |
final JFrame frame = new JFrame("Tools swing components test app"); |
137 | 128 |
// frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
... | ... | |
142 | 133 |
// Display the window. |
143 | 134 |
frame.pack(); |
144 | 135 |
frame.setVisible(true); |
145 |
} catch (DynFieldValidateException e) { |
|
146 |
LOG.warn("Value validation error: " |
|
147 |
+ this.getDynObjectView().getDynField().getName(), this.getDynObjectView().getValue()); |
|
148 |
} |
|
149 | 136 |
} |
150 | 137 |
|
151 | 138 |
public void registerDynObjects() { |
Also available in: Unified diff