mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[197937] [ui compliance] RSE Wizards needs to show errors within the standard wizard dialog message area
This commit is contained in:
parent
f675957b70
commit
21277adca0
2 changed files with 20 additions and 27 deletions
|
@ -307,7 +307,7 @@ public abstract class AbstractSystemWizardPage
|
|||
*/
|
||||
public void clearErrorMessage()
|
||||
{
|
||||
if (msgLine!=null && !msgLine.isDisposed())
|
||||
if (msgLine != null && getControl() != null && getControl().isDisposed())
|
||||
msgLine.clearErrorMessage();
|
||||
}
|
||||
|
||||
|
@ -316,7 +316,7 @@ public abstract class AbstractSystemWizardPage
|
|||
*/
|
||||
public void clearMessage()
|
||||
{
|
||||
if (msgLine!=null && !msgLine.isDisposed())
|
||||
if (msgLine != null && getControl() != null && getControl().isDisposed())
|
||||
msgLine.clearMessage();
|
||||
}
|
||||
|
||||
|
@ -373,33 +373,36 @@ public abstract class AbstractSystemWizardPage
|
|||
pendingMessage = message;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.wizard.WizardPage#setErrorMessage(java.lang.String)
|
||||
/**
|
||||
* <b>Note:</b> Never override this method as long the {@link ISystemMessageLine}
|
||||
* construct is not eliminated from RSE! Overriding does lead easely to {@link StackOverflowError}s
|
||||
* if the subclass implementation does call the wrong methods!
|
||||
*
|
||||
* Never override this method as long the ISystemMessageLine construct is not
|
||||
* eliminated! Overriding may easely lead to StackOverflowErrors.
|
||||
* @see org.eclipse.jface.wizard.WizardPage#setErrorMessage(java.lang.String)
|
||||
*/
|
||||
public final void setErrorMessage(String message) {
|
||||
public void setErrorMessage(String message) {
|
||||
super.setErrorMessage(message);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.wizard.WizardPage#setMessage(java.lang.String, int)
|
||||
/**
|
||||
* <b>Note:</b> Never override this method as long the {@link ISystemMessageLine}
|
||||
* construct is not eliminated from RSE! Overriding does lead easely to {@link StackOverflowError}s
|
||||
* if the subclass implementation does call the wrong methods!
|
||||
*
|
||||
* Never override this method as long the ISystemMessageLine construct is not
|
||||
* eliminated! Overriding may easely lead to StackOverflowErrors.
|
||||
* @see org.eclipse.jface.wizard.WizardPage#setMessage(java.lang.String, int)
|
||||
*/
|
||||
public final void setMessage(String newMessage, int newType) {
|
||||
public void setMessage(String newMessage, int newType) {
|
||||
super.setMessage(newMessage, newType);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.jface.dialogs.DialogPage#setMessage(java.lang.String)
|
||||
/**
|
||||
* <b>Note:</b> Never override this method as long the {@link ISystemMessageLine}
|
||||
* construct is not eliminated from RSE! Overriding does lead easely to {@link StackOverflowError}s
|
||||
* if the subclass implementation does call the wrong methods!
|
||||
*
|
||||
* Never override this method as long the ISystemMessageLine construct is not
|
||||
* eliminated! Overriding may easely lead to StackOverflowErrors.
|
||||
* @see org.eclipse.jface.dialogs.DialogPage#setMessage(java.lang.String)
|
||||
*/
|
||||
public final void setMessage(String message) {
|
||||
public void setMessage(String message) {
|
||||
super.setMessage(message);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,16 +33,6 @@ public class RSEDialogPageMessageLine implements ISystemMessageLine {
|
|||
page = dialogPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if or if not the dialog page message line has been disposed.
|
||||
*
|
||||
* @return <code>True</code> when the dialog page message line is disposed, <code>false</code> otherwise.
|
||||
*/
|
||||
public boolean isDisposed() {
|
||||
assert page != null;
|
||||
return page.getControl() != null && page.getControl().isDisposed();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.rse.ui.messages.ISystemMessageLine#clearErrorMessage()
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue