1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-28 10:43:31 +02:00

[226365][api][breaking] SystemPromptDialog should not implement IDialogConstants

This commit is contained in:
Martin Oberhuber 2008-04-09 20:42:15 +00:00
parent 7ebf952fa2
commit a78f26f387

View file

@ -133,7 +133,7 @@ import org.eclipse.swt.widgets.Shell;
*/
public abstract class SystemPromptDialog
extends org.eclipse.jface.dialogs.Dialog
implements Listener, IDialogConstants, ISystemPromptDialog,
implements Listener, ISystemPromptDialog,
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.
* Create this dialog's widgets inside a composite.
@ -929,7 +919,7 @@ public abstract class SystemPromptDialog
protected void buttonPressed(int buttonId)
{
okPressed = false;
if (buttonId == OK_ID)
if (buttonId == IDialogConstants.OK_ID)
{
//setReturnId(buttonId);
setReturnCode(OK);
@ -1107,7 +1097,7 @@ public abstract class SystemPromptDialog
private void doCancel()
{
super.buttonPressed(CANCEL_ID);
super.buttonPressed(IDialogConstants.CANCEL_ID);
}
/**