Commit d08151c4 authored by Chen Wenwen's avatar Chen Wenwen
Browse files

dialog

refs 845
parent 6cd468be
/*--------------------------------------------------------------------------+
$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $
| |
| Copyright 2012 ForTISS GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.dialog;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Shell;
/**
*
* @author wenwenchen
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating YELLOW Hash: B9EA4589C043EB4BBFF0E5BA70481B11
*/
public class ChangeWarningDialog {
/** */
private static Shell shell;
/**
* @return 1 YES 0 NO -1 Exit
*/
public static int dialog() {
MessageDialog dialog =
new MessageDialog(
shell,
"Warning",
null,
"Changing the requirements type deletes all information\n"
+ "that is not contained in the new requirements type! \nContinue?",
MessageDialog.ERROR, new String[] {"NO", "YES"}, 0);
int result = dialog.open();
return result;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment