/** * @see ResourceStateValidator#checkActivation(ResourceStateValidatorPresenter) */ public void checkActivation(ResourceStateValidatorPresenter presenter) throws CoreException { getStateValidator().checkActivation(presenter); }
protected boolean checkReadOnly() { fHasReadOnlyFiles = fValidator.checkReadOnly(); return fHasReadOnlyFiles; }
/** * @see ResourceStateValidator#checkSave(ResourceStateValidatorPresenter) */ public boolean checkSave(ResourceStateValidatorPresenter presenter) throws CoreException { return getStateValidator().checkSave(presenter); }
public IStatus validateState() { IWorkbench wb = PlatformUI.getWorkbench(); if ((fShell==null) && (wb != null && (wb.getActiveWorkbenchWindow() != null))) fShell=wb.getActiveWorkbenchWindow().getShell(); if (fNeedsStateValidation) { setNeedsStateValidation(false); try { final IStatus status = fValidator.validateState(this); if (status.getSeverity() == IStatus.ERROR) { setNeedsStateValidation(true); if (!fMessageUp) { fMessageUp = true; Display.getDefault().asyncExec(new Runnable() { public void run() { MessageDialog.openError(getShell(), J2EEUIMessages.getResourceString("Error_checking_out_files_10"), status.getMessage()); //$NON-NLS-1$ } }); fMessageUp = false; } } fValidator.checkActivation(this); updatePartReadOnly(); return status; } catch (CoreException e) { // do nothing for now } } return ResourceStateValidator.OK_STATUS; }
/** * @see ResourceStateValidator#lostActivation(ResourceStateValidatorPresenter) */ public void lostActivation(ResourceStateValidatorPresenter presenter) throws CoreException { getStateValidator().lostActivation(presenter); }
/** * @see ResourceStateValidator#validateState(ResourceStateValidatorPresenter) */ public IStatus validateState(ResourceStateValidatorPresenter presenter) throws CoreException { if (presenter == null) return Status.OK_STATUS; return getStateValidator().validateState(presenter); }
/** * @see ResourceStateValidator#lostActivation(ResourceStateValidatorPresenter) */ public void lostActivation(ResourceStateValidatorPresenter presenter) throws CoreException { getStateValidator().lostActivation(presenter); }
public IStatus validateState(ResourceStateValidatorPresenter presenter) throws CoreException { if (presenter == null) return Status.OK_STATUS; return getStateValidator().validateState(presenter); }
/** * @see ResourceStateValidator#checkSave(ResourceStateValidatorPresenter) */ public boolean checkSave(ResourceStateValidatorPresenter presenter) throws CoreException { return getStateValidator().checkSave(presenter); }
public void lostActivation(ResourceStateValidatorPresenter presenter) throws CoreException { getStateValidator().lostActivation(presenter); }
/** * @see ResourceStateValidator#checkReadOnly() */ public boolean checkReadOnly() { return getStateValidator().checkReadOnly(); }
/** * @see ResourceStateValidator#checkActivation(ResourceStateValidatorPresenter) */ public void checkActivation(ResourceStateValidatorPresenter presenter) throws CoreException { getStateValidator().checkActivation(presenter); }
/** * @see ResourceStateValidator#validateState(ResourceStateValidatorPresenter) */ public IStatus validateState(ResourceStateValidatorPresenter presenter) throws CoreException { return getStateValidator().validateState(presenter); }
public boolean checkSave(ResourceStateValidatorPresenter presenter) throws CoreException { return getStateValidator().checkSave(presenter); }
/** * @see org.eclipse.ui.IPartListener#partDeactivated(IWorkbenchPart) */ public void partDeactivated(IWorkbenchPart part) { if (part == fPart) { if (fIsDeactivating) return; fIsDeactivating = true; try { fValidator.lostActivation(this); updatePartReadOnly(); } catch (CoreException e) { // do nothing for now } finally { fIsDeactivating = true; } } }
/** * @see ResourceStateValidator#checkReadOnly() */ public boolean checkReadOnly() { return getStateValidator().checkReadOnly(); }
protected void handleActivation() { if (fIsActivating) return; fIsActivating = true; try { fValidator.checkActivation(this); updatePartReadOnly(); } catch (CoreException e) { // do nothing for now } finally { fIsActivating = false; } }
public boolean checkSave() throws CoreException { return validateState().isOK() && getValidator().checkSave(this); }
public boolean checkReadOnly() { return getStateValidator().checkReadOnly(); }
public void checkActivation(ResourceStateValidatorPresenter presenter) throws CoreException { getStateValidator().checkActivation(presenter); }