1
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.BrowserHelpContext;
24
25 import javax.swing.JLabel;
26 import javax.swing.JPanel;
27
28
31 public class IncompleteAnalysisDialog extends HelpButtonDialog {
32
35 public IncompleteAnalysisDialog() {
36 super(new QStudioGlobal().getFrame());
37 createGui();
38 setHelpContext();
39 }
40
41
44 protected void createGui() {
45 final MessageResource resources = MessageResource.getClientInstance();
46 final String[] buttons = { resources.getString("BUTTON_005") };
47
48 setModal(true);
49 setTitle(resources.getString("WINDOWTITLE_001"));
50 final JPanel panel = new JPanel();
51 final JLabel lMessage = new JLabel(resources.getString("MESSAGE_180"));
52 panel.add(lMessage);
53 setContent(panel);
54 setButtons(buttons);
55 pack();
56 }
57
58
61 private void setHelpContext() {
62 final BrowserHelpContext helpContext = new BrowserHelpContext();
63 helpContext.setContext(BrowserHelpContext.HELP);
64 helpContext.setTutorial("IncompleteAnalysis");
65 setHelpContext(helpContext);
66 }
67 }
68