monitorInternal = new NullProgressMonitor();
}
monitorInternal.beginTask(NewWizardMessages.NewTypeWizardPage_operationdesc, 8);
IPackageFragmentRoot root = getPackageFragmentRoot();
IPackageFragment pack = getPackageFragment();
if (pack == null) {
pack = root.getPackageFragment(""); //$NON-NLS-1$
}
if (!pack.exists()) {
String packName = pack.getElementName();
pack = root.createPackageFragment(packName, true, new SubProgressMonitor(monitorInternal, 1));
} else {
monitorInternal.worked(1);
}
boolean needsSave;