mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-28 18:53:20 +02:00
[226365][api][breaking] SystemPromptDialog should not implement IDialogConstants
This commit is contained in:
parent
7ebf952fa2
commit
a78f26f387
1 changed files with 219 additions and 229 deletions
|
@ -133,7 +133,7 @@ import org.eclipse.swt.widgets.Shell;
|
||||||
*/
|
*/
|
||||||
public abstract class SystemPromptDialog
|
public abstract class SystemPromptDialog
|
||||||
extends org.eclipse.jface.dialogs.Dialog
|
extends org.eclipse.jface.dialogs.Dialog
|
||||||
implements Listener, IDialogConstants, ISystemPromptDialog,
|
implements Listener, ISystemPromptDialog,
|
||||||
ISystemMessageLine, org.eclipse.jface.dialogs.IDialogPage, IRunnableContext, Runnable
|
ISystemMessageLine, org.eclipse.jface.dialogs.IDialogPage, IRunnableContext, Runnable
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -897,16 +897,6 @@ public abstract class SystemPromptDialog
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Swing-like method to auto-set the size of this dialog by
|
|
||||||
* looking at the preferred sizes of all constituents.
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
protected void pack()
|
|
||||||
{
|
|
||||||
// pack = true; // defer until controls are all created.
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by createContents method.
|
* Called by createContents method.
|
||||||
* Create this dialog's widgets inside a composite.
|
* Create this dialog's widgets inside a composite.
|
||||||
|
@ -929,7 +919,7 @@ public abstract class SystemPromptDialog
|
||||||
protected void buttonPressed(int buttonId)
|
protected void buttonPressed(int buttonId)
|
||||||
{
|
{
|
||||||
okPressed = false;
|
okPressed = false;
|
||||||
if (buttonId == OK_ID)
|
if (buttonId == IDialogConstants.OK_ID)
|
||||||
{
|
{
|
||||||
//setReturnId(buttonId);
|
//setReturnId(buttonId);
|
||||||
setReturnCode(OK);
|
setReturnCode(OK);
|
||||||
|
@ -1107,7 +1097,7 @@ public abstract class SystemPromptDialog
|
||||||
|
|
||||||
private void doCancel()
|
private void doCancel()
|
||||||
{
|
{
|
||||||
super.buttonPressed(CANCEL_ID);
|
super.buttonPressed(IDialogConstants.CANCEL_ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue