protected void doStatusUpdate() { if (projectCombo != null) { projectStatus = projectText.trim().equals("") ? Util.getErrorStatus("Project cannot be empty") : Util.okStatus; // $NON-NLS-2$ } if (moduleCombo != null) { moduleStatus = moduleText.trim().equals("") ? Util.getErrorStatus("Module cannot be empty") : Util.okStatus; // $NON-NLS-2$ } if (serviceUriText != null) { serviceUriStatus = serviceUri.trim().equals("") ? Util.getErrorStatus("Service URI cannot be empty") : Util.okStatus; // $NON-NLS-2$ } IStatus[] status = new IStatus[] { projectStatus, moduleStatus, fTypeNameStatus, fSuperInterfacesStatus, serviceUriStatus }; updateStatus(status); }
// @Override public void createType(IProgressMonitor monitor) throws CoreException, InterruptedException { monitor = Util.getNonNullMonitor(monitor); isImplCreation = false; super.createType(monitor); isImplCreation = true; try { addServletToWebXml(new SubProgressMonitor(monitor, 1)); createRemoteServiceImpl(new SubProgressMonitor(monitor, 2)); addServletToGwtXml(new SubProgressMonitor(monitor, 3)); } catch (Exception e) { Activator.logException(e); throw new CoreException(Util.getErrorStatus(e.getMessage())); } }