IncompleteAnalysisDialogSwt.java |
1 /** 2 * QJ-Pro 3 * Copyright (c) 2004, http://qjpro.sourceforge.net 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License as published by the 7 * Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 13 * details. 14 * 15 * You should have received a copy of the GNU General Public License along with 16 * this program; if not, write to the Free Software Foundation, Inc., 17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 package com.qasystems.qstudio.java.gui.dialog; 20 21 import com.qasystems.international.MessageResource; 22 import com.qasystems.qstudio.java.QStudioGlobal; 23 import com.qasystems.qstudio.java.browser.EditionBrowser; 24 25 import org.eclipse.jface.dialogs.MessageDialog; 26 27 /** 28 * SWT version of the Analysis incomplete dialog 29 */ 30 public class IncompleteAnalysisDialogSwt { 31 /** 32 * Creates a new IncompleteAnalysisDialogSwt object. 33 */ 34 public IncompleteAnalysisDialogSwt() { 35 super(); 36 } 37 38 /** 39 * Show the Analisis Incomplete dialog 40 */ 41 public void show() { 42 final MessageResource resources = MessageResource.getClientInstance(); 43 final String[] buttons = 44 { resources.getString("BUTTON_005"), resources.getString("BUTTON_031"), }; 45 46 MessageDialog dialog = 47 new MessageDialog( 48 QStudioGlobal.getShell(), resources.getString("WINDOWTITLE_020"), null, 49 resources.getString("MESSAGE_180"), 0, buttons, 0 50 ); 51 int result = dialog.open(); 52 53 if (result == 1) { 54 new EditionBrowser().openTutorial("IncompleteAnalysis"); 55 } 56 } 57 } 58