import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.operation.IRunnableWithProgress;
try {
getContainer().run(true, false, op);
+ // post processing : perform OCF pages work
+ if (OcfBridgePlugin.isOcfExtensionExist() && boardPage.useIotService()) {
+ generatedFileMap = devicePage.performFinish(_newProject, new NullProgressMonitor());
+ }
+
// Additional work for OCF : Open files with editor
openWithEditor(newProjectHandle);
} catch (InterruptedException e) {
_newProject.refreshLocal(IResource.DEPTH_INFINITE, monitor);
monitor.worked(1);
-
- // post processing : perform OCF pages work
- if (OcfBridgePlugin.isOcfExtensionExist() && boardPage.useIotService()) {
- IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10);
- generatedFileMap = devicePage.performFinish(_newProject, subMonitor);
- }
- monitor.worked(1);
}
private IProject createNewProject(IProject newProjectHandle, URI location, IProgressMonitor monitor) {