Author: dgolovin
Date: 2008-01-03 20:54:41 -0500 (Thu, 03 Jan 2008)
New Revision: 5496
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.debug.ui/src/org/jboss/tools/jst/web/debug/ui/internal/views/properties/xpl/WebDataProperties.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1544
Need add @catalogProperty@@schemaProperty@ back to persistence.xml templates file in
seam-gen.
JUnit tests also added.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.debug.ui/src/org/jboss/tools/jst/web/debug/ui/internal/views/properties/xpl/WebDataProperties.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.debug.ui/src/org/jboss/tools/jst/web/debug/ui/internal/views/properties/xpl/WebDataProperties.java 2008-01-04
01:54:38 UTC (rev 5495)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.debug.ui/src/org/jboss/tools/jst/web/debug/ui/internal/views/properties/xpl/WebDataProperties.java 2008-01-04
01:54:41 UTC (rev 5496)
@@ -71,7 +71,7 @@
private static Map enablements = new HashMap(12);
private static Map filters = new HashMap(2);
- private IPreferenceStore fStore;
+ private final IPreferenceStore fStore;
public WebDataProperties (IPreferenceStore store) {
this.fStore = store;
@@ -87,7 +87,7 @@
try {
Boolean value = (Boolean)enablements.get(filter);
if (value == null && fStore != null) {
- value = new Boolean(fStore.getBoolean(filter));
+ value = Boolean.valueOf(fStore.getBoolean(filter));
synchronized (this) {
enablements.put(filter, value);
}
@@ -135,7 +135,7 @@
newValue= false;
}
- enablements.put(p, new Boolean(newValue));
+ enablements.put(p, Boolean.valueOf(newValue));
fireWebDataPropertyChanged(p);
}
if (filters.containsKey(p)) {
@@ -213,7 +213,7 @@
store.setDefault(SHOW_STRUTS_DYNAACTIONFORM_FILTER+VALUE_POSTFIX, "*");
}
- private List fListeners = new ArrayList();
+ private final List fListeners = new ArrayList();
public void addWebDataPropertyChangeListener (IWebDataPropertyChangeListener listener)
{
if (!fListeners.contains(listener)) fListeners.add(listener);
}