Mercurial > projects > dwt-addons
diff dwtx/jface/dialogs/MessageDialogWithToggle.d @ 70:46a6e0e6ccd4
Merge with d-fied sources of 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 01:36:46 +0200 |
parents | ea8ff534f622 |
children | c3583c6ec027 |
line wrap: on
line diff
--- a/dwtx/jface/dialogs/MessageDialogWithToggle.d Mon May 19 13:41:06 2008 +0200 +++ b/dwtx/jface/dialogs/MessageDialogWithToggle.d Thu May 22 01:36:46 2008 +0200 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -701,9 +701,16 @@ return IDialogConstants.NO_TO_ALL_ID; } + if (IDialogConstants.SHOW_DETAILS_LABEL.equals(buttonLabel)) { + return IDialogConstants.DETAILS_ID; + } + + if (IDialogConstants.HIDE_DETAILS_LABEL.equals(buttonLabel)) { + return IDialogConstants.DETAILS_ID; + } + // No XXX_LABEL in IDialogConstants for these. Unlikely // they would be used in a message dialog though. - // public int DETAILS_ID = 13; // public int SELECT_ALL_ID = 18; // public int DESELECT_ALL_ID = 19; // public int SELECT_TYPES_ID = 20;