Author: scabanovich
Date: 2012-01-26 14:27:16 -0500 (Thu, 26 Jan 2012)
New Revision: 38215
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java
Log:
JBIDE-6132
https://issues.jboss.org/browse/JBIDE-6132
Do not create instance of preference XModel when it is not necessary .
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java 2012-01-26
19:22:53 UTC (rev 38214)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/appregister/AppRegisterComponent.java 2012-01-26
19:27:16 UTC (rev 38215)
@@ -44,8 +44,8 @@
import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.meta.action.impl.XEntityDataImpl;
import org.jboss.tools.common.meta.action.impl.handlers.HUtil;
-import org.jboss.tools.common.meta.constraint.XAttributeEditor;
import org.jboss.tools.common.meta.constraint.impl.XAttributeEditorImpl;
+import org.jboss.tools.common.meta.impl.XModelMetaDataImpl;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.options.PreferenceModelUtilities;
import org.jboss.tools.common.model.util.XModelObjectUtil;
@@ -135,7 +135,7 @@
}
void initDisablingContextRoot() {
- XModelEntity entity =
PreferenceModelUtilities.getPreferenceModel().getMetaData().getEntity(ENTITY);
+ XModelEntity entity = XModelMetaDataImpl.getInstance().getEntity(ENTITY);
XAttribute attr = entity.getAttribute(ATTR_APP_NAME);
XAttributeEditorImpl ed = (XAttributeEditorImpl)attr.getEditor();
if(disableContextRoot) {