Author: scabanovich
Date: 2009-11-13 06:55:29 -0500 (Fri, 13 Nov 2009)
New Revision: 18680
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/model/handlers/page/create/CreatePageSupport.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5185
Modified:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/model/handlers/page/create/CreatePageSupport.java
===================================================================
---
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/model/handlers/page/create/CreatePageSupport.java 2009-11-13
11:14:51 UTC (rev 18679)
+++
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/model/handlers/page/create/CreatePageSupport.java 2009-11-13
11:55:29 UTC (rev 18680)
@@ -73,7 +73,8 @@
if(s.length > 0) {
setAttributeValue(getStepId(), "template", getDefaultTemplate(s));
}
- String last =
StrutsModelPlugin.getDefault().getPluginPreferences().getString(LAST_CREATE_FILE_PREFERENCE);
+ String last =
StrutsModelPlugin.getDefault().getPreferenceStore().getString(LAST_CREATE_FILE_PREFERENCE);
+// String last =
StrutsModelPlugin.getDefault().getPluginPreferences().getString(LAST_CREATE_FILE_PREFERENCE);
if(last == null || last.length() == 0) {
last = "true";
} else if(!"true".equals(last)) {
@@ -240,7 +241,8 @@
if(!canCreateFile()) return;
String lastCreateFileValue = getAttributeValue(getStepId(), "create file");
- StrutsModelPlugin.getDefault().getPluginPreferences().setDefault(LAST_CREATE_FILE_PREFERENCE,
lastCreateFileValue);
+ StrutsModelPlugin.getDefault().getPreferenceStore().setDefault(LAST_CREATE_FILE_PREFERENCE,
lastCreateFileValue);
+// StrutsModelPlugin.getDefault().getPluginPreferences().setDefault(LAST_CREATE_FILE_PREFERENCE,
lastCreateFileValue);
if(!"true".equals(lastCreateFileValue)) return;
File templateFile = null;