Author: vrubezhny
Date: 2007-10-25 14:32:27 -0400 (Thu, 25 Oct 2007)
New Revision: 4522
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteModel.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1179 NPE in palette
The waiting for the model is loaded is added to the Palette Model initialization
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteModel.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteModel.java 2007-10-25
17:44:49 UTC (rev 4521)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.ui.palette/src/org/jboss/tools/vpe/ui/palette/model/PaletteModel.java 2007-10-25
18:32:27 UTC (rev 4522)
@@ -24,8 +24,14 @@
import org.jboss.tools.common.model.ui.views.palette.PaletteContents;
import org.jboss.tools.common.model.ui.views.palette.editor.PaletteEditor;
import org.jboss.tools.common.model.ui.util.ModelUtilities;
+import org.jboss.tools.common.model.util.ClassLoaderUtil;
public class PaletteModel {
+
+ static {
+ ClassLoaderUtil.init();
+ }
+
private static PaletteModel instance = null;
private static Object monitor = new Object();