Author: scabanovich
Date: 2012-01-26 18:22:39 -0500 (Thu, 26 Jan 2012)
New Revision: 38231
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/DecoratorTextPreferencesPage.java
Log:
JBIDE-6132
https://issues.jboss.org/browse/JBIDE-6132
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/DecoratorTextPreferencesPage.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/DecoratorTextPreferencesPage.java 2012-01-26
22:48:16 UTC (rev 38230)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/preferences/DecoratorTextPreferencesPage.java 2012-01-26
23:22:39 UTC (rev 38231)
@@ -43,8 +43,8 @@
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.dialogs.CheckedTreeSelectionDialog;
+import org.jboss.tools.common.model.XModelFactory;
import org.jboss.tools.common.model.XModelObject;
-import org.jboss.tools.common.model.options.PreferenceModelUtilities;
import org.jboss.tools.common.model.ui.ModelUIMessages;
import
org.jboss.tools.common.model.ui.attribute.adapter.DefaultXModelObjectLabelProvider;
import org.jboss.tools.common.model.ui.navigator.decorator.DecoratorManager;
@@ -102,7 +102,7 @@
} else if(element instanceof String) {
entity =
DecoratorManager.getInstance().getBaseEntityForPartition(element.toString());
}
- XModelObject o = entity == null ? null :
PreferenceModelUtilities.getPreferenceModel().createModelObject(entity, new
Properties());
+ XModelObject o = entity == null ? null :
XModelFactory.getDefaultInstance().createModelObject(entity, new Properties());
return (o != null) ? EclipseResourceUtil.getImage(o) : null;
}