Author: DartPeng
Date: 2008-09-08 03:16:43 -0400 (Mon, 08 Sep 2008)
New Revision: 10137
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
Log:
fix a bug : Get data form NULL TreeItem
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-09-08
06:54:26 UTC (rev 10136)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-09-08
07:16:43 UTC (rev 10137)
@@ -446,6 +446,7 @@
Class<? extends Object> modelClass) {
for (int i = 0; i < items.length; i++) {
TreeItem item = (TreeItem) items[i];
+ if(item == null) continue;
if (item.getData(REFERENCE_MODEL) != null) {
} else {
@@ -810,7 +811,7 @@
wizard.setForcePreviousAndNextButtons(true);
StructuredDataCreationWizardDailog dialog = new StructuredDataCreationWizardDailog(
getEditorSite().getShell(), wizard);
- if (dialog.open() == Dialog.OK) {
+ if (dialog.open() == WizardDialog.OK) {
IStrucutredDataCreationWizard cw = dialog
.getCurrentCreationWizard();
String typeID = cw.getInputDataTypeID();
Show replies by date