Author: DartPeng
Date: 2008-08-16 05:01:37 -0400 (Sat, 16 Aug 2008)
New Revision: 9756
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java
Log:
some change
Modified:
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java
===================================================================
---
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java 2008-08-16
08:59:45 UTC (rev 9755)
+++
workspace/dart/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/TransformDataWizardSelectionPage.java 2008-08-16
09:01:37 UTC (rev 9756)
@@ -32,8 +32,6 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorSite;
import org.jboss.tools.smooks.ui.IStrucutredDataCreationWizard;
import org.jboss.tools.smooks.ui.IViewerInitor;
import org.jboss.tools.smooks.ui.ViewerInitorStore;
@@ -72,7 +70,8 @@
IWizardNode node = (IWizardNode) selection.getFirstElement();
if (node != null) {
setSelectedNode(node);
- IStrucutredDataCreationWizard wizard =
(IStrucutredDataCreationWizard)node.getWizard();
+ IStrucutredDataCreationWizard wizard = (IStrucutredDataCreationWizard) node
+ .getWizard();
TransformDataSelectionWizard pw = (TransformDataSelectionWizard) getWizard();
wizard.init(pw.getSite(), pw.getInput());
}
@@ -123,7 +122,11 @@
for (Iterator iterator = viewers.iterator(); iterator.hasNext();) {
IViewerInitor viewerInitor = (IViewerInitor) iterator.next();
TransformSelectWizardNode wn = new TransformSelectWizardNode();
- wn.setWizard(viewerInitor.getStructuredDataLoadWizard());
+ IStrucutredDataCreationWizard wizard = viewerInitor
+ .getStructuredDataLoadWizard();
+ if (wizard == null)
+ continue;
+ wn.setWizard(wizard);
wn.setName(viewerInitor.getName());
wn.setIconPath(viewerInitor.getWizardIconPath());
this.registedWizard.add(wn);
@@ -150,7 +153,7 @@
if (path != null) {
Image icon = (Image) map.get(path);
if (icon == null) {
-
+
}
}
}
Show replies by date