/** * Update the dialog's status line to reflect the given status. It is safe to call * this method before the dialog has been opened. */ protected void updateStatus(IStatus status) { super.updateStatus(status); }
public void updateStatus(IStatus status) { int count= 0; for (int i= 0; i < fPages.length; i++) { count+= fPages[i].getSelectedCleanUpCount(); } if (count == 0) { super.updateStatus(new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, SaveParticipantMessages.CleanUpSaveParticipantConfigurationModifyDialog_SelectAnAction_Error)); } else { if (status == null) { super.updateStatus(StatusInfo.OK_STATUS); } else { super.updateStatus(status); } } }
@Override public void updateStatus(IStatus status) { int count= 0; for (int i= 0; i < fPages.length; i++) { count+= fPages[i].getSelectedCleanUpCount(); } if (count == 0) { super.updateStatus(new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, getEmptySelectionMessage())); } else { if (status == null) { super.updateStatus(StatusInfo.OK_STATUS); } else { super.updateStatus(status); } } }
public void updateStatus(IStatus status) { if (status == null) { doValidate(); } else { super.updateStatus(status); } }
@Override public void updateStatus(IStatus status) { if (status == null) { doValidate(); } else { super.updateStatus(status); } }
@Override public void updateStatus(IStatus status) { if (status == null) { doValidate(); } else { super.updateStatus(status); } }
@Override public void updateStatus(IStatus status) { int count= 0; for (int i= 0; i < fPages.length; i++) { count+= fPages[i].getSelectedCleanUpCount(); } if (count == 0) { super.updateStatus(new Status(IStatus.ERROR, JavaUI.ID_PLUGIN, getEmptySelectionMessage())); } else { if (status == null) { super.updateStatus(StatusInfo.OK_STATUS); } else { super.updateStatus(status); } } }
protected void updateStatus(IStatus status) { super.updateStatus(status); Shell shell= getShell(); if (shell != null && ! shell.isDisposed()) { Point size= shell.getSize(); Point minSize= shell.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); if (minSize.x > size.x || minSize.y > size.y) { shell.setSize(minSize); } } } }
@Override protected void updateStatus(IStatus status) { super.updateStatus(status); Shell shell= getShell(); if (shell != null && ! shell.isDisposed()) { Point size= shell.getSize(); Point minSize= shell.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); if (minSize.x > size.x || minSize.y > size.y) { shell.setSize(minSize); } } } }
@Override protected void updateStatus(IStatus status) { super.updateStatus(status); Shell shell= getShell(); if (shell != null && ! shell.isDisposed()) { Point size= shell.getSize(); Point minSize= shell.computeSize(SWT.DEFAULT, SWT.DEFAULT, true); if (minSize.x > size.x || minSize.y > size.y) { shell.setSize(minSize); } } } }
public void create() { super.create(); if (fLastStatus != null) { // policy: dialogs are not allowed to come up with an error message if (fLastStatus.matches(IStatus.ERROR)) { // remove the message fLastStatus = new Status(IStatus.ERROR, fLastStatus.getPlugin(), fLastStatus.getCode(), "", fLastStatus.getException()); //$NON-NLS-1$ } updateStatus(fLastStatus); } }
@Override public void create() { super.create(); if (fLastStatus != null) { // policy: dialogs are not allowed to come up with an error message if (fLastStatus.matches(IStatus.ERROR)) { // remove the message fLastStatus = new Status(IStatus.ERROR, fLastStatus.getPlugin(), fLastStatus.getCode(), "", fLastStatus.getException()); //$NON-NLS-1$ } updateStatus(fLastStatus); } }
@Override public void create() { super.create(); if (fLastStatus != null) { // policy: dialogs are not allowed to come up with an error message if (fLastStatus.matches(IStatus.ERROR)) { // remove the message fLastStatus = new Status(IStatus.ERROR, fLastStatus.getPlugin(), fLastStatus.getCode(), "", fLastStatus.getException()); //$NON-NLS-1$ } updateStatus(fLastStatus); } }