ResourcesPlugin.getWorkspace().getRoot(), false, PHPWizardMessages
.getString("WizardPage.selectNewFileContainer"));
if (dialog.open() == ContainerSelectionDialog.OK) {
- Object[] result = dialog.getResult();
- if (result.length == 1) {
- IContainer container = (IContainer) result[0];
- containerText.setText(container.getFullPath().toString());
+ Object[] results = dialog.getResult();
+ if (results.length == 1) {
+ Object result=results[0];
+ if (result instanceof IPath) {
+ IPath ipath = (IPath) result;
+ containerText.setText(ipath.toString());
+ }
}
}
}