00001 package edu.ksu.cis.bandera.bui;
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 import javax.swing.tree.*;
00036 import java.io.*;
00037 import java.util.*;
00038 import java.awt.event.*;
00039 import javax.swing.*;
00040 import edu.ksu.cis.bandera.bui.session.*;
00041 import edu.ksu.cis.bandera.bui.session.datastructure.*;
00042 import edu.ksu.cis.bandera.jjjc.*;
00043 import edu.ksu.cis.bandera.specification.datastructure.*;
00044 import edu.ksu.cis.bandera.specification.assertion.datastructure.*;
00045 import edu.ksu.cis.bandera.specification.predicate.datastructure.*;
00046 import edu.ksu.cis.bandera.abstraction.*;
00047 import edu.ksu.cis.bandera.abstraction.gui.*;
00048 import edu.ksu.cis.bandera.pdgslicer.dependency.*;
00049 public class BUI extends JFrame {
00050 public static BUI bui;
00051 public static Sessions sessions = new Sessions();
00052 public static Property property = new Property();
00053 public static SessionManager manager;
00054 static PatternManager patternManager;
00055 static PredicateBrowser predicateBrowser;
00056 static AssertionBrowser assertionBrowser;
00057 public static BUISessionPane sessionPane;
00058 public static PropertyManager propertyManager;
00059 static AbstractionLibraryManager abstractionLibraryManager;
00060 public static TypeGUI typeGUI;
00061 public static SpinOption spinOption;
00062 public static IROptions irOptions;
00063 static DSpinOption dSpinOption;
00064 static JPFOption jpfOption;
00065 static boolean doJJJC = true;
00066 static boolean doSlicer = false;
00067 static boolean doSLABS = false;
00068 static boolean doChecker = false;
00069 public static boolean isExecuting = false;
00070 public static String originalUserDir = System.getProperty("user.dir");
00071 private JPanel ivjBUIContentPane = null;
00072 private JMenuBar ivjBUIJMenuBar = null;
00073 private JMenuItem ivjExitMenuItem = null;
00074 private JSeparator ivjJSeparator1 = null;
00075 private JMenuItem ivjNewMenuItem = null;
00076 private JMenuItem ivjOpenMenuItem = null;
00077 private JMenuItem ivjSaveAsMenuItem = null;
00078 private JMenuItem ivjSaveMenuItem = null;
00079 private JToolBar ivjBUIToolBar = null;
00080 private JButton ivjRunToolBarButton = null;
00081 private JButton ivjJ3CToolBarButton = null;
00082 private JButton ivjSlicerToolBarButton = null;
00083 private JButton ivjBircToolBarButton = null;
00084 private JButton ivjABPSToolBarButton = null;
00085 private JLabel ivjBanderaLabel = null;
00086 private JMenuItem ivjPropertyManagerMenuItem = null;
00087 private JMenu ivjSpecificationMenu = null;
00088 private JMenuItem ivjAbstractionManagerMenuItem = null;
00089 private JMenu ivjAbstractionMenu = null;
00090 private JPanel ivjBottomPanel = null;
00091 private JMenuItem ivjAboutMenuItem = null;
00092 private JMenu ivjHelpMenu = null;
00093 private JSeparator ivjJSeparator2 = null;
00094 private JButton ivjSeparator1ToolBarButton = null;
00095 private JMenu ivjSessionMenu = null;
00096 private JSeparator ivjJSeparator4 = null;
00097 private JMenuItem ivjManagerMenuItem = null;
00098 private JMenuItem ivjPatternManagerMenuItem = null;
00099 private JMenuItem ivjPredicateBrowserMenuItem = null;
00100 private JMenuItem ivjAssertionBrowserMenuItem = null;
00101 IvjEventHandler ivjEventHandler = new IvjEventHandler();
00102 private JButton ivjNewToolBarButton = null;
00103 private JButton ivjSeparator1ToolBarButton1 = null;
00104 private JButton ivjOpenToolBarButton = null;
00105 private JButton ivjSaveAsToolBarButton = null;
00106 private JButton ivjSaveToolBarButton = null;
00107 private JButton ivjAssertionToolBarButton = null;
00108 private JToolBar ivjBUIMiddleToolBar = null;
00109 private JPanel ivjBUIMiddleToolbarPanel = null;
00110 private JPanel ivjBUIToolbarPanel = null;
00111 private JPanel ivjBUITopToolbarPanel = null;
00112 private JButton ivjPatternToolBarButton = null;
00113 private JButton ivjPredicateToolBarButton = null;
00114 private JButton ivjPropertyToolBarButton = null;
00115 private JButton ivjSeparator1ToolBarButton11 = null;
00116 private JButton ivjSeparator1ToolBarButton111 = null;
00117 private JButton ivjSessionToolBarButton = null;
00118 private JButton ivjDependToolBarButton = null;
00119 private JButton ivjAbstractionToolBarButton = null;
00120 private JButton ivjSeparator1ToolBarButton1111 = null;
00121 private JPanel ivjCheckerPanel = null;
00122 private JLabel ivjJPFLabel = null;
00123 private JLabel ivjNuSMVLabel = null;
00124 private JLabel ivjSpinLabel = null;
00125 private JMenuItem ivjIRMenuItem = null;
00126 private JSeparator ivjJSeparator3 = null;
00127 private JMenuItem ivjAbstractionLibraryManagerMenuItem = null;
00128 private JSeparator ivjJSeparator5 = null;
00129
00130 class IvjEventHandler implements java.awt.event.ActionListener {
00131 public void actionPerformed(java.awt.event.ActionEvent e) {
00132 if (e.getSource() == BUI.this.getExitMenuItem())
00133 connEtoC2();
00134 if (e.getSource() == BUI.this.getManagerMenuItem())
00135 connEtoC1();
00136 if (e.getSource() == BUI.this.getJ3CToolBarButton())
00137 connEtoC3();
00138 if (e.getSource() == BUI.this.getSlicerToolBarButton())
00139 connEtoC4();
00140 if (e.getSource() == BUI.this.getABPSToolBarButton())
00141 connEtoC5();
00142 if (e.getSource() == BUI.this.getBircToolBarButton())
00143 connEtoC6();
00144 if (e.getSource() == BUI.this.getRunToolBarButton())
00145 connEtoC7();
00146 if (e.getSource() == BUI.this.getPatternManagerMenuItem())
00147 connEtoC8();
00148 if (e.getSource() == BUI.this.getSaveMenuItem())
00149 connEtoC9();
00150 if (e.getSource() == BUI.this.getSaveAsMenuItem())
00151 connEtoC10();
00152 if (e.getSource() == BUI.this.getOpenMenuItem())
00153 connEtoC11();
00154 if (e.getSource() == BUI.this.getNewMenuItem())
00155 connEtoC12();
00156 if (e.getSource() == BUI.this.getPredicateBrowserMenuItem())
00157 connEtoC13();
00158 if (e.getSource() == BUI.this.getPropertyManagerMenuItem())
00159 connEtoC14();
00160 if (e.getSource() == BUI.this.getAbstractionManagerMenuItem())
00161 connEtoC16();
00162 if (e.getSource() == BUI.this.getAboutMenuItem())
00163 connEtoC17();
00164 if (e.getSource() == BUI.this.getAssertionBrowserMenuItem())
00165 connEtoC18();
00166 if (e.getSource() == BUI.this.getSaveToolBarButton())
00167 connEtoC19();
00168 if (e.getSource() == BUI.this.getSaveAsToolBarButton())
00169 connEtoC20();
00170 if (e.getSource() == BUI.this.getOpenToolBarButton())
00171 connEtoC21();
00172 if (e.getSource() == BUI.this.getNewToolBarButton())
00173 connEtoC22();
00174 if (e.getSource() == BUI.this.getSessionToolBarButton())
00175 connEtoC23();
00176 if (e.getSource() == BUI.this.getAssertionToolBarButton())
00177 connEtoC24();
00178 if (e.getSource() == BUI.this.getPredicateToolBarButton())
00179 connEtoC25();
00180 if (e.getSource() == BUI.this.getPatternToolBarButton())
00181 connEtoC26();
00182 if (e.getSource() == BUI.this.getPropertyToolBarButton())
00183 connEtoC27();
00184 if (e.getSource() == BUI.this.getDependToolBarButton())
00185 connEtoC28();
00186 if (e.getSource() == BUI.this.getAbstractionToolBarButton())
00187 connEtoC15();
00188 if (e.getSource() == BUI.this.getIRMenuItem())
00189 connEtoC29();
00190 if (e.getSource() == BUI.this.getAbstractionLibraryManagerMenuItem())
00191 connEtoC30();
00192 };
00193 };
00194
00195
00196
00197 public BUI() {
00198 super();
00199 initialize();
00200 }
00201
00202
00203
00204 public void aboutMenuItem_ActionEvents() {
00205 AboutBox box = new AboutBox();
00206 box.show();
00207 }
00208
00209
00210
00211 public void aBPSToolBarButton_ActionEvents() {
00212 Icon temp = getABPSToolBarButton().getPressedIcon();
00213 getABPSToolBarButton().setPressedIcon(getABPSToolBarButton().getIcon());
00214 getABPSToolBarButton().setIcon(temp);
00215 doSLABS = !doSLABS;
00216 try {
00217 sessions.getActiveSession().setDoSLABS(doSLABS);
00218 manager.updateInfo(sessions.getActiveSession());
00219 } catch (Exception e) {}
00220 }
00221
00222
00223
00224 public void abstractionLibraryManagerMenuItem_ActionEvents() {
00225 abstractionLibraryManager.setVisible(true);
00226 }
00227
00228
00229
00230 public void abstractionManagerMenuItem_ActionEvents() {
00231 typeGUI.setVisible(true);
00232 }
00233
00234
00235
00236 public void abstractionToolBarButton_ActionEvents() {
00237 abstractionManagerMenuItem_ActionEvents();
00238 }
00239
00240
00241
00242 public void assertionBrowserMenuItem_ActionEvents() {
00243 assertionBrowser.setVisible(true);
00244 }
00245
00246
00247
00248 public void assertionToolBarButton_ActionEvents() {
00249 assertionBrowserMenuItem_ActionEvents();
00250 }
00251
00252
00253
00254 public void bircToolBarButton_ActionEvents() {
00255 Icon temp = getBircToolBarButton().getPressedIcon();
00256 getBircToolBarButton().setPressedIcon(getBircToolBarButton().getIcon());
00257 getBircToolBarButton().setIcon(temp);
00258 doChecker = !doChecker;
00259 try {
00260 sessions.getActiveSession().setDoChecker(doChecker);
00261 manager.updateInfo(sessions.getActiveSession());
00262 } catch (Exception e) {}
00263 }
00264
00265
00266
00267
00268 private void changeSessions(Sessions sessions) {
00269 this.sessions = sessions;
00270 CompilationManager.reset();
00271 PredicateSet.reset();
00272 AssertionSet.reset();
00273
00274 sessionPane.updateLeftTree();
00275
00276 manager.dispose();
00277 manager = new SessionManager();
00278 manager.updateSessionManager();
00279 manager.setVisible(true);
00280
00281
00282
00283
00284
00285
00286 PredicateSet.reset();
00287 AssertionSet.reset();
00288
00289 assertionBrowser.updateTree();
00290 predicateBrowser.updateTree();
00291
00292 boolean f = propertyManager.isVisible();
00293 propertyManager.dispose();
00294 propertyManager.setVisible(f);
00295
00296 jpfOption.setVisible(false);
00297 jpfOption.dispose();
00298 spinOption.setVisible(false);
00299 typeGUI.setFile(null);
00300 }
00301
00302
00303
00304
00305 private void connEtoC1() {
00306 try {
00307
00308
00309 this.managerMenuItem_ActionEvents();
00310
00311
00312 } catch (java.lang.Throwable ivjExc) {
00313
00314
00315 handleException(ivjExc);
00316 }
00317 }
00318
00319
00320
00321
00322 private void connEtoC10() {
00323 try {
00324
00325
00326 this.saveAsMenuItem_ActionEvents();
00327
00328
00329 } catch (java.lang.Throwable ivjExc) {
00330
00331
00332 handleException(ivjExc);
00333 }
00334 }
00335
00336
00337
00338
00339 private void connEtoC11() {
00340 try {
00341
00342
00343 this.openMenuItem_ActionEvents();
00344
00345
00346 } catch (java.lang.Throwable ivjExc) {
00347
00348
00349 handleException(ivjExc);
00350 }
00351 }
00352
00353
00354
00355
00356 private void connEtoC12() {
00357 try {
00358
00359
00360 this.newMenuItem_ActionEvents();
00361
00362
00363 } catch (java.lang.Throwable ivjExc) {
00364
00365
00366 handleException(ivjExc);
00367 }
00368 }
00369
00370
00371
00372
00373 private void connEtoC13() {
00374 try {
00375
00376
00377 this.predicateBrowserMenuItem_ActionEvents();
00378
00379
00380 } catch (java.lang.Throwable ivjExc) {
00381
00382
00383 handleException(ivjExc);
00384 }
00385 }
00386
00387
00388
00389
00390 private void connEtoC14() {
00391 try {
00392
00393
00394 this.propertyManagerMenuItem_ActionEvents();
00395
00396
00397 } catch (java.lang.Throwable ivjExc) {
00398
00399
00400 handleException(ivjExc);
00401 }
00402 }
00403
00404
00405
00406
00407 private void connEtoC15() {
00408 try {
00409
00410
00411 this.abstractionToolBarButton_ActionEvents();
00412
00413
00414 } catch (java.lang.Throwable ivjExc) {
00415
00416
00417 handleException(ivjExc);
00418 }
00419 }
00420
00421
00422
00423
00424 private void connEtoC16() {
00425 try {
00426
00427
00428 this.abstractionManagerMenuItem_ActionEvents();
00429
00430
00431 } catch (java.lang.Throwable ivjExc) {
00432
00433
00434 handleException(ivjExc);
00435 }
00436 }
00437
00438
00439
00440
00441 private void connEtoC17() {
00442 try {
00443
00444
00445 this.aboutMenuItem_ActionEvents();
00446
00447
00448 } catch (java.lang.Throwable ivjExc) {
00449
00450
00451 handleException(ivjExc);
00452 }
00453 }
00454
00455
00456
00457
00458 private void connEtoC18() {
00459 try {
00460
00461
00462 this.assertionBrowserMenuItem_ActionEvents();
00463
00464
00465 } catch (java.lang.Throwable ivjExc) {
00466
00467
00468 handleException(ivjExc);
00469 }
00470 }
00471
00472
00473
00474
00475 private void connEtoC19() {
00476 try {
00477
00478
00479 this.saveToolBarButton_ActionEvents();
00480
00481
00482 } catch (java.lang.Throwable ivjExc) {
00483
00484
00485 handleException(ivjExc);
00486 }
00487 }
00488
00489
00490
00491
00492 private void connEtoC2() {
00493 try {
00494
00495
00496 this.exitMenuItem_ActionEvents();
00497
00498
00499 } catch (java.lang.Throwable ivjExc) {
00500
00501
00502 handleException(ivjExc);
00503 }
00504 }
00505
00506
00507
00508
00509 private void connEtoC20() {
00510 try {
00511
00512
00513 this.saveAsToolBarButton_ActionEvents();
00514
00515
00516 } catch (java.lang.Throwable ivjExc) {
00517
00518
00519 handleException(ivjExc);
00520 }
00521 }
00522
00523
00524
00525
00526 private void connEtoC21() {
00527 try {
00528
00529
00530 this.openToolBarButton_ActionEvents();
00531
00532
00533 } catch (java.lang.Throwable ivjExc) {
00534
00535
00536 handleException(ivjExc);
00537 }
00538 }
00539
00540
00541
00542
00543 private void connEtoC22() {
00544 try {
00545
00546
00547 this.newToolBarButton_ActionEvents();
00548
00549
00550 } catch (java.lang.Throwable ivjExc) {
00551
00552
00553 handleException(ivjExc);
00554 }
00555 }
00556
00557
00558
00559
00560 private void connEtoC23() {
00561 try {
00562
00563
00564 this.sessionToolBarButton_ActionEvents();
00565
00566
00567 } catch (java.lang.Throwable ivjExc) {
00568
00569
00570 handleException(ivjExc);
00571 }
00572 }
00573
00574
00575
00576
00577 private void connEtoC24() {
00578 try {
00579
00580
00581 this.assertionToolBarButton_ActionEvents();
00582
00583
00584 } catch (java.lang.Throwable ivjExc) {
00585
00586
00587 handleException(ivjExc);
00588 }
00589 }
00590
00591
00592
00593
00594 private void connEtoC25() {
00595 try {
00596
00597
00598 this.predicateToolBarButton_ActionEvents();
00599
00600
00601 } catch (java.lang.Throwable ivjExc) {
00602
00603
00604 handleException(ivjExc);
00605 }
00606 }
00607
00608
00609
00610
00611 private void connEtoC26() {
00612 try {
00613
00614
00615 this.patternToolBarButton_ActionEvents();
00616
00617
00618 } catch (java.lang.Throwable ivjExc) {
00619
00620
00621 handleException(ivjExc);
00622 }
00623 }
00624
00625
00626
00627
00628 private void connEtoC27() {
00629 try {
00630
00631
00632 this.propertyToolBarButton_ActionEvents();
00633
00634
00635 } catch (java.lang.Throwable ivjExc) {
00636
00637
00638 handleException(ivjExc);
00639 }
00640 }
00641
00642
00643
00644
00645 private void connEtoC28() {
00646 try {
00647
00648
00649 this.dependToolBarButton_ActionEvents();
00650
00651
00652 } catch (java.lang.Throwable ivjExc) {
00653
00654
00655 handleException(ivjExc);
00656 }
00657 }
00658
00659
00660
00661
00662 private void connEtoC29() {
00663 try {
00664
00665
00666 this.iRMenuItem_ActionEvents();
00667
00668
00669 } catch (java.lang.Throwable ivjExc) {
00670
00671
00672 handleException(ivjExc);
00673 }
00674 }
00675
00676
00677
00678
00679 private void connEtoC3() {
00680 try {
00681
00682
00683 this.j3CToolBarButton_ActionEvents();
00684
00685
00686 } catch (java.lang.Throwable ivjExc) {
00687
00688
00689 handleException(ivjExc);
00690 }
00691 }
00692
00693
00694
00695
00696 private void connEtoC30() {
00697 try {
00698
00699
00700 this.abstractionLibraryManagerMenuItem_ActionEvents();
00701
00702
00703 } catch (java.lang.Throwable ivjExc) {
00704
00705
00706 handleException(ivjExc);
00707 }
00708 }
00709
00710
00711
00712
00713 private void connEtoC4() {
00714 try {
00715
00716
00717 this.slicerToolBarButton_ActionEvents();
00718
00719
00720 } catch (java.lang.Throwable ivjExc) {
00721
00722
00723 handleException(ivjExc);
00724 }
00725 }
00726
00727
00728
00729
00730 private void connEtoC5() {
00731 try {
00732
00733
00734 this.aBPSToolBarButton_ActionEvents();
00735
00736
00737 } catch (java.lang.Throwable ivjExc) {
00738
00739
00740 handleException(ivjExc);
00741 }
00742 }
00743
00744
00745
00746
00747 private void connEtoC6() {
00748 try {
00749
00750
00751 this.bircToolBarButton_ActionEvents();
00752
00753
00754 } catch (java.lang.Throwable ivjExc) {
00755
00756
00757 handleException(ivjExc);
00758 }
00759 }
00760
00761
00762
00763
00764 private void connEtoC7() {
00765 try {
00766
00767
00768 this.runToolBarButton_ActionEvents();
00769
00770
00771 } catch (java.lang.Throwable ivjExc) {
00772
00773
00774 handleException(ivjExc);
00775 }
00776 }
00777
00778
00779
00780
00781 private void connEtoC8() {
00782 try {
00783
00784
00785 this.patternManagerMenuItem_ActionEvents();
00786
00787
00788 } catch (java.lang.Throwable ivjExc) {
00789
00790
00791 handleException(ivjExc);
00792 }
00793 }
00794
00795
00796
00797
00798 private void connEtoC9() {
00799 try {
00800
00801
00802 this.saveMenuItem_ActionEvents();
00803
00804
00805 } catch (java.lang.Throwable ivjExc) {
00806
00807
00808 handleException(ivjExc);
00809 }
00810 }
00811
00812
00813
00814 public void dependToolBarButton_ActionEvents() {
00815 if (Dependencies.dependFrame != null)
00816 Dependencies.dependFrame.dispose();
00817
00818 Dependencies.dependFrame = null;
00819 Dependencies.dependFrame = new Dependencies();
00820 Dependencies.dependFrame.show();
00821
00822
00823
00824
00825
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835
00836 }
00837
00838
00839
00840 public void exitMenuItem_ActionEvents() {
00841 System.exit(0);
00842 }
00843
00844
00845
00846
00847
00848 private javax.swing.JMenuItem getAboutMenuItem() {
00849 if (ivjAboutMenuItem == null) {
00850 try {
00851 ivjAboutMenuItem = new javax.swing.JMenuItem();
00852 ivjAboutMenuItem.setName("AboutMenuItem");
00853 ivjAboutMenuItem.setMnemonic('a');
00854 ivjAboutMenuItem.setText("About");
00855 ivjAboutMenuItem.setBackground(new java.awt.Color(204,204,255));
00856
00857
00858 } catch (java.lang.Throwable ivjExc) {
00859
00860
00861 handleException(ivjExc);
00862 }
00863 }
00864 return ivjAboutMenuItem;
00865 }
00866
00867
00868
00869
00870
00871 private javax.swing.JButton getABPSToolBarButton() {
00872 if (ivjABPSToolBarButton == null) {
00873 try {
00874 ivjABPSToolBarButton = new javax.swing.JButton();
00875 ivjABPSToolBarButton.setName("ABPSToolBarButton");
00876 ivjABPSToolBarButton.setToolTipText("SLABS");
00877 ivjABPSToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
00878 ivjABPSToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
00879 ivjABPSToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/SlabsSelected24.gif")));
00880 ivjABPSToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
00881 ivjABPSToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
00882 ivjABPSToolBarButton.setText(" SLABS ");
00883 ivjABPSToolBarButton.setBackground(new java.awt.Color(204,204,255));
00884 ivjABPSToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
00885 ivjABPSToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
00886 ivjABPSToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Slabs24.gif")));
00887 ivjABPSToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
00888 ivjABPSToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
00889 ivjABPSToolBarButton.setEnabled(true);
00890
00891
00892 } catch (java.lang.Throwable ivjExc) {
00893
00894
00895 handleException(ivjExc);
00896 }
00897 }
00898 return ivjABPSToolBarButton;
00899 }
00900
00901
00902
00903
00904
00905 private javax.swing.JMenuItem getAbstractionLibraryManagerMenuItem() {
00906 if (ivjAbstractionLibraryManagerMenuItem == null) {
00907 try {
00908 ivjAbstractionLibraryManagerMenuItem = new javax.swing.JMenuItem();
00909 ivjAbstractionLibraryManagerMenuItem.setName("AbstractionLibraryManagerMenuItem");
00910 ivjAbstractionLibraryManagerMenuItem.setMnemonic('a');
00911 ivjAbstractionLibraryManagerMenuItem.setText("Abstraction Library Manager");
00912 ivjAbstractionLibraryManagerMenuItem.setBackground(new java.awt.Color(204,204,255));
00913
00914
00915 } catch (java.lang.Throwable ivjExc) {
00916
00917
00918 handleException(ivjExc);
00919 }
00920 }
00921 return ivjAbstractionLibraryManagerMenuItem;
00922 }
00923
00924
00925
00926
00927
00928 private javax.swing.JMenuItem getAbstractionManagerMenuItem() {
00929 if (ivjAbstractionManagerMenuItem == null) {
00930 try {
00931 ivjAbstractionManagerMenuItem = new javax.swing.JMenuItem();
00932 ivjAbstractionManagerMenuItem.setName("AbstractionManagerMenuItem");
00933 ivjAbstractionManagerMenuItem.setMnemonic('t');
00934 ivjAbstractionManagerMenuItem.setText("Typer");
00935 ivjAbstractionManagerMenuItem.setBackground(new java.awt.Color(204,204,255));
00936
00937
00938 } catch (java.lang.Throwable ivjExc) {
00939
00940
00941 handleException(ivjExc);
00942 }
00943 }
00944 return ivjAbstractionManagerMenuItem;
00945 }
00946
00947
00948
00949
00950
00951 private javax.swing.JMenu getAbstractionMenu() {
00952 if (ivjAbstractionMenu == null) {
00953 try {
00954 ivjAbstractionMenu = new javax.swing.JMenu();
00955 ivjAbstractionMenu.setName("AbstractionMenu");
00956 ivjAbstractionMenu.setMnemonic('a');
00957 ivjAbstractionMenu.setText("Abstraction");
00958 ivjAbstractionMenu.setBackground(new java.awt.Color(204,204,255));
00959 ivjAbstractionMenu.add(getAbstractionLibraryManagerMenuItem());
00960 ivjAbstractionMenu.add(getJSeparator5());
00961 ivjAbstractionMenu.add(getAbstractionManagerMenuItem());
00962
00963
00964 } catch (java.lang.Throwable ivjExc) {
00965
00966
00967 handleException(ivjExc);
00968 }
00969 }
00970 return ivjAbstractionMenu;
00971 }
00972
00973
00974
00975
00976
00977 private javax.swing.JButton getAbstractionToolBarButton() {
00978 if (ivjAbstractionToolBarButton == null) {
00979 try {
00980 ivjAbstractionToolBarButton = new javax.swing.JButton();
00981 ivjAbstractionToolBarButton.setName("AbstractionToolBarButton");
00982 ivjAbstractionToolBarButton.setToolTipText("Type Inference");
00983 ivjAbstractionToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
00984 ivjAbstractionToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
00985 ivjAbstractionToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Abstraction24.gif")));
00986 ivjAbstractionToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
00987 ivjAbstractionToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
00988 ivjAbstractionToolBarButton.setText(" Typer ");
00989 ivjAbstractionToolBarButton.setBackground(new java.awt.Color(204,204,255));
00990 ivjAbstractionToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
00991 ivjAbstractionToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
00992 ivjAbstractionToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Abstraction24.gif")));
00993 ivjAbstractionToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
00994 ivjAbstractionToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
00995
00996
00997 } catch (java.lang.Throwable ivjExc) {
00998
00999
01000 handleException(ivjExc);
01001 }
01002 }
01003 return ivjAbstractionToolBarButton;
01004 }
01005
01006
01007
01008
01009
01010 private javax.swing.JMenuItem getAssertionBrowserMenuItem() {
01011 if (ivjAssertionBrowserMenuItem == null) {
01012 try {
01013 ivjAssertionBrowserMenuItem = new javax.swing.JMenuItem();
01014 ivjAssertionBrowserMenuItem.setName("AssertionBrowserMenuItem");
01015 ivjAssertionBrowserMenuItem.setMnemonic('a');
01016 ivjAssertionBrowserMenuItem.setText("Assertion Browser");
01017 ivjAssertionBrowserMenuItem.setBackground(new java.awt.Color(204,204,255));
01018
01019
01020 } catch (java.lang.Throwable ivjExc) {
01021
01022
01023 handleException(ivjExc);
01024 }
01025 }
01026 return ivjAssertionBrowserMenuItem;
01027 }
01028
01029
01030
01031
01032
01033 private javax.swing.JButton getAssertionToolBarButton() {
01034 if (ivjAssertionToolBarButton == null) {
01035 try {
01036 ivjAssertionToolBarButton = new javax.swing.JButton();
01037 ivjAssertionToolBarButton.setName("AssertionToolBarButton");
01038 ivjAssertionToolBarButton.setToolTipText("Assertion Browser");
01039 ivjAssertionToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01040 ivjAssertionToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01041 ivjAssertionToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Assertion24.gif")));
01042 ivjAssertionToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01043 ivjAssertionToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01044 ivjAssertionToolBarButton.setText(" Assertion ");
01045 ivjAssertionToolBarButton.setBackground(new java.awt.Color(204,204,255));
01046 ivjAssertionToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01047 ivjAssertionToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01048 ivjAssertionToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Assertion24.gif")));
01049 ivjAssertionToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01050 ivjAssertionToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01051
01052
01053 } catch (java.lang.Throwable ivjExc) {
01054
01055
01056 handleException(ivjExc);
01057 }
01058 }
01059 return ivjAssertionToolBarButton;
01060 }
01061
01062
01063
01064
01065
01066 private javax.swing.JLabel getBanderaLabel() {
01067 if (ivjBanderaLabel == null) {
01068 try {
01069 ivjBanderaLabel = new javax.swing.JLabel();
01070 ivjBanderaLabel.setName("BanderaLabel");
01071 ivjBanderaLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/bandera.gif")));
01072 ivjBanderaLabel.setFont(new java.awt.Font("serif.bold", 1, 48));
01073 ivjBanderaLabel.setText("");
01074
01075
01076 } catch (java.lang.Throwable ivjExc) {
01077
01078
01079 handleException(ivjExc);
01080 }
01081 }
01082 return ivjBanderaLabel;
01083 }
01084
01085
01086
01087
01088
01089 private javax.swing.JButton getBircToolBarButton() {
01090 if (ivjBircToolBarButton == null) {
01091 try {
01092 ivjBircToolBarButton = new javax.swing.JButton();
01093 ivjBircToolBarButton.setName("BircToolBarButton");
01094 ivjBircToolBarButton.setToolTipText("Checker");
01095 ivjBircToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01096 ivjBircToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01097 ivjBircToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/CheckerSelected24.gif")));
01098 ivjBircToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01099 ivjBircToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01100 ivjBircToolBarButton.setText(" Checker ");
01101 ivjBircToolBarButton.setBackground(new java.awt.Color(204,204,255));
01102 ivjBircToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01103 ivjBircToolBarButton.setDisabledIcon(null);
01104 ivjBircToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01105 ivjBircToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Checker24.gif")));
01106 ivjBircToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01107 ivjBircToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01108 ivjBircToolBarButton.setEnabled(true);
01109
01110
01111 } catch (java.lang.Throwable ivjExc) {
01112
01113
01114 handleException(ivjExc);
01115 }
01116 }
01117 return ivjBircToolBarButton;
01118 }
01119
01120
01121
01122
01123
01124 private javax.swing.JPanel getBottomPanel() {
01125 if (ivjBottomPanel == null) {
01126 try {
01127 ivjBottomPanel = new javax.swing.JPanel();
01128 ivjBottomPanel.setName("BottomPanel");
01129 ivjBottomPanel.setBorder(new javax.swing.border.EtchedBorder());
01130 ivjBottomPanel.setLayout(new java.awt.BorderLayout());
01131 ivjBottomPanel.setBackground(new java.awt.Color(204,204,255));
01132 getBottomPanel().add(getBanderaLabel(), "East");
01133 getBottomPanel().add(getCheckerPanel(), "West");
01134
01135
01136 } catch (java.lang.Throwable ivjExc) {
01137
01138
01139 handleException(ivjExc);
01140 }
01141 }
01142 return ivjBottomPanel;
01143 }
01144
01145
01146
01147
01148
01149 private javax.swing.JPanel getBUIContentPane() {
01150 if (ivjBUIContentPane == null) {
01151 try {
01152 ivjBUIContentPane = new javax.swing.JPanel();
01153 ivjBUIContentPane.setName("BUIContentPane");
01154 ivjBUIContentPane.setBorder(new javax.swing.border.EtchedBorder());
01155 ivjBUIContentPane.setLayout(new java.awt.BorderLayout());
01156 ivjBUIContentPane.setBackground(new java.awt.Color(204,204,255));
01157 ivjBUIContentPane.setVisible(true);
01158 getBUIContentPane().add(getBottomPanel(), "South");
01159 getBUIContentPane().add(getBUIToolbarPanel(), "North");
01160
01161 getBUIContentPane().add(sessionPane, "Center");
01162
01163 } catch (java.lang.Throwable ivjExc) {
01164
01165
01166 handleException(ivjExc);
01167 }
01168 }
01169 return ivjBUIContentPane;
01170 }
01171
01172
01173
01174
01175
01176 private javax.swing.JMenuBar getBUIJMenuBar() {
01177 if (ivjBUIJMenuBar == null) {
01178 try {
01179 ivjBUIJMenuBar = new javax.swing.JMenuBar();
01180 ivjBUIJMenuBar.setName("BUIJMenuBar");
01181 ivjBUIJMenuBar.setBorder(new javax.swing.border.EtchedBorder());
01182 ivjBUIJMenuBar.setBackground(new java.awt.Color(204,204,255));
01183 ivjBUIJMenuBar.add(getSessionMenu());
01184 ivjBUIJMenuBar.add(getSpecificationMenu());
01185 ivjBUIJMenuBar.add(getAbstractionMenu());
01186 ivjBUIJMenuBar.add(getHelpMenu());
01187
01188
01189 } catch (java.lang.Throwable ivjExc) {
01190
01191
01192 handleException(ivjExc);
01193 }
01194 }
01195 return ivjBUIJMenuBar;
01196 }
01197
01198
01199
01200
01201 private static void getBuilderData() {
01202
01203
01204
01205
01206
01207
01208
01209
01210
01211
01212
01213
01214
01215
01216
01217
01218
01219
01220
01221
01222
01223
01224
01225
01226
01227
01228
01229
01230
01231
01232
01233
01234
01235
01236
01237
01238
01239
01240
01241
01242
01243
01244
01245
01246
01247
01248
01249
01250
01251
01252
01253
01254
01255
01256
01257
01258
01259
01260
01261
01262
01263
01264
01265
01266
01267
01268
01269
01270
01271
01272
01273
01274
01275
01276
01277
01278
01279
01280
01281
01282
01283
01284
01285
01286
01287
01288
01289
01290
01291
01292
01293
01294
01295
01296
01297
01298
01299
01300
01301
01302
01303
01304
01305
01306
01307
01308
01309
01310
01311
01312
01313
01314
01315
01316
01317
01318
01319
01320
01321
01322
01323
01324
01325
01326
01327
01328
01329
01330
01331
01332
01333
01334
01335
01336
01337
01338
01339
01340
01341
01342
01343
01344
01345
01346
01347
01348 }
01349
01350
01351
01352
01353
01354 private javax.swing.JToolBar getBUIMiddleToolBar() {
01355 if (ivjBUIMiddleToolBar == null) {
01356 try {
01357 ivjBUIMiddleToolBar = new javax.swing.JToolBar();
01358 ivjBUIMiddleToolBar.setName("BUIMiddleToolBar");
01359 ivjBUIMiddleToolBar.setFloatable(false);
01360 ivjBUIMiddleToolBar.setBackground(new java.awt.Color(204,204,255));
01361 getBUIMiddleToolBar().add(getSessionToolBarButton(), getSessionToolBarButton().getName());
01362 getBUIMiddleToolBar().add(getSeparator1ToolBarButton11(), getSeparator1ToolBarButton11().getName());
01363 getBUIMiddleToolBar().add(getAssertionToolBarButton(), getAssertionToolBarButton().getName());
01364 getBUIMiddleToolBar().add(getPredicateToolBarButton(), getPredicateToolBarButton().getName());
01365 ivjBUIMiddleToolBar.add(getPatternToolBarButton());
01366 getBUIMiddleToolBar().add(getPropertyToolBarButton(), getPropertyToolBarButton().getName());
01367 getBUIMiddleToolBar().add(getSeparator1ToolBarButton111(), getSeparator1ToolBarButton111().getName());
01368 getBUIMiddleToolBar().add(getDependToolBarButton(), getDependToolBarButton().getName());
01369 getBUIMiddleToolBar().add(getSeparator1ToolBarButton1111(), getSeparator1ToolBarButton1111().getName());
01370 getBUIMiddleToolBar().add(getAbstractionToolBarButton(), getAbstractionToolBarButton().getName());
01371
01372
01373 } catch (java.lang.Throwable ivjExc) {
01374
01375
01376 handleException(ivjExc);
01377 }
01378 }
01379 return ivjBUIMiddleToolBar;
01380 }
01381
01382
01383
01384
01385
01386 private javax.swing.JPanel getBUIMiddleToolbarPanel() {
01387 if (ivjBUIMiddleToolbarPanel == null) {
01388 try {
01389 ivjBUIMiddleToolbarPanel = new javax.swing.JPanel();
01390 ivjBUIMiddleToolbarPanel.setName("BUIMiddleToolbarPanel");
01391 ivjBUIMiddleToolbarPanel.setBorder(new javax.swing.border.EtchedBorder());
01392 ivjBUIMiddleToolbarPanel.setLayout(new java.awt.BorderLayout());
01393 ivjBUIMiddleToolbarPanel.setBackground(new java.awt.Color(204,204,255));
01394 getBUIMiddleToolbarPanel().add(getBUIMiddleToolBar(), "Center");
01395
01396
01397 } catch (java.lang.Throwable ivjExc) {
01398
01399
01400 handleException(ivjExc);
01401 }
01402 }
01403 return ivjBUIMiddleToolbarPanel;
01404 }
01405
01406
01407
01408
01409
01410 private javax.swing.JToolBar getBUIToolBar() {
01411 if (ivjBUIToolBar == null) {
01412 try {
01413 ivjBUIToolBar = new javax.swing.JToolBar();
01414 ivjBUIToolBar.setName("BUIToolBar");
01415 ivjBUIToolBar.setFloatable(false);
01416 ivjBUIToolBar.setBackground(new java.awt.Color(204,204,255));
01417 getBUIToolBar().add(getNewToolBarButton(), getNewToolBarButton().getName());
01418 getBUIToolBar().add(getOpenToolBarButton(), getOpenToolBarButton().getName());
01419 getBUIToolBar().add(getSaveAsToolBarButton(), getSaveAsToolBarButton().getName());
01420 getBUIToolBar().add(getSaveToolBarButton(), getSaveToolBarButton().getName());
01421 getBUIToolBar().add(getSeparator1ToolBarButton1(), getSeparator1ToolBarButton1().getName());
01422 ivjBUIToolBar.add(getJ3CToolBarButton());
01423 ivjBUIToolBar.add(getSlicerToolBarButton());
01424 ivjBUIToolBar.add(getABPSToolBarButton());
01425 ivjBUIToolBar.add(getBircToolBarButton());
01426 getBUIToolBar().add(getSeparator1ToolBarButton(), getSeparator1ToolBarButton().getName());
01427 getBUIToolBar().add(getRunToolBarButton(), getRunToolBarButton().getName());
01428
01429
01430 } catch (java.lang.Throwable ivjExc) {
01431
01432
01433 handleException(ivjExc);
01434 }
01435 }
01436 return ivjBUIToolBar;
01437 }
01438
01439
01440
01441
01442
01443 private javax.swing.JPanel getBUIToolbarPanel() {
01444 if (ivjBUIToolbarPanel == null) {
01445 try {
01446 ivjBUIToolbarPanel = new javax.swing.JPanel();
01447 ivjBUIToolbarPanel.setName("BUIToolbarPanel");
01448 ivjBUIToolbarPanel.setLayout(new java.awt.BorderLayout());
01449 ivjBUIToolbarPanel.setBackground(new java.awt.Color(204,204,255));
01450 getBUIToolbarPanel().add(getBUITopToolbarPanel(), "North");
01451 getBUIToolbarPanel().add(getBUIMiddleToolbarPanel(), "South");
01452
01453
01454 } catch (java.lang.Throwable ivjExc) {
01455
01456
01457 handleException(ivjExc);
01458 }
01459 }
01460 return ivjBUIToolbarPanel;
01461 }
01462
01463
01464
01465
01466
01467 private javax.swing.JPanel getBUITopToolbarPanel() {
01468 if (ivjBUITopToolbarPanel == null) {
01469 try {
01470 ivjBUITopToolbarPanel = new javax.swing.JPanel();
01471 ivjBUITopToolbarPanel.setName("BUITopToolbarPanel");
01472 ivjBUITopToolbarPanel.setBorder(new javax.swing.border.EtchedBorder());
01473 ivjBUITopToolbarPanel.setLayout(new java.awt.BorderLayout());
01474 ivjBUITopToolbarPanel.setBackground(new java.awt.Color(204,204,255));
01475 getBUITopToolbarPanel().add(getBUIToolBar(), "Center");
01476
01477
01478 } catch (java.lang.Throwable ivjExc) {
01479
01480
01481 handleException(ivjExc);
01482 }
01483 }
01484 return ivjBUITopToolbarPanel;
01485 }
01486
01487
01488
01489
01490
01491 private javax.swing.JPanel getCheckerPanel() {
01492 if (ivjCheckerPanel == null) {
01493 try {
01494 ivjCheckerPanel = new javax.swing.JPanel();
01495 ivjCheckerPanel.setName("CheckerPanel");
01496 ivjCheckerPanel.setOpaque(true);
01497 ivjCheckerPanel.setLayout(new java.awt.GridBagLayout());
01498 ivjCheckerPanel.setBackground(new java.awt.Color(204,204,255));
01499
01500 java.awt.GridBagConstraints constraintsSpinLabel = new java.awt.GridBagConstraints();
01501 constraintsSpinLabel.gridx = 0; constraintsSpinLabel.gridy = 0;
01502 constraintsSpinLabel.insets = new java.awt.Insets(4, 4, 4, 4);
01503 getCheckerPanel().add(getSpinLabel(), constraintsSpinLabel);
01504
01505 java.awt.GridBagConstraints constraintsJPFLabel = new java.awt.GridBagConstraints();
01506 constraintsJPFLabel.gridx = 2; constraintsJPFLabel.gridy = 0;
01507 constraintsJPFLabel.insets = new java.awt.Insets(4, 4, 4, 4);
01508 getCheckerPanel().add(getJPFLabel(), constraintsJPFLabel);
01509
01510 java.awt.GridBagConstraints constraintsNuSMVLabel = new java.awt.GridBagConstraints();
01511 constraintsNuSMVLabel.gridx = 1; constraintsNuSMVLabel.gridy = 0;
01512 constraintsNuSMVLabel.insets = new java.awt.Insets(4, 4, 4, 4);
01513 getCheckerPanel().add(getNuSMVLabel(), constraintsNuSMVLabel);
01514
01515
01516 } catch (java.lang.Throwable ivjExc) {
01517
01518
01519 handleException(ivjExc);
01520 }
01521 }
01522 return ivjCheckerPanel;
01523 }
01524
01525
01526
01527
01528
01529 public javax.swing.JButton getDependToolBarButton() {
01530 if (ivjDependToolBarButton == null) {
01531 try {
01532 ivjDependToolBarButton = new javax.swing.JButton();
01533 ivjDependToolBarButton.setName("DependToolBarButton");
01534 ivjDependToolBarButton.setToolTipText("Program Dependency Browser");
01535 ivjDependToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01536 ivjDependToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01537 ivjDependToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/PDG24.gif")));
01538 ivjDependToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01539 ivjDependToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01540 ivjDependToolBarButton.setText(" PDG ");
01541 ivjDependToolBarButton.setBackground(new java.awt.Color(204,204,255));
01542 ivjDependToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01543 ivjDependToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01544 ivjDependToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/PDG24.gif")));
01545 ivjDependToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01546 ivjDependToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01547
01548
01549 } catch (java.lang.Throwable ivjExc) {
01550
01551
01552 handleException(ivjExc);
01553 }
01554 }
01555 return ivjDependToolBarButton;
01556 }
01557
01558
01559
01560
01561
01562 private javax.swing.JMenuItem getExitMenuItem() {
01563 if (ivjExitMenuItem == null) {
01564 try {
01565 ivjExitMenuItem = new javax.swing.JMenuItem();
01566 ivjExitMenuItem.setName("ExitMenuItem");
01567 ivjExitMenuItem.setMnemonic('x');
01568 ivjExitMenuItem.setText("Exit");
01569 ivjExitMenuItem.setBackground(new java.awt.Color(204,204,255));
01570
01571
01572 } catch (java.lang.Throwable ivjExc) {
01573
01574
01575 handleException(ivjExc);
01576 }
01577 }
01578 return ivjExitMenuItem;
01579 }
01580
01581
01582
01583
01584
01585 private javax.swing.JMenu getHelpMenu() {
01586 if (ivjHelpMenu == null) {
01587 try {
01588 ivjHelpMenu = new javax.swing.JMenu();
01589 ivjHelpMenu.setName("HelpMenu");
01590 ivjHelpMenu.setMnemonic('h');
01591 ivjHelpMenu.setText("Help");
01592 ivjHelpMenu.setBackground(new java.awt.Color(204,204,255));
01593 ivjHelpMenu.add(getAboutMenuItem());
01594
01595
01596 } catch (java.lang.Throwable ivjExc) {
01597
01598
01599 handleException(ivjExc);
01600 }
01601 }
01602 return ivjHelpMenu;
01603 }
01604
01605
01606
01607
01608
01609 private javax.swing.JMenuItem getIRMenuItem() {
01610 if (ivjIRMenuItem == null) {
01611 try {
01612 ivjIRMenuItem = new javax.swing.JMenuItem();
01613 ivjIRMenuItem.setName("IRMenuItem");
01614 ivjIRMenuItem.setMnemonic('g');
01615 ivjIRMenuItem.setText("General Options");
01616 ivjIRMenuItem.setBackground(new java.awt.Color(204,204,255));
01617
01618
01619 } catch (java.lang.Throwable ivjExc) {
01620
01621
01622 handleException(ivjExc);
01623 }
01624 }
01625 return ivjIRMenuItem;
01626 }
01627
01628
01629
01630
01631
01632 private javax.swing.JButton getJ3CToolBarButton() {
01633 if (ivjJ3CToolBarButton == null) {
01634 try {
01635 ivjJ3CToolBarButton = new javax.swing.JButton();
01636 ivjJ3CToolBarButton.setName("J3CToolBarButton");
01637 ivjJ3CToolBarButton.setToolTipText("JJJC");
01638 ivjJ3CToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01639 ivjJ3CToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01640 ivjJ3CToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/JJJC24.gif")));
01641 ivjJ3CToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01642 ivjJ3CToolBarButton.setRequestFocusEnabled(true);
01643 ivjJ3CToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01644 ivjJ3CToolBarButton.setText(" JJJC ");
01645 ivjJ3CToolBarButton.setBackground(new java.awt.Color(204,204,255));
01646 ivjJ3CToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01647 ivjJ3CToolBarButton.setDisabledIcon(null);
01648 ivjJ3CToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01649 ivjJ3CToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/JJJCSelected24.gif")));
01650 ivjJ3CToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01651 ivjJ3CToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01652 ivjJ3CToolBarButton.setEnabled(true);
01653
01654
01655 } catch (java.lang.Throwable ivjExc) {
01656
01657
01658 handleException(ivjExc);
01659 }
01660 }
01661 return ivjJ3CToolBarButton;
01662 }
01663
01664
01665
01666
01667
01668 public javax.swing.JLabel getJPFLabel() {
01669 if (ivjJPFLabel == null) {
01670 try {
01671 ivjJPFLabel = new javax.swing.JLabel();
01672 ivjJPFLabel.setName("JPFLabel");
01673 ivjJPFLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/JPF2.gif")));
01674 ivjJPFLabel.setText("");
01675
01676
01677 } catch (java.lang.Throwable ivjExc) {
01678
01679
01680 handleException(ivjExc);
01681 }
01682 }
01683 return ivjJPFLabel;
01684 }
01685
01686
01687
01688
01689
01690 private javax.swing.JSeparator getJSeparator1() {
01691 if (ivjJSeparator1 == null) {
01692 try {
01693 ivjJSeparator1 = new javax.swing.JSeparator();
01694 ivjJSeparator1.setName("JSeparator1");
01695
01696
01697 } catch (java.lang.Throwable ivjExc) {
01698
01699
01700 handleException(ivjExc);
01701 }
01702 }
01703 return ivjJSeparator1;
01704 }
01705
01706
01707
01708
01709
01710 private javax.swing.JSeparator getJSeparator2() {
01711 if (ivjJSeparator2 == null) {
01712 try {
01713 ivjJSeparator2 = new javax.swing.JSeparator();
01714 ivjJSeparator2.setName("JSeparator2");
01715
01716
01717 } catch (java.lang.Throwable ivjExc) {
01718
01719
01720 handleException(ivjExc);
01721 }
01722 }
01723 return ivjJSeparator2;
01724 }
01725
01726
01727
01728
01729
01730 private javax.swing.JSeparator getJSeparator3() {
01731 if (ivjJSeparator3 == null) {
01732 try {
01733 ivjJSeparator3 = new javax.swing.JSeparator();
01734 ivjJSeparator3.setName("JSeparator3");
01735
01736
01737 } catch (java.lang.Throwable ivjExc) {
01738
01739
01740 handleException(ivjExc);
01741 }
01742 }
01743 return ivjJSeparator3;
01744 }
01745
01746
01747
01748
01749
01750 private javax.swing.JSeparator getJSeparator4() {
01751 if (ivjJSeparator4 == null) {
01752 try {
01753 ivjJSeparator4 = new javax.swing.JSeparator();
01754 ivjJSeparator4.setName("JSeparator4");
01755
01756
01757 } catch (java.lang.Throwable ivjExc) {
01758
01759
01760 handleException(ivjExc);
01761 }
01762 }
01763 return ivjJSeparator4;
01764 }
01765
01766
01767
01768
01769
01770 private javax.swing.JSeparator getJSeparator5() {
01771 if (ivjJSeparator5 == null) {
01772 try {
01773 ivjJSeparator5 = new javax.swing.JSeparator();
01774 ivjJSeparator5.setName("JSeparator5");
01775
01776
01777 } catch (java.lang.Throwable ivjExc) {
01778
01779
01780 handleException(ivjExc);
01781 }
01782 }
01783 return ivjJSeparator5;
01784 }
01785
01786
01787
01788
01789
01790 private javax.swing.JMenuItem getManagerMenuItem() {
01791 if (ivjManagerMenuItem == null) {
01792 try {
01793 ivjManagerMenuItem = new javax.swing.JMenuItem();
01794 ivjManagerMenuItem.setName("ManagerMenuItem");
01795 ivjManagerMenuItem.setMnemonic('m');
01796 ivjManagerMenuItem.setText("Manager");
01797 ivjManagerMenuItem.setBackground(new java.awt.Color(204,204,255));
01798
01799
01800 } catch (java.lang.Throwable ivjExc) {
01801
01802
01803 handleException(ivjExc);
01804 }
01805 }
01806 return ivjManagerMenuItem;
01807 }
01808
01809
01810
01811
01812
01813 private javax.swing.JMenuItem getNewMenuItem() {
01814 if (ivjNewMenuItem == null) {
01815 try {
01816 ivjNewMenuItem = new javax.swing.JMenuItem();
01817 ivjNewMenuItem.setName("NewMenuItem");
01818 ivjNewMenuItem.setMnemonic('n');
01819 ivjNewMenuItem.setText("New");
01820 ivjNewMenuItem.setBackground(new java.awt.Color(204,204,255));
01821 ivjNewMenuItem.setPressedIcon(null);
01822
01823
01824 } catch (java.lang.Throwable ivjExc) {
01825
01826
01827 handleException(ivjExc);
01828 }
01829 }
01830 return ivjNewMenuItem;
01831 }
01832
01833
01834
01835
01836
01837 private javax.swing.JButton getNewToolBarButton() {
01838 if (ivjNewToolBarButton == null) {
01839 try {
01840 ivjNewToolBarButton = new javax.swing.JButton();
01841 ivjNewToolBarButton.setName("NewToolBarButton");
01842 ivjNewToolBarButton.setToolTipText("New sessions");
01843 ivjNewToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01844 ivjNewToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01845 ivjNewToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/New24.gif")));
01846 ivjNewToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01847 ivjNewToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01848 ivjNewToolBarButton.setText(" New ");
01849 ivjNewToolBarButton.setBackground(new java.awt.Color(204,204,255));
01850 ivjNewToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01851 ivjNewToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01852 ivjNewToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/New24.gif")));
01853 ivjNewToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01854 ivjNewToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01855 ivjNewToolBarButton.setEnabled(true);
01856
01857
01858 } catch (java.lang.Throwable ivjExc) {
01859
01860
01861 handleException(ivjExc);
01862 }
01863 }
01864 return ivjNewToolBarButton;
01865 }
01866
01867
01868
01869
01870
01871 public javax.swing.JLabel getNuSMVLabel() {
01872 if (ivjNuSMVLabel == null) {
01873 try {
01874 ivjNuSMVLabel = new javax.swing.JLabel();
01875 ivjNuSMVLabel.setName("NuSMVLabel");
01876 ivjNuSMVLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/NuSMV.gif")));
01877 ivjNuSMVLabel.setText("");
01878
01879
01880 } catch (java.lang.Throwable ivjExc) {
01881
01882
01883 handleException(ivjExc);
01884 }
01885 }
01886 return ivjNuSMVLabel;
01887 }
01888
01889
01890
01891
01892
01893 private javax.swing.JMenuItem getOpenMenuItem() {
01894 if (ivjOpenMenuItem == null) {
01895 try {
01896 ivjOpenMenuItem = new javax.swing.JMenuItem();
01897 ivjOpenMenuItem.setName("OpenMenuItem");
01898 ivjOpenMenuItem.setMnemonic('o');
01899 ivjOpenMenuItem.setText("Open");
01900 ivjOpenMenuItem.setBackground(new java.awt.Color(204,204,255));
01901
01902
01903 } catch (java.lang.Throwable ivjExc) {
01904
01905
01906 handleException(ivjExc);
01907 }
01908 }
01909 return ivjOpenMenuItem;
01910 }
01911
01912
01913
01914
01915
01916 private javax.swing.JButton getOpenToolBarButton() {
01917 if (ivjOpenToolBarButton == null) {
01918 try {
01919 ivjOpenToolBarButton = new javax.swing.JButton();
01920 ivjOpenToolBarButton.setName("OpenToolBarButton");
01921 ivjOpenToolBarButton.setToolTipText("Open sessions");
01922 ivjOpenToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01923 ivjOpenToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01924 ivjOpenToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Open24.gif")));
01925 ivjOpenToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01926 ivjOpenToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01927 ivjOpenToolBarButton.setText(" Open ");
01928 ivjOpenToolBarButton.setBackground(new java.awt.Color(204,204,255));
01929 ivjOpenToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01930 ivjOpenToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01931 ivjOpenToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Open24.gif")));
01932 ivjOpenToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01933 ivjOpenToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01934 ivjOpenToolBarButton.setEnabled(true);
01935
01936
01937 } catch (java.lang.Throwable ivjExc) {
01938
01939
01940 handleException(ivjExc);
01941 }
01942 }
01943 return ivjOpenToolBarButton;
01944 }
01945
01946
01947
01948
01949
01950 private javax.swing.JMenuItem getPatternManagerMenuItem() {
01951 if (ivjPatternManagerMenuItem == null) {
01952 try {
01953 ivjPatternManagerMenuItem = new javax.swing.JMenuItem();
01954 ivjPatternManagerMenuItem.setName("PatternManagerMenuItem");
01955 ivjPatternManagerMenuItem.setMnemonic('a');
01956 ivjPatternManagerMenuItem.setText("Pattern Manager");
01957 ivjPatternManagerMenuItem.setBackground(new java.awt.Color(204,204,255));
01958
01959
01960 } catch (java.lang.Throwable ivjExc) {
01961
01962
01963 handleException(ivjExc);
01964 }
01965 }
01966 return ivjPatternManagerMenuItem;
01967 }
01968
01969
01970
01971
01972
01973 private javax.swing.JButton getPatternToolBarButton() {
01974 if (ivjPatternToolBarButton == null) {
01975 try {
01976 ivjPatternToolBarButton = new javax.swing.JButton();
01977 ivjPatternToolBarButton.setName("PatternToolBarButton");
01978 ivjPatternToolBarButton.setToolTipText("Pattern Manager");
01979 ivjPatternToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
01980 ivjPatternToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
01981 ivjPatternToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Pattern24.gif")));
01982 ivjPatternToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
01983 ivjPatternToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
01984 ivjPatternToolBarButton.setText(" Pattern ");
01985 ivjPatternToolBarButton.setBackground(new java.awt.Color(204,204,255));
01986 ivjPatternToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
01987 ivjPatternToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
01988 ivjPatternToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Pattern24.gif")));
01989 ivjPatternToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
01990 ivjPatternToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
01991
01992
01993 } catch (java.lang.Throwable ivjExc) {
01994
01995
01996 handleException(ivjExc);
01997 }
01998 }
01999 return ivjPatternToolBarButton;
02000 }
02001
02002
02003
02004
02005
02006 private javax.swing.JMenuItem getPredicateBrowserMenuItem() {
02007 if (ivjPredicateBrowserMenuItem == null) {
02008 try {
02009 ivjPredicateBrowserMenuItem = new javax.swing.JMenuItem();
02010 ivjPredicateBrowserMenuItem.setName("PredicateBrowserMenuItem");
02011 ivjPredicateBrowserMenuItem.setMnemonic('r');
02012 ivjPredicateBrowserMenuItem.setText("Predicate Browser");
02013 ivjPredicateBrowserMenuItem.setBackground(new java.awt.Color(204,204,255));
02014
02015
02016 } catch (java.lang.Throwable ivjExc) {
02017
02018
02019 handleException(ivjExc);
02020 }
02021 }
02022 return ivjPredicateBrowserMenuItem;
02023 }
02024
02025
02026
02027
02028
02029 private javax.swing.JButton getPredicateToolBarButton() {
02030 if (ivjPredicateToolBarButton == null) {
02031 try {
02032 ivjPredicateToolBarButton = new javax.swing.JButton();
02033 ivjPredicateToolBarButton.setName("PredicateToolBarButton");
02034 ivjPredicateToolBarButton.setToolTipText("PredicateBrowser");
02035 ivjPredicateToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02036 ivjPredicateToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02037 ivjPredicateToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Predicate24.gif")));
02038 ivjPredicateToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02039 ivjPredicateToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02040 ivjPredicateToolBarButton.setText(" Predicate ");
02041 ivjPredicateToolBarButton.setBackground(new java.awt.Color(204,204,255));
02042 ivjPredicateToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02043 ivjPredicateToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02044 ivjPredicateToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Predicate24.gif")));
02045 ivjPredicateToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02046 ivjPredicateToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02047
02048
02049 } catch (java.lang.Throwable ivjExc) {
02050
02051
02052 handleException(ivjExc);
02053 }
02054 }
02055 return ivjPredicateToolBarButton;
02056 }
02057
02058
02059
02060
02061
02062 private javax.swing.JMenuItem getPropertyManagerMenuItem() {
02063 if (ivjPropertyManagerMenuItem == null) {
02064 try {
02065 ivjPropertyManagerMenuItem = new javax.swing.JMenuItem();
02066 ivjPropertyManagerMenuItem.setName("PropertyManagerMenuItem");
02067 ivjPropertyManagerMenuItem.setMnemonic('p');
02068 ivjPropertyManagerMenuItem.setText("Property Manager");
02069 ivjPropertyManagerMenuItem.setBackground(new java.awt.Color(204,204,255));
02070
02071
02072 } catch (java.lang.Throwable ivjExc) {
02073
02074
02075 handleException(ivjExc);
02076 }
02077 }
02078 return ivjPropertyManagerMenuItem;
02079 }
02080
02081
02082
02083
02084
02085 private javax.swing.JButton getPropertyToolBarButton() {
02086 if (ivjPropertyToolBarButton == null) {
02087 try {
02088 ivjPropertyToolBarButton = new javax.swing.JButton();
02089 ivjPropertyToolBarButton.setName("PropertyToolBarButton");
02090 ivjPropertyToolBarButton.setToolTipText("Property Manager");
02091 ivjPropertyToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02092 ivjPropertyToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02093 ivjPropertyToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Property24.gif")));
02094 ivjPropertyToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02095 ivjPropertyToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02096 ivjPropertyToolBarButton.setText(" Property ");
02097 ivjPropertyToolBarButton.setBackground(new java.awt.Color(204,204,255));
02098 ivjPropertyToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02099 ivjPropertyToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02100 ivjPropertyToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Property24.gif")));
02101 ivjPropertyToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02102 ivjPropertyToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02103
02104
02105 } catch (java.lang.Throwable ivjExc) {
02106
02107
02108 handleException(ivjExc);
02109 }
02110 }
02111 return ivjPropertyToolBarButton;
02112 }
02113
02114
02115
02116
02117
02118 private javax.swing.JButton getRunToolBarButton() {
02119 if (ivjRunToolBarButton == null) {
02120 try {
02121 ivjRunToolBarButton = new javax.swing.JButton();
02122 ivjRunToolBarButton.setName("RunToolBarButton");
02123 ivjRunToolBarButton.setToolTipText("Run");
02124 ivjRunToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02125 ivjRunToolBarButton.setSelected(false);
02126 ivjRunToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02127 ivjRunToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Run24.gif")));
02128 ivjRunToolBarButton.setRequestFocusEnabled(false);
02129 ivjRunToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02130 ivjRunToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02131 ivjRunToolBarButton.setText(" Run ");
02132 ivjRunToolBarButton.setBackground(new java.awt.Color(204,204,255));
02133 ivjRunToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02134 ivjRunToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02135 ivjRunToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Run24.gif")));
02136 ivjRunToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02137 ivjRunToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02138 ivjRunToolBarButton.setEnabled(true);
02139
02140
02141 } catch (java.lang.Throwable ivjExc) {
02142
02143
02144 handleException(ivjExc);
02145 }
02146 }
02147 return ivjRunToolBarButton;
02148 }
02149
02150
02151
02152
02153
02154 private javax.swing.JMenuItem getSaveAsMenuItem() {
02155 if (ivjSaveAsMenuItem == null) {
02156 try {
02157 ivjSaveAsMenuItem = new javax.swing.JMenuItem();
02158 ivjSaveAsMenuItem.setName("SaveAsMenuItem");
02159 ivjSaveAsMenuItem.setMnemonic('a');
02160 ivjSaveAsMenuItem.setText("Save as");
02161 ivjSaveAsMenuItem.setBackground(new java.awt.Color(204,204,255));
02162
02163
02164 } catch (java.lang.Throwable ivjExc) {
02165
02166
02167 handleException(ivjExc);
02168 }
02169 }
02170 return ivjSaveAsMenuItem;
02171 }
02172
02173
02174
02175
02176
02177 private javax.swing.JButton getSaveAsToolBarButton() {
02178 if (ivjSaveAsToolBarButton == null) {
02179 try {
02180 ivjSaveAsToolBarButton = new javax.swing.JButton();
02181 ivjSaveAsToolBarButton.setName("SaveAsToolBarButton");
02182 ivjSaveAsToolBarButton.setToolTipText("Save sessions as...");
02183 ivjSaveAsToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02184 ivjSaveAsToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02185 ivjSaveAsToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/SaveAs24.gif")));
02186 ivjSaveAsToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02187 ivjSaveAsToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02188 ivjSaveAsToolBarButton.setText(" Save as ");
02189 ivjSaveAsToolBarButton.setBackground(new java.awt.Color(204,204,255));
02190 ivjSaveAsToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02191 ivjSaveAsToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02192 ivjSaveAsToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/SaveAs24.gif")));
02193 ivjSaveAsToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02194 ivjSaveAsToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02195 ivjSaveAsToolBarButton.setEnabled(true);
02196
02197
02198 } catch (java.lang.Throwable ivjExc) {
02199
02200
02201 handleException(ivjExc);
02202 }
02203 }
02204 return ivjSaveAsToolBarButton;
02205 }
02206
02207
02208
02209
02210
02211 private javax.swing.JMenuItem getSaveMenuItem() {
02212 if (ivjSaveMenuItem == null) {
02213 try {
02214 ivjSaveMenuItem = new javax.swing.JMenuItem();
02215 ivjSaveMenuItem.setName("SaveMenuItem");
02216 ivjSaveMenuItem.setMnemonic('s');
02217 ivjSaveMenuItem.setText("Save");
02218 ivjSaveMenuItem.setBackground(new java.awt.Color(204,204,255));
02219
02220
02221 } catch (java.lang.Throwable ivjExc) {
02222
02223
02224 handleException(ivjExc);
02225 }
02226 }
02227 return ivjSaveMenuItem;
02228 }
02229
02230
02231
02232
02233
02234 private javax.swing.JButton getSaveToolBarButton() {
02235 if (ivjSaveToolBarButton == null) {
02236 try {
02237 ivjSaveToolBarButton = new javax.swing.JButton();
02238 ivjSaveToolBarButton.setName("SaveToolBarButton");
02239 ivjSaveToolBarButton.setToolTipText("Save sessions");
02240 ivjSaveToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02241 ivjSaveToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02242 ivjSaveToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Save24.gif")));
02243 ivjSaveToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02244 ivjSaveToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02245 ivjSaveToolBarButton.setText(" Save ");
02246 ivjSaveToolBarButton.setBackground(new java.awt.Color(204,204,255));
02247 ivjSaveToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02248 ivjSaveToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02249 ivjSaveToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Save24.gif")));
02250 ivjSaveToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02251 ivjSaveToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02252 ivjSaveToolBarButton.setEnabled(true);
02253
02254
02255 } catch (java.lang.Throwable ivjExc) {
02256
02257
02258 handleException(ivjExc);
02259 }
02260 }
02261 return ivjSaveToolBarButton;
02262 }
02263
02264
02265
02266
02267
02268 private javax.swing.JButton getSeparator1ToolBarButton() {
02269 if (ivjSeparator1ToolBarButton == null) {
02270 try {
02271 ivjSeparator1ToolBarButton = new javax.swing.JButton();
02272 ivjSeparator1ToolBarButton.setName("Separator1ToolBarButton");
02273 ivjSeparator1ToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02274 ivjSeparator1ToolBarButton.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02275 ivjSeparator1ToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02276 ivjSeparator1ToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02277 ivjSeparator1ToolBarButton.setMinimumSize(new java.awt.Dimension(20, 50));
02278 ivjSeparator1ToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02279 ivjSeparator1ToolBarButton.setText("");
02280 ivjSeparator1ToolBarButton.setBackground(new java.awt.Color(204,204,255));
02281 ivjSeparator1ToolBarButton.setMaximumSize(new java.awt.Dimension(20, 50));
02282 ivjSeparator1ToolBarButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02283 ivjSeparator1ToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02284 ivjSeparator1ToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02285 ivjSeparator1ToolBarButton.setPreferredSize(new java.awt.Dimension(30, 50));
02286 ivjSeparator1ToolBarButton.setEnabled(false);
02287
02288
02289 } catch (java.lang.Throwable ivjExc) {
02290
02291
02292 handleException(ivjExc);
02293 }
02294 }
02295 return ivjSeparator1ToolBarButton;
02296 }
02297
02298
02299
02300
02301
02302 private javax.swing.JButton getSeparator1ToolBarButton1() {
02303 if (ivjSeparator1ToolBarButton1 == null) {
02304 try {
02305 ivjSeparator1ToolBarButton1 = new javax.swing.JButton();
02306 ivjSeparator1ToolBarButton1.setName("Separator1ToolBarButton1");
02307 ivjSeparator1ToolBarButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02308 ivjSeparator1ToolBarButton1.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02309 ivjSeparator1ToolBarButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
02310 ivjSeparator1ToolBarButton1.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02311 ivjSeparator1ToolBarButton1.setMinimumSize(new java.awt.Dimension(20, 50));
02312 ivjSeparator1ToolBarButton1.setBorder(new javax.swing.border.CompoundBorder());
02313 ivjSeparator1ToolBarButton1.setText("");
02314 ivjSeparator1ToolBarButton1.setBackground(new java.awt.Color(204,204,255));
02315 ivjSeparator1ToolBarButton1.setMaximumSize(new java.awt.Dimension(20, 50));
02316 ivjSeparator1ToolBarButton1.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02317 ivjSeparator1ToolBarButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02318 ivjSeparator1ToolBarButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02319 ivjSeparator1ToolBarButton1.setPreferredSize(new java.awt.Dimension(30, 50));
02320 ivjSeparator1ToolBarButton1.setEnabled(false);
02321
02322
02323 } catch (java.lang.Throwable ivjExc) {
02324
02325
02326 handleException(ivjExc);
02327 }
02328 }
02329 return ivjSeparator1ToolBarButton1;
02330 }
02331
02332
02333
02334
02335
02336 private javax.swing.JButton getSeparator1ToolBarButton11() {
02337 if (ivjSeparator1ToolBarButton11 == null) {
02338 try {
02339 ivjSeparator1ToolBarButton11 = new javax.swing.JButton();
02340 ivjSeparator1ToolBarButton11.setName("Separator1ToolBarButton11");
02341 ivjSeparator1ToolBarButton11.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02342 ivjSeparator1ToolBarButton11.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02343 ivjSeparator1ToolBarButton11.setMargin(new java.awt.Insets(0, 0, 0, 0));
02344 ivjSeparator1ToolBarButton11.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02345 ivjSeparator1ToolBarButton11.setMinimumSize(new java.awt.Dimension(20, 50));
02346 ivjSeparator1ToolBarButton11.setBorder(new javax.swing.border.CompoundBorder());
02347 ivjSeparator1ToolBarButton11.setText("");
02348 ivjSeparator1ToolBarButton11.setBackground(new java.awt.Color(204,204,255));
02349 ivjSeparator1ToolBarButton11.setMaximumSize(new java.awt.Dimension(20, 50));
02350 ivjSeparator1ToolBarButton11.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02351 ivjSeparator1ToolBarButton11.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02352 ivjSeparator1ToolBarButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02353 ivjSeparator1ToolBarButton11.setPreferredSize(new java.awt.Dimension(20, 50));
02354 ivjSeparator1ToolBarButton11.setEnabled(false);
02355
02356
02357 } catch (java.lang.Throwable ivjExc) {
02358
02359
02360 handleException(ivjExc);
02361 }
02362 }
02363 return ivjSeparator1ToolBarButton11;
02364 }
02365
02366
02367
02368
02369
02370 private javax.swing.JButton getSeparator1ToolBarButton111() {
02371 if (ivjSeparator1ToolBarButton111 == null) {
02372 try {
02373 ivjSeparator1ToolBarButton111 = new javax.swing.JButton();
02374 ivjSeparator1ToolBarButton111.setName("Separator1ToolBarButton111");
02375 ivjSeparator1ToolBarButton111.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02376 ivjSeparator1ToolBarButton111.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02377 ivjSeparator1ToolBarButton111.setMargin(new java.awt.Insets(0, 0, 0, 0));
02378 ivjSeparator1ToolBarButton111.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02379 ivjSeparator1ToolBarButton111.setMinimumSize(new java.awt.Dimension(20, 50));
02380 ivjSeparator1ToolBarButton111.setBorder(new javax.swing.border.CompoundBorder());
02381 ivjSeparator1ToolBarButton111.setText("");
02382 ivjSeparator1ToolBarButton111.setBackground(new java.awt.Color(204,204,255));
02383 ivjSeparator1ToolBarButton111.setMaximumSize(new java.awt.Dimension(20, 50));
02384 ivjSeparator1ToolBarButton111.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02385 ivjSeparator1ToolBarButton111.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02386 ivjSeparator1ToolBarButton111.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02387 ivjSeparator1ToolBarButton111.setPreferredSize(new java.awt.Dimension(20, 50));
02388 ivjSeparator1ToolBarButton111.setEnabled(false);
02389
02390
02391 } catch (java.lang.Throwable ivjExc) {
02392
02393
02394 handleException(ivjExc);
02395 }
02396 }
02397 return ivjSeparator1ToolBarButton111;
02398 }
02399
02400
02401
02402
02403
02404 private javax.swing.JButton getSeparator1ToolBarButton1111() {
02405 if (ivjSeparator1ToolBarButton1111 == null) {
02406 try {
02407 ivjSeparator1ToolBarButton1111 = new javax.swing.JButton();
02408 ivjSeparator1ToolBarButton1111.setName("Separator1ToolBarButton1111");
02409 ivjSeparator1ToolBarButton1111.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02410 ivjSeparator1ToolBarButton1111.setDisabledSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02411 ivjSeparator1ToolBarButton1111.setMargin(new java.awt.Insets(0, 0, 0, 0));
02412 ivjSeparator1ToolBarButton1111.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02413 ivjSeparator1ToolBarButton1111.setMinimumSize(new java.awt.Dimension(20, 50));
02414 ivjSeparator1ToolBarButton1111.setBorder(new javax.swing.border.CompoundBorder());
02415 ivjSeparator1ToolBarButton1111.setText("");
02416 ivjSeparator1ToolBarButton1111.setBackground(new java.awt.Color(204,204,255));
02417 ivjSeparator1ToolBarButton1111.setMaximumSize(new java.awt.Dimension(20, 50));
02418 ivjSeparator1ToolBarButton1111.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02419 ivjSeparator1ToolBarButton1111.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02420 ivjSeparator1ToolBarButton1111.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/separator.gif")));
02421 ivjSeparator1ToolBarButton1111.setPreferredSize(new java.awt.Dimension(20, 50));
02422 ivjSeparator1ToolBarButton1111.setEnabled(false);
02423
02424
02425 } catch (java.lang.Throwable ivjExc) {
02426
02427
02428 handleException(ivjExc);
02429 }
02430 }
02431 return ivjSeparator1ToolBarButton1111;
02432 }
02433
02434
02435
02436
02437
02438 private javax.swing.JMenu getSessionMenu() {
02439 if (ivjSessionMenu == null) {
02440 try {
02441 ivjSessionMenu = new javax.swing.JMenu();
02442 ivjSessionMenu.setName("SessionMenu");
02443 ivjSessionMenu.setMnemonic('s');
02444 ivjSessionMenu.setText("Session");
02445 ivjSessionMenu.setBackground(new java.awt.Color(204,204,255));
02446 ivjSessionMenu.setActionCommand("ProjectMenu");
02447 ivjSessionMenu.add(getNewMenuItem());
02448 ivjSessionMenu.add(getOpenMenuItem());
02449 ivjSessionMenu.add(getSaveAsMenuItem());
02450 ivjSessionMenu.add(getSaveMenuItem());
02451 ivjSessionMenu.add(getJSeparator4());
02452 ivjSessionMenu.add(getManagerMenuItem());
02453 ivjSessionMenu.add(getJSeparator1());
02454 ivjSessionMenu.add(getIRMenuItem());
02455 ivjSessionMenu.add(getJSeparator3());
02456 ivjSessionMenu.add(getExitMenuItem());
02457
02458
02459 } catch (java.lang.Throwable ivjExc) {
02460
02461
02462 handleException(ivjExc);
02463 }
02464 }
02465 return ivjSessionMenu;
02466 }
02467
02468
02469
02470
02471
02472 private javax.swing.JButton getSessionToolBarButton() {
02473 if (ivjSessionToolBarButton == null) {
02474 try {
02475 ivjSessionToolBarButton = new javax.swing.JButton();
02476 ivjSessionToolBarButton.setName("SessionToolBarButton");
02477 ivjSessionToolBarButton.setToolTipText("Session Manager");
02478 ivjSessionToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02479 ivjSessionToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02480 ivjSessionToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Session24.gif")));
02481 ivjSessionToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02482 ivjSessionToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02483 ivjSessionToolBarButton.setText(" Session ");
02484 ivjSessionToolBarButton.setBackground(new java.awt.Color(204,204,255));
02485 ivjSessionToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02486 ivjSessionToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02487 ivjSessionToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Session24.gif")));
02488 ivjSessionToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02489 ivjSessionToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02490
02491
02492 } catch (java.lang.Throwable ivjExc) {
02493
02494
02495 handleException(ivjExc);
02496 }
02497 }
02498 return ivjSessionToolBarButton;
02499 }
02500
02501
02502
02503
02504
02505 private javax.swing.JButton getSlicerToolBarButton() {
02506 if (ivjSlicerToolBarButton == null) {
02507 try {
02508 ivjSlicerToolBarButton = new javax.swing.JButton();
02509 ivjSlicerToolBarButton.setName("SlicerToolBarButton");
02510 ivjSlicerToolBarButton.setToolTipText("Slicer");
02511 ivjSlicerToolBarButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
02512 ivjSlicerToolBarButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
02513 ivjSlicerToolBarButton.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/SlicerSelected24.gif")));
02514 ivjSlicerToolBarButton.setMinimumSize(new java.awt.Dimension(65, 50));
02515 ivjSlicerToolBarButton.setBorder(new javax.swing.border.CompoundBorder());
02516 ivjSlicerToolBarButton.setText(" Slicer ");
02517 ivjSlicerToolBarButton.setBackground(new java.awt.Color(204,204,255));
02518 ivjSlicerToolBarButton.setMaximumSize(new java.awt.Dimension(65, 50));
02519 ivjSlicerToolBarButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
02520 ivjSlicerToolBarButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Slicer24.gif")));
02521 ivjSlicerToolBarButton.setPreferredSize(new java.awt.Dimension(65, 50));
02522 ivjSlicerToolBarButton.setFont(new java.awt.Font("dialog", 0, 10));
02523 ivjSlicerToolBarButton.setEnabled(true);
02524
02525
02526 } catch (java.lang.Throwable ivjExc) {
02527
02528
02529 handleException(ivjExc);
02530 }
02531 }
02532 return ivjSlicerToolBarButton;
02533 }
02534
02535
02536
02537
02538
02539 private javax.swing.JMenu getSpecificationMenu() {
02540 if (ivjSpecificationMenu == null) {
02541 try {
02542 ivjSpecificationMenu = new javax.swing.JMenu();
02543 ivjSpecificationMenu.setName("SpecificationMenu");
02544 ivjSpecificationMenu.setMnemonic('p');
02545 ivjSpecificationMenu.setText("Property");
02546 ivjSpecificationMenu.setBackground(new java.awt.Color(204,204,255));
02547 ivjSpecificationMenu.add(getPatternManagerMenuItem());
02548 ivjSpecificationMenu.add(getPredicateBrowserMenuItem());
02549 ivjSpecificationMenu.add(getAssertionBrowserMenuItem());
02550 ivjSpecificationMenu.add(getJSeparator2());
02551 ivjSpecificationMenu.add(getPropertyManagerMenuItem());
02552
02553
02554 } catch (java.lang.Throwable ivjExc) {
02555
02556
02557 handleException(ivjExc);
02558 }
02559 }
02560 return ivjSpecificationMenu;
02561 }
02562
02563
02564
02565
02566
02567 public javax.swing.JLabel getSpinLabel() {
02568 if (ivjSpinLabel == null) {
02569 try {
02570 ivjSpinLabel = new javax.swing.JLabel();
02571 ivjSpinLabel.setName("SpinLabel");
02572 ivjSpinLabel.setText("JLabel1");
02573 ivjSpinLabel.setMaximumSize(new java.awt.Dimension(50, 50));
02574 ivjSpinLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/edu/ksu/cis/bandera/bui/images/Spin.gif")));
02575 ivjSpinLabel.setPreferredSize(new java.awt.Dimension(50, 50));
02576 ivjSpinLabel.setMinimumSize(new java.awt.Dimension(50, 50));
02577
02578
02579 } catch (java.lang.Throwable ivjExc) {
02580
02581
02582 handleException(ivjExc);
02583 }
02584 }
02585 return ivjSpinLabel;
02586 }
02587
02588
02589
02590
02591 private void handleException(java.lang.Throwable exception) {
02592
02593
02594
02595
02596 }
02597
02598
02599
02600
02601
02602 private void initConnections() throws java.lang.Exception {
02603
02604
02605 getExitMenuItem().addActionListener(ivjEventHandler);
02606 getManagerMenuItem().addActionListener(ivjEventHandler);
02607 getJ3CToolBarButton().addActionListener(ivjEventHandler);
02608 getSlicerToolBarButton().addActionListener(ivjEventHandler);
02609 getABPSToolBarButton().addActionListener(ivjEventHandler);
02610 getBircToolBarButton().addActionListener(ivjEventHandler);
02611 getRunToolBarButton().addActionListener(ivjEventHandler);
02612 getPatternManagerMenuItem().addActionListener(ivjEventHandler);
02613 getSaveMenuItem().addActionListener(ivjEventHandler);
02614 getSaveAsMenuItem().addActionListener(ivjEventHandler);
02615 getOpenMenuItem().addActionListener(ivjEventHandler);
02616 getNewMenuItem().addActionListener(ivjEventHandler);
02617 getPredicateBrowserMenuItem().addActionListener(ivjEventHandler);
02618 getPropertyManagerMenuItem().addActionListener(ivjEventHandler);
02619 getAbstractionManagerMenuItem().addActionListener(ivjEventHandler);
02620 getAboutMenuItem().addActionListener(ivjEventHandler);
02621 getAssertionBrowserMenuItem().addActionListener(ivjEventHandler);
02622 getSaveToolBarButton().addActionListener(ivjEventHandler);
02623 getSaveAsToolBarButton().addActionListener(ivjEventHandler);
02624 getOpenToolBarButton().addActionListener(ivjEventHandler);
02625 getNewToolBarButton().addActionListener(ivjEventHandler);
02626 getSessionToolBarButton().addActionListener(ivjEventHandler);
02627 getAssertionToolBarButton().addActionListener(ivjEventHandler);
02628 getPredicateToolBarButton().addActionListener(ivjEventHandler);
02629 getPatternToolBarButton().addActionListener(ivjEventHandler);
02630 getPropertyToolBarButton().addActionListener(ivjEventHandler);
02631 getDependToolBarButton().addActionListener(ivjEventHandler);
02632 getAbstractionToolBarButton().addActionListener(ivjEventHandler);
02633 getIRMenuItem().addActionListener(ivjEventHandler);
02634 getAbstractionLibraryManagerMenuItem().addActionListener(ivjEventHandler);
02635 }
02636
02637
02638
02639
02640 private void initialize() {
02641 try {
02642
02643 IconLibrary.initialize();
02644 FileChooser.initialize();
02645 bui = this;
02646 manager = new SessionManager();
02647 patternManager = new PatternManager();
02648 predicateBrowser = new PredicateBrowser();
02649 assertionBrowser = new AssertionBrowser();
02650 sessionPane = new BUISessionPane();
02651 propertyManager = new PropertyManager();
02652 abstractionLibraryManager = new AbstractionLibraryManager();
02653 typeGUI = new TypeGUI();
02654 spinOption = new SpinOption();
02655 irOptions = new IROptions();
02656 dSpinOption = new DSpinOption();
02657 jpfOption = new JPFOption();
02658 bui.pack();
02659 manager.pack();
02660 patternManager.pack();
02661 predicateBrowser.pack();
02662 assertionBrowser.pack();
02663 propertyManager.pack();
02664 abstractionLibraryManager.pack();
02665 typeGUI.pack();
02666 spinOption.pack();
02667 dSpinOption.pack();
02668 jpfOption.pack();
02669
02670 setName("BUI");
02671 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
02672 setJMenuBar(getBUIJMenuBar());
02673 setSize(760, 460);
02674 setTitle("Bandera");
02675 setContentPane(getBUIContentPane());
02676 initConnections();
02677 } catch (java.lang.Throwable ivjExc) {
02678 handleException(ivjExc);
02679 }
02680
02681
02682 }
02683
02684
02685
02686 public void iRMenuItem_ActionEvents() {
02687 irOptions.setVisible(true);
02688 }
02689
02690
02691
02692 public void j3CToolBarButton_ActionEvents() {
02693 Icon temp = getJ3CToolBarButton().getPressedIcon();
02694 getJ3CToolBarButton().setPressedIcon(getJ3CToolBarButton().getIcon());
02695 getJ3CToolBarButton().setIcon(temp);
02696 doJJJC = !doJJJC;
02697 }
02698
02699
02700
02701
02702 public static void main(java.lang.String[] args) {
02703 try {
02704 BUI aBUI;
02705 edu.ksu.cis.bandera.util.Preferences.load();
02706
02707 aBUI = new BUI();
02708 aBUI.addWindowListener(new java.awt.event.WindowAdapter() {
02709 public void windowClosing(java.awt.event.WindowEvent e) {
02710
02711 edu.ksu.cis.bandera.util.Preferences.save();
02712 System.exit(0);
02713 };
02714 });
02715 aBUI.setVisible(true);
02716 } catch (Throwable exception) {
02717 System.err.println("Exception occurred in main() of javax.swing.JFrame");
02718 exception.printStackTrace(System.out);
02719 }
02720 }
02721
02722
02723
02724 public void managerMenuItem_ActionEvents() {
02725 manager.pack();
02726 manager.setVisible(true);
02727 }
02728
02729
02730
02731 public void newMenuItem_ActionEvents() {
02732 Vector v = sessions.getSessions();
02733 if ((v.size() > 0) && !sessions.isSaved()){
02734 switch (JOptionPane.showConfirmDialog(this, "Current sessions are not saved. Do you want to save it now ?", "Confirm", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {
02735 case JOptionPane.YES_OPTION:
02736 saveMenuItem_ActionEvents();
02737 break;
02738 case JOptionPane.CANCEL_OPTION:
02739 return;
02740 }
02741 }
02742 changeSessions(new Sessions());
02743 }
02744
02745
02746
02747 public void newToolBarButton_ActionEvents() {
02748 newMenuItem_ActionEvents();
02749 }
02750
02751
02752
02753 public void openMenuItem_ActionEvents() {
02754 Vector v = sessions.getSessions();
02755 if ((v.size() > 0) && !sessions.isSaved()){
02756 switch (JOptionPane.showConfirmDialog(this, "Current sessions are not saved. Do you want to save it now ?", "Confirm", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE)) {
02757 case JOptionPane.YES_OPTION:
02758 saveMenuItem_ActionEvents();
02759 break;
02760 case JOptionPane.CANCEL_OPTION:
02761 return;
02762 }
02763 }
02764 System.setProperty("user.dir", BUI.originalUserDir);
02765 FileChooser.chooser.setCurrentDirectory(new File(System.getProperty("user.dir")));
02766 FileChooser.chooser.setSelectedFile(new File(""));
02767 FileChooser.chooser.setFileFilter(FileChooser.SESSION);
02768 FileChooser.chooser.setFileSelectionMode(FileChooser.FILES_ONLY);
02769
02770 if (FileChooser.chooser.showOpenDialog(this) == FileChooser.APPROVE_OPTION) {
02771 try {
02772 if (FileChooser.chooser.getSelectedFile().isDirectory()) {
02773 JOptionPane.showMessageDialog(this, "Cannot choose a directory to open a session file", "Information", JOptionPane.INFORMATION_MESSAGE);
02774 return;
02775 }
02776 if (!FileChooser.chooser.getSelectedFile().exists()) {
02777 JOptionPane.showMessageDialog(this, "Selected file does not exist", "Information", JOptionPane.INFORMATION_MESSAGE);
02778 return;
02779 }
02780 changeSessions(SessionsSaverLoader.load(FileChooser.chooser.getSelectedFile().getCanonicalPath()));
02781 sessions.setSaved(true);
02782 } catch (Exception e) {
02783 JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
02784 }
02785 }
02786 }
02787
02788
02789
02790
02791 public void openMenuItemRoboto(String filename) {
02792 try {
02793 changeSessions(SessionsSaverLoader.load(new File(filename).getCanonicalPath()));
02794 } catch (Exception e) {
02795 System.out.println("Error: " + e.getMessage());
02796 }
02797 }
02798
02799
02800
02801 public void openToolBarButton_ActionEvents() {
02802 openMenuItem_ActionEvents();
02803 }
02804
02805
02806
02807 public void patternManagerMenuItem_ActionEvents() {
02808 patternManager.setVisible(true);
02809 }
02810
02811
02812
02813 public void patternToolBarButton_ActionEvents() {
02814 patternManagerMenuItem_ActionEvents();
02815 }
02816
02817
02818
02819 public void predicateBrowserMenuItem_ActionEvents() {
02820 predicateBrowser.setVisible(true);
02821 }
02822
02823
02824
02825 public void predicateToolBarButton_ActionEvents() {
02826 predicateBrowserMenuItem_ActionEvents();
02827 }
02828
02829
02830
02831 public void propertyManagerMenuItem_ActionEvents() {
02832 propertyManager.setVisible(true);
02833 }
02834
02835
02836
02837 public void propertyToolBarButton_ActionEvents() {
02838 propertyManagerMenuItem_ActionEvents();
02839 }
02840
02841
02842
02843 public void runToolBarButton_ActionEvents() {
02844 if (isExecuting) {
02845 JOptionPane.showMessageDialog(this, "Please wait until current execution is finished", "Information", JOptionPane.INFORMATION_MESSAGE);
02846 return;
02847 }
02848 isExecuting = true;
02849 new Driver().start();
02850 }
02851
02852
02853
02854 public void saveAsMenuItem_ActionEvents() {
02855 Vector v = sessions.getSessions();
02856
02857 if (v.size() == 0) {
02858 JOptionPane.showMessageDialog(this, "There is no session to be saved", "Information", JOptionPane.INFORMATION_MESSAGE);
02859 return;
02860 }
02861
02862 FileChooser.chooser.setFileFilter(FileChooser.SESSION);
02863 FileChooser.chooser.setSelectedFile(new File(System.getProperty("user.dir")));
02864 FileChooser.chooser.setFileSelectionMode(FileChooser.FILES_ONLY);
02865 FileChooser.chooser.setSelectedFile(new File(""));
02866
02867 if (FileChooser.chooser.showSaveDialog(this) == FileChooser.APPROVE_OPTION) {
02868 try {
02869 if (FileChooser.chooser.getSelectedFile().isDirectory()) {
02870 JOptionPane.showMessageDialog(this, "Cannot choose a directory to save a session file", "Information", JOptionPane.INFORMATION_MESSAGE);
02871 return;
02872 }
02873 boolean f = true;
02874 if (FileChooser.chooser.getSelectedFile().exists()) {
02875 String filename = FileChooser.chooser.getSelectedFile().getCanonicalPath();
02876 f = JOptionPane.showConfirmDialog(this, "Overwrite " + filename + "?", "Confirm", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
02877 }
02878 if (f) {
02879 String filename = FileChooser.chooser.getSelectedFile().getCanonicalPath();
02880 sessions.setFilename(filename);
02881 saveMenuItem_ActionEvents();
02882 return;
02883 }
02884 } catch (Exception e) {
02885 JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
02886 }
02887 }
02888 }
02889
02890
02891
02892 public void saveAsToolBarButton_ActionEvents() {
02893 saveAsMenuItem_ActionEvents();
02894 }
02895
02896
02897
02898 public void saveMenuItem_ActionEvents() {
02899 Vector v = sessions.getSessions();
02900
02901 if (v.size() == 0) {
02902 JOptionPane.showMessageDialog(this, "There is no session to be saved", "Information", JOptionPane.INFORMATION_MESSAGE);
02903 return;
02904 }
02905
02906 if ("".equals(sessions.getFilename())) {
02907 saveAsMenuItem_ActionEvents();
02908 return;
02909 }
02910
02911 try {
02912 SessionsSaverLoader.save(sessions);
02913 } catch (Exception e) {
02914 JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
02915 }
02916 }
02917
02918
02919
02920 public void saveToolBarButton_ActionEvents() {
02921 saveMenuItem_ActionEvents();
02922 }
02923
02924
02925
02926 public void sessionToolBarButton_ActionEvents() {
02927 managerMenuItem_ActionEvents();
02928 }
02929
02930
02931
02932 public void slicerToolBarButton_ActionEvents() {
02933 Icon temp = getSlicerToolBarButton().getPressedIcon();
02934 getSlicerToolBarButton().setPressedIcon(getSlicerToolBarButton().getIcon());
02935 getSlicerToolBarButton().setIcon(temp);
02936 doSlicer = !doSlicer;
02937 try {
02938 sessions.getActiveSession().setDoSlicer(doSlicer);
02939 manager.updateInfo(sessions.getActiveSession());
02940 } catch (Exception e) {}
02941 }
02942 }