private IStatus export(JarPackageData[] jarPackages) { Shell shell= getShell(); IJarExportRunnable op= jarPackages[0].createJarExportRunnable(jarPackages, shell); try { PlatformUI.getWorkbench().getActiveWorkbenchWindow().run(false, true, op); //PlatformUI.getWorkbench().getProgressService().run(false, true, op); // see bug 118152 } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, shell, JarPackagerMessages.CreateJarActionDelegate_jarExportError_title, JarPackagerMessages.CreateJarActionDelegate_jarExportError_message); return null; } } catch (InterruptedException e) { // do nothing on cancel return null; } return op.getStatus(); }
private IStatus export(JarPackageData[] jarPackages) { Shell shell= getShell(); IJarExportRunnable op= jarPackages[0].createJarExportRunnable(jarPackages, shell); try { PlatformUI.getWorkbench().getActiveWorkbenchWindow().run(false, true, op); //PlatformUI.getWorkbench().getProgressService().run(false, true, op); // see bug 118152 } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, shell, JarPackagerMessages.CreateJarActionDelegate_jarExportError_title, JarPackagerMessages.CreateJarActionDelegate_jarExportError_message); return null; } } catch (InterruptedException e) { // do nothing on cancel return null; } return op.getStatus(); }
private IStatus export(JarPackageData[] jarPackages) { Shell shell= getShell(); IJarExportRunnable op= jarPackages[0].createJarExportRunnable(jarPackages, shell); try { PlatformUI.getWorkbench().getActiveWorkbenchWindow().run(false, true, op); //PlatformUI.getWorkbench().getProgressService().run(false, true, op); // see bug 118152 } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, shell, JarPackagerMessages.CreateJarActionDelegate_jarExportError_title, JarPackagerMessages.CreateJarActionDelegate_jarExportError_message); return null; } } catch (InterruptedException e) { // do nothing on cancel return null; } return op.getStatus(); }
/** * Exports the JAR package. * * @return a boolean indicating success or failure */ protected boolean executeExportOperation(IJarExportRunnable op) { try { getContainer().run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, getShell(), JarPackagerMessages.JarPackageWizard_jarExportError_title, JarPackagerMessages.JarPackageWizard_jarExportError_message); return false; } } IStatus status= op.getStatus(); if (!status.isOK()) { ErrorDialog.openError(getShell(), JarPackagerMessages.JarPackageWizard_jarExport_title, null, status); return !(status.matches(IStatus.ERROR)); } return true; }
/** * Exports the JAR package. * * @return a boolean indicating success or failure */ protected boolean executeExportOperation(IJarExportRunnable op) { try { getContainer().run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, getShell(), JarPackagerMessages.JarPackageWizard_jarExportError_title, JarPackagerMessages.JarPackageWizard_jarExportError_message); return false; } } IStatus status= op.getStatus(); if (!status.isOK()) { ErrorDialog.openError(getShell(), JarPackagerMessages.JarPackageWizard_jarExport_title, null, status); return !(status.matches(IStatus.ERROR)); } return true; }
/** * Exports the JAR package. * * @param op the op * @return a boolean indicating success or failure */ protected boolean executeExportOperation(IJarExportRunnable op) { try { getContainer().run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, getShell(), JarPackagerMessages.JarPackageWizard_jarExportError_title, JarPackagerMessages.JarPackageWizard_jarExportError_message); return false; } } IStatus status= op.getStatus(); if (!status.isOK()) { ErrorDialog.openError(getShell(), JarPackagerMessages.JarPackageWizard_jarExport_title, null, status); return !(status.matches(IStatus.ERROR)); } return true; }
/** * Exports the JAR package. * * @param op the op * @return a boolean indicating success or failure */ protected boolean executeExportOperation(IJarExportRunnable op) { try { getContainer().run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException ex) { if (ex.getTargetException() != null) { ExceptionHandler.handle(ex, getShell(), JarPackagerMessages.JarPackageWizard_jarExportError_title, JarPackagerMessages.JarPackageWizard_jarExportError_message); return false; } } IStatus status= op.getStatus(); if (!status.isOK()) { ErrorDialog.openError(getShell(), JarPackagerMessages.JarPackageWizard_jarExport_title, null, status); return !(status.matches(IStatus.ERROR)); } return true; }
IStatus status= op.getStatus(); if (!status.isOK()) { if (!wizardPageStatus.isOK()) {
IStatus status= op.getStatus(); if (!status.isOK()) { if (!wizardPageStatus.isOK()) {
IStatus status= op.getStatus(); if (!status.isOK()) { if (!wizardPageStatus.isOK()) {