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 java.io.*;
00036 import edu.ksu.cis.bandera.annotation.*;
00037 import ca.mcgill.sable.soot.*;
00038 import java.util.*;
00039 import edu.ksu.cis.bandera.specification.pattern.*;
00040 import edu.ksu.cis.bandera.specification.pattern.datastructure.*;
00041 import edu.ksu.cis.bandera.specification.assertion.datastructure.*;
00042 import edu.ksu.cis.bandera.jjjc.*;
00043 import edu.ksu.cis.bandera.jjjc.symboltable.*;
00044 import edu.ksu.cis.bandera.jjjc.symboltable.Package;
00045 import edu.ksu.cis.bandera.specification.predicate.datastructure.*;
00046 import edu.ksu.cis.bandera.specification.*;
00047 import edu.ksu.cis.bandera.specification.datastructure.*;
00048 import java.awt.*;
00049 import java.awt.event.*;
00050 import javax.swing.*;
00051 public class PropertyManager extends JFrame {
00052 private boolean inNameFocusLost = false;
00053 private boolean inComboBoxChange = false;
00054 private JPanel ivjAssertionPanel = null;
00055 IvjEventHandler ivjEventHandler = new IvjEventHandler();
00056 private JButton ivjOkButton = null;
00057 private JPanel ivjPropertyManagerContentPane = null;
00058 private JTabbedPane ivjPropertyManagerTabbedPane = null;
00059 private JPanel ivjTLPanel = null;
00060 private JList ivjAssertionList = null;
00061 private JScrollPane ivjAssertionScrollPane = null;
00062 private JList ivjEnabledAssertionList = null;
00063 private JScrollPane ivjEnabledAssertionScrollPane = null;
00064 private JList ivjTLList = null;
00065 private JScrollPane ivjTLScrollPane = null;
00066 private JButton ivjAddAssertionButton = null;
00067 private JButton ivjAddEnabledAssertionButton = null;
00068 private JButton ivjAddTLButton = null;
00069 private JButton ivjRemoveAssertionButton = null;
00070 private JButton ivjRemoveEnabledAssertionButton = null;
00071 private JButton ivjRemoveTLButton = null;
00072 private JPanel ivjFormulaPanel = null;
00073 private JPanel ivjEnabledAssertionPanel = null;
00074 private JLabel ivjPatternNameLabel = null;
00075 private JLabel ivjPatternScopeLabel = null;
00076 private JLabel ivjPropositionLabel = null;
00077 private JTextField ivjPropositionTextField = null;
00078 private JComboBox ivjPatternNameComboBox = null;
00079 private JComboBox ivjPatternScopeComboBox = null;
00080 private JComboBox ivjPropositionComboBox = null;
00081 private JButton ivjExpandButton = null;
00082 private JButton ivjShowErrorButton = null;
00083 private JButton ivjShowMappingButton = null;
00084 private JButton ivjImportAssertionButton = null;
00085 private JButton ivjImportAssertionSetButton = null;
00086 private JList ivjImportList = null;
00087 private JButton ivjImportPackageButton = null;
00088 private JPanel ivjImportPanel = null;
00089 private JButton ivjImportPredicateButton = null;
00090 private JButton ivjImportPredicateSetButton = null;
00091 private JScrollPane ivjImportScrollPane = null;
00092 private JButton ivjImportTypeButton = null;
00093 private JButton ivjOpenButton = null;
00094 private JButton ivjRemoveImportButton = null;
00095 private JButton ivjSaveButton = null;
00096 private JPanel ivjPropertyPanel = null;
00097 private JButton ivjSaveAsButton = null;
00098 private JButton ivjActivateAssertionButton = null;
00099 private JButton ivjActivateTLButton = null;
00100 private JLabel ivjAssertionNameLabel = null;
00101 private JTextField ivjAssertionNameTextField = null;
00102 private JLabel ivjQuantifierLabel = null;
00103 private JLabel ivjTLNameLabel = null;
00104 private JTextField ivjTLNameTextField = null;
00105 private JButton ivjTLDescriptionButton = null;
00106 private JPanel ivjDescriptionPanel = null;
00107 private JScrollPane ivjDescriptionScrollPane = null;
00108 private JTextArea ivjDescriptionTextArea = null;
00109 private JTextField ivjExpandedPatternTextField = null;
00110 private JButton ivjAssertionDescriptionButton = null;
00111 private JButton ivjNewButton = null;
00112 private JMenuItem ivjAddPredicateMenuItem = null;
00113 private JPopupMenu ivjPropositionPopupMenu = null;
00114 private boolean isClean = true;
00115 private JTextArea ivjQuantificationTextArea = null;
00116 private JScrollPane ivjQuantificationScrollPane = null;
00117
00118 class IvjEventHandler implements java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, javax.swing.event.ListSelectionListener {
00119 public void actionPerformed(java.awt.event.ActionEvent e) {
00120 if (e.getSource() == PropertyManager.this.getOkButton())
00121 connEtoM1(e);
00122 if (e.getSource() == PropertyManager.this.getImportTypeButton())
00123 connEtoC1();
00124 if (e.getSource() == PropertyManager.this.getImportPackageButton())
00125 connEtoC2();
00126 if (e.getSource() == PropertyManager.this.getImportPredicateButton())
00127 connEtoC3();
00128 if (e.getSource() == PropertyManager.this.getImportPredicateSetButton())
00129 connEtoC4();
00130 if (e.getSource() == PropertyManager.this.getImportAssertionButton())
00131 connEtoC5();
00132 if (e.getSource() == PropertyManager.this.getImportAssertionSetButton())
00133 connEtoC6();
00134 if (e.getSource() == PropertyManager.this.getRemoveImportButton())
00135 connEtoC7();
00136 if (e.getSource() == PropertyManager.this.getAddAssertionButton())
00137 connEtoC9();
00138 if (e.getSource() == PropertyManager.this.getRemoveAssertionButton())
00139 connEtoC10();
00140 if (e.getSource() == PropertyManager.this.getActivateAssertionButton())
00141 connEtoC11();
00142 if (e.getSource() == PropertyManager.this.getAddEnabledAssertionButton())
00143 connEtoC13();
00144 if (e.getSource() == PropertyManager.this.getRemoveEnabledAssertionButton())
00145 connEtoC14();
00146 if (e.getSource() == PropertyManager.this.getAddTLButton())
00147 connEtoC20();
00148 if (e.getSource() == PropertyManager.this.getRemoveTLButton())
00149 connEtoC21();
00150 if (e.getSource() == PropertyManager.this.getActivateTLButton())
00151 connEtoC22();
00152 if (e.getSource() == PropertyManager.this.getPatternNameComboBox())
00153 connEtoC27();
00154 if (e.getSource() == PropertyManager.this.getPatternScopeComboBox())
00155 connEtoC28();
00156 if (e.getSource() == PropertyManager.this.getPropositionComboBox())
00157 connEtoC29();
00158 if (e.getSource() == PropertyManager.this.getExpandButton())
00159 connEtoC32();
00160 if (e.getSource() == PropertyManager.this.getShowErrorButton())
00161 connEtoC33();
00162 if (e.getSource() == PropertyManager.this.getShowMappingButton())
00163 connEtoC34();
00164 if (e.getSource() == PropertyManager.this.getNewButton())
00165 connEtoC35();
00166 if (e.getSource() == PropertyManager.this.getOpenButton())
00167 connEtoC36();
00168 if (e.getSource() == PropertyManager.this.getSaveAsButton())
00169 connEtoC37();
00170 if (e.getSource() == PropertyManager.this.getSaveButton())
00171 connEtoC38();
00172 if (e.getSource() == PropertyManager.this.getAddPredicateMenuItem())
00173 connEtoC39();
00174 };
00175 public void focusGained(java.awt.event.FocusEvent e) {};
00176 public void focusLost(java.awt.event.FocusEvent e) {
00177 if (e.getSource() == PropertyManager.this.getAssertionNameTextField())
00178 connEtoC18(e);
00179 if (e.getSource() == PropertyManager.this.getTLNameTextField())
00180 connEtoC24(e);
00181 if (e.getSource() == PropertyManager.this.getPropositionTextField())
00182 connEtoC31(e);
00183 if (e.getSource() == PropertyManager.this.getQuantificationTextArea())
00184 connEtoC41(e);
00185 };
00186 public void keyPressed(java.awt.event.KeyEvent e) {
00187 if (e.getSource() == PropertyManager.this.getAssertionNameTextField())
00188 connEtoC17();
00189 if (e.getSource() == PropertyManager.this.getTLNameTextField())
00190 connEtoC23();
00191 if (e.getSource() == PropertyManager.this.getPropositionTextField())
00192 connEtoC30();
00193 if (e.getSource() == PropertyManager.this.getQuantificationTextArea())
00194 connEtoC40();
00195 };
00196 public void keyReleased(java.awt.event.KeyEvent e) {
00197 if (e.getSource() == PropertyManager.this.getAssertionNameTextField())
00198 connEtoC17();
00199 if (e.getSource() == PropertyManager.this.getTLNameTextField())
00200 connEtoC23();
00201 if (e.getSource() == PropertyManager.this.getPropositionTextField())
00202 connEtoC30();
00203 if (e.getSource() == PropertyManager.this.getQuantificationTextArea())
00204 connEtoC40();
00205 };
00206 public void keyTyped(java.awt.event.KeyEvent e) {
00207 if (e.getSource() == PropertyManager.this.getAssertionNameTextField())
00208 connEtoC17();
00209 if (e.getSource() == PropertyManager.this.getTLNameTextField())
00210 connEtoC23();
00211 if (e.getSource() == PropertyManager.this.getPropositionTextField())
00212 connEtoC30();
00213 if (e.getSource() == PropertyManager.this.getQuantificationTextArea())
00214 connEtoC40();
00215 };
00216 public void mouseClicked(java.awt.event.MouseEvent e) {};
00217 public void mouseEntered(java.awt.event.MouseEvent e) {};
00218 public void mouseExited(java.awt.event.MouseEvent e) {};
00219 public void mousePressed(java.awt.event.MouseEvent e) {};
00220 public void mouseReleased(java.awt.event.MouseEvent e) {
00221 if (e.getSource() == PropertyManager.this.getPropositionTextField())
00222 connEtoC16(e);
00223 };
00224 public void valueChanged(javax.swing.event.ListSelectionEvent e) {
00225 if (e.getSource() == PropertyManager.this.getImportList())
00226 connEtoC8();
00227 if (e.getSource() == PropertyManager.this.getAssertionList())
00228 connEtoC12();
00229 if (e.getSource() == PropertyManager.this.getEnabledAssertionList())
00230 connEtoC15();
00231 if (e.getSource() == PropertyManager.this.getTLList())
00232 connEtoC19();
00233 };
00234 };
00235
00236
00237
00238 public PropertyManager() {
00239 super();
00240 initialize();
00241 }
00242
00243
00244
00245
00246 public PropertyManager(String title) {
00247 super(title);
00248 }
00249
00250
00251
00252 public void activateAssertionButton_ActionEvents() {
00253 Object[] objects = getAssertionList().getSelectedValues();
00254 int[] indices = getAssertionList().getSelectedIndices();
00255 for (int i = 0; i < objects.length; i++) {
00256 BUI.property.activateOrDeactivateAssertionProperty((AssertionProperty) objects[i]);
00257 }
00258 updateAssertionList();
00259 updateEnabledAssertionList();
00260 getAddEnabledAssertionButton().setEnabled(BUI.property.getActivatedAssertionProperties().size() == 1);
00261 getAssertionList().setSelectedIndices(indices);
00262 BUI.manager.updateProperty();
00263 }
00264
00265
00266
00267 public void activateTLButton_ActionEvents() {
00268 TemporalLogicProperty tlp = (TemporalLogicProperty) getTLList().getSelectedValue();
00269 BUI.property.activateOrDeactivateTemporalLogicProperty(tlp);
00270
00271 updateTLList();
00272 getTLList().setSelectedValue(tlp, true);
00273 tlp = BUI.property.getActivatedTemporalLogicProperty();
00274 if (tlp == null) {
00275 setTLEnabledAll(false);
00276 }
00277 String s = tlp.getQuantifier();
00278 if (s == null) {
00279 s = "";
00280 tlp.setQuantifier(s);
00281 }
00282 getQuantificationTextArea().setText(s);
00283
00284 Hashtable table = PatternSaverLoader.getPatternTable();
00285
00286 inComboBoxChange = true;
00287 try {
00288 getPatternNameComboBox().removeAllItems();
00289 } catch (Exception e) {}
00290
00291 TreeSet ts = new TreeSet();
00292 for (Enumeration e = table.keys(); e.hasMoreElements();) {
00293 ts.add(e.nextElement());
00294 }
00295
00296 for (Iterator i = ts.iterator(); i.hasNext();) {
00297 getPatternNameComboBox().addItem(i.next());
00298 }
00299 inComboBoxChange = false;
00300
00301 s = tlp.getPatternName();
00302
00303 if (s == null) getPatternNameComboBox().setSelectedIndex(0);
00304 else getPatternNameComboBox().setSelectedItem(s);
00305
00306 patternNameComboBox_ActionEvents();
00307
00308 s = (String) getPatternNameComboBox().getSelectedItem();
00309
00310 BUI.property.getActivatedTemporalLogicProperty().setPatternName(s);
00311
00312 s = (String) getPatternScopeComboBox().getSelectedItem();
00313
00314 BUI.property.getActivatedTemporalLogicProperty().setPatternScope(s);
00315
00316 Pattern p = (Pattern) ((Hashtable) PatternSaverLoader.getPatternTable().get(getPatternNameComboBox().getSelectedItem())).get(s);
00317
00318 Hashtable parameters = new Hashtable();
00319 for (Iterator i = p.getParameters().iterator(); i.hasNext();) {
00320 Object parm = i.next();
00321 parameters.put(parm, parm);
00322 }
00323 String template = p.expandFormat(parameters);
00324 getExpandedPatternTextField().setText(template);
00325 getExpandedPatternTextField().setToolTipText(template);
00326 setTLEnabledAll(true);
00327 BUI.manager.updateProperty();
00328 }
00329
00330
00331
00332 public void addAssertionButton_ActionEvents() {
00333 for (int i = 1; i <= 32000; i++) {
00334 if (!BUI.property.hasAssertionProperty("Untitled" + i)) {
00335 AssertionProperty ap = new AssertionProperty("Untitled" + i);
00336 BUI.property.addAssertionProperty(ap);
00337 updateAssertionList();
00338 getAssertionList().setSelectedValue(ap, true);
00339 isClean = false;
00340 return;
00341 }
00342 }
00343 }
00344
00345
00346
00347 public void addEnabledAssertionButton_ActionEvents() {
00348 AssertionProperty ap = (AssertionProperty) BUI.property.getActivatedAssertionProperties().iterator().next();
00349 Vector v = new Vector();
00350 for (Enumeration e = AssertionSet.getAssertionSetTable().elements(); e.hasMoreElements();) {
00351 for (Enumeration e2 = ((AssertionSet) e.nextElement()).getAssertionTable().elements(); e2.hasMoreElements();) {
00352 v.add(e2.nextElement());
00353 }
00354 }
00355 int size = v.size();
00356 if (size > 0) {
00357 Object[] possibleValues = new Object[size];
00358 int i = 0;
00359 for (Enumeration e = v.elements(); e.hasMoreElements(); i++) {
00360 possibleValues[i] = ((Assertion) e.nextElement()).getName();
00361 }
00362 Object selectedValue = JOptionPane.showInputDialog(null, "Choose assertion", "Enable Assertion", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
00363 if (selectedValue != null) {
00364 try {
00365 Assertion a = AssertionSet.getAssertion((Name) selectedValue);
00366 ap.addAssertion(a.getName());
00367 updateEnabledAssertionList();
00368 getEnabledAssertionList().setSelectedValue(a, true);
00369 } catch (Exception e) {
00370 throw new RuntimeException(e.getMessage());
00371 }
00372 }
00373 } else {
00374 JOptionPane.showMessageDialog(null, "There are no assertions to choose from", "Enable Assertion", JOptionPane.INFORMATION_MESSAGE);
00375 }
00376 }
00377
00378
00379
00380 public void addPredicateMenuItem_ActionEvents() {
00381 Vector v = new Vector();
00382 for (Enumeration e = PredicateSet.getPredicateSetTable().elements(); e.hasMoreElements();) {
00383 for (Enumeration e2 = ((PredicateSet) e.nextElement()).getPredicateTable().elements(); e2.hasMoreElements();) {
00384 v.add(e2.nextElement());
00385 }
00386 }
00387 int size = v.size();
00388 if (size > 0) {
00389 Object[] possibleValues = new Object[size];
00390 int i = 0;
00391 for (Enumeration e = v.elements(); e.hasMoreElements(); i++) {
00392 possibleValues[i] = ((Predicate) e.nextElement()).getName();
00393 }
00394 Object selectedValue = JOptionPane.showInputDialog(null, "Choose predicate", "Add Predicate", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
00395 if (selectedValue != null) {
00396 try {
00397 Predicate p = PredicateSet.getPredicate((Name) selectedValue);
00398 BUI.propertyManager.getPropositionTextField().setText(BUI.propertyManager.getPropositionTextField().getText() + p.getName());
00399 BUI.propertyManager.propositionTextField_KeyEvents();
00400 } catch (Exception e) {
00401 }
00402 }
00403 } else {
00404 JOptionPane.showMessageDialog(null, "There are no predicates to choose from", "Add Predicate", JOptionPane.INFORMATION_MESSAGE);
00405 }
00406 }
00407
00408
00409
00410 public void addTLButton_ActionEvents() {
00411 for (int i = 1; i <= 32000; i++) {
00412 if (!BUI.property.hasTemporalLogicProperty("Untitled" + i)) {
00413 TemporalLogicProperty tlp = new TemporalLogicProperty("Untitled" + i);
00414 BUI.property.addTemporalLogicProperty(tlp);
00415 updateTLList();
00416 getTLList().setSelectedValue(tlp, true);
00417 getActivateTLButton().setEnabled(true);
00418 isClean = false;
00419 return;
00420 }
00421 }
00422 }
00423
00424
00425
00426 public void assertionList_ListSelectionEvents() {
00427 getRemoveAssertionButton().setEnabled(true);
00428 getActivateAssertionButton().setEnabled(true);
00429 boolean f = (BUI.property.getActivatedAssertionProperties().size() == 1) && (getAssertionList().getSelectedValues().length == 1);
00430 if (!f) {
00431 getAssertionNameTextField().setText("");
00432 getAssertionNameTextField().setEditable(false);
00433 } else {
00434 AssertionProperty ap = (AssertionProperty) getAssertionList().getSelectedValue();
00435 getAssertionNameTextField().setText(ap.getName());
00436 getAssertionNameTextField().setEditable(BUI.property.isActivated(ap));
00437 }
00438 }
00439
00440
00441
00442 public void assertionNameTextField_FocusLost() {
00443 String s = getAssertionNameTextField().getText().trim();
00444 if (!inNameFocusLost && !Util.isValidId(s)) {
00445 inNameFocusLost = true;
00446 do {
00447 s = JOptionPane.showInputDialog("Please input a valid assertion property name");
00448 } while ((s == null) || !Util.isValidId(s));
00449 getAssertionNameTextField().setText(s);
00450 AssertionProperty ap = (AssertionProperty) BUI.property.getActivatedAssertionProperties().iterator().next();
00451 ap.setName(s);
00452 getAssertionList().repaint();
00453 inNameFocusLost = false;
00454 }
00455 }
00456
00457
00458
00459 public void assertionNameTextField_KeyEvents() {
00460 AssertionProperty ap = (AssertionProperty) BUI.property.getActivatedAssertionProperties().iterator().next();
00461 ap.setName(getAssertionNameTextField().getText().trim());
00462 getAssertionList().repaint();
00463 }
00464
00465
00466
00467
00468 private void connEtoC1() {
00469 try {
00470
00471
00472 this.importTypeButton_ActionEvents();
00473
00474
00475 } catch (java.lang.Throwable ivjExc) {
00476
00477
00478 handleException(ivjExc);
00479 }
00480 }
00481
00482
00483
00484
00485 private void connEtoC10() {
00486 try {
00487
00488
00489 this.removeAssertionButton_ActionEvents();
00490
00491
00492 } catch (java.lang.Throwable ivjExc) {
00493
00494
00495 handleException(ivjExc);
00496 }
00497 }
00498
00499
00500
00501
00502 private void connEtoC11() {
00503 try {
00504
00505
00506 this.activateAssertionButton_ActionEvents();
00507
00508
00509 } catch (java.lang.Throwable ivjExc) {
00510
00511
00512 handleException(ivjExc);
00513 }
00514 }
00515
00516
00517
00518
00519 private void connEtoC12() {
00520 try {
00521
00522
00523 this.assertionList_ListSelectionEvents();
00524
00525
00526 } catch (java.lang.Throwable ivjExc) {
00527
00528
00529 handleException(ivjExc);
00530 }
00531 }
00532
00533
00534
00535
00536 private void connEtoC13() {
00537 try {
00538
00539
00540 this.addEnabledAssertionButton_ActionEvents();
00541
00542
00543 } catch (java.lang.Throwable ivjExc) {
00544
00545
00546 handleException(ivjExc);
00547 }
00548 }
00549
00550
00551
00552
00553 private void connEtoC14() {
00554 try {
00555
00556
00557 this.removeEnabledAssertionButton_ActionEvents();
00558
00559
00560 } catch (java.lang.Throwable ivjExc) {
00561
00562
00563 handleException(ivjExc);
00564 }
00565 }
00566
00567
00568
00569
00570 private void connEtoC15() {
00571 try {
00572
00573
00574 this.enabledAssertionList_ListSelectionEvents();
00575
00576
00577 } catch (java.lang.Throwable ivjExc) {
00578
00579
00580 handleException(ivjExc);
00581 }
00582 }
00583
00584
00585
00586
00587 private void connEtoC16() {
00588 try {
00589
00590
00591 this.gotoAssertionDefinitionButton_ActionEvents();
00592
00593
00594 } catch (java.lang.Throwable ivjExc) {
00595
00596
00597 handleException(ivjExc);
00598 }
00599 }
00600
00601
00602
00603
00604
00605 private void connEtoC16(java.awt.event.MouseEvent arg1) {
00606 try {
00607
00608
00609 this.propositionTextField_MouseReleased(arg1);
00610
00611
00612 } catch (java.lang.Throwable ivjExc) {
00613
00614
00615 handleException(ivjExc);
00616 }
00617 }
00618
00619
00620
00621
00622 private void connEtoC17() {
00623 try {
00624
00625
00626 this.assertionNameTextField_KeyEvents();
00627
00628
00629 } catch (java.lang.Throwable ivjExc) {
00630
00631
00632 handleException(ivjExc);
00633 }
00634 }
00635
00636
00637
00638
00639
00640 private void connEtoC18(java.awt.event.FocusEvent arg1) {
00641 try {
00642
00643
00644 this.assertionNameTextField_FocusLost();
00645
00646
00647 } catch (java.lang.Throwable ivjExc) {
00648
00649
00650 handleException(ivjExc);
00651 }
00652 }
00653
00654
00655
00656
00657 private void connEtoC19() {
00658 try {
00659
00660
00661 this.tLList_ListSelectionEvents();
00662
00663
00664 } catch (java.lang.Throwable ivjExc) {
00665
00666
00667 handleException(ivjExc);
00668 }
00669 }
00670
00671
00672
00673
00674 private void connEtoC2() {
00675 try {
00676
00677
00678 this.importPackageButton_ActionEvents();
00679
00680
00681 } catch (java.lang.Throwable ivjExc) {
00682
00683
00684 handleException(ivjExc);
00685 }
00686 }
00687
00688
00689
00690
00691 private void connEtoC20() {
00692 try {
00693
00694
00695 this.addTLButton_ActionEvents();
00696
00697
00698 } catch (java.lang.Throwable ivjExc) {
00699
00700
00701 handleException(ivjExc);
00702 }
00703 }
00704
00705
00706
00707
00708 private void connEtoC21() {
00709 try {
00710
00711
00712 this.removeTLButton_ActionEvents();
00713
00714
00715 } catch (java.lang.Throwable ivjExc) {
00716
00717
00718 handleException(ivjExc);
00719 }
00720 }
00721
00722
00723
00724
00725 private void connEtoC22() {
00726 try {
00727
00728
00729 this.activateTLButton_ActionEvents();
00730
00731
00732 } catch (java.lang.Throwable ivjExc) {
00733
00734
00735 handleException(ivjExc);
00736 }
00737 }
00738
00739
00740
00741
00742 private void connEtoC23() {
00743 try {
00744
00745
00746 this.tLNameTextField_KeyEvents();
00747
00748
00749 } catch (java.lang.Throwable ivjExc) {
00750
00751
00752 handleException(ivjExc);
00753 }
00754 }
00755
00756
00757
00758
00759
00760 private void connEtoC24(java.awt.event.FocusEvent arg1) {
00761 try {
00762
00763
00764 this.tLNameTextField_FocusLost();
00765
00766
00767 } catch (java.lang.Throwable ivjExc) {
00768
00769
00770 handleException(ivjExc);
00771 }
00772 }
00773
00774
00775
00776
00777 private void connEtoC27() {
00778 try {
00779
00780
00781 this.patternNameComboBox_ActionEvents();
00782
00783
00784 } catch (java.lang.Throwable ivjExc) {
00785
00786
00787 handleException(ivjExc);
00788 }
00789 }
00790
00791
00792
00793
00794 private void connEtoC28() {
00795 try {
00796
00797
00798 this.patternScopeComboBox_ActionEvents();
00799
00800
00801 } catch (java.lang.Throwable ivjExc) {
00802
00803
00804 handleException(ivjExc);
00805 }
00806 }
00807
00808
00809
00810
00811 private void connEtoC29() {
00812 try {
00813
00814
00815 this.propositionComboBox_ActionEvents();
00816
00817
00818 } catch (java.lang.Throwable ivjExc) {
00819
00820
00821 handleException(ivjExc);
00822 }
00823 }
00824
00825
00826
00827
00828 private void connEtoC3() {
00829 try {
00830
00831
00832 this.importPredicateButton_ActionEvents();
00833
00834
00835 } catch (java.lang.Throwable ivjExc) {
00836
00837
00838 handleException(ivjExc);
00839 }
00840 }
00841
00842
00843
00844
00845 private void connEtoC30() {
00846 try {
00847
00848
00849 this.propositionTextField_KeyEvents();
00850
00851
00852 } catch (java.lang.Throwable ivjExc) {
00853
00854
00855 handleException(ivjExc);
00856 }
00857 }
00858
00859
00860
00861
00862
00863 private void connEtoC31(java.awt.event.FocusEvent arg1) {
00864 try {
00865
00866
00867 this.propositionTextField_FocusLost();
00868
00869
00870 } catch (java.lang.Throwable ivjExc) {
00871
00872
00873 handleException(ivjExc);
00874 }
00875 }
00876
00877
00878
00879
00880 private void connEtoC32() {
00881 try {
00882
00883
00884 this.expandButton_ActionEvents();
00885
00886
00887 } catch (java.lang.Throwable ivjExc) {
00888
00889
00890 handleException(ivjExc);
00891 }
00892 }
00893
00894
00895
00896
00897 private void connEtoC33() {
00898 try {
00899
00900
00901 this.showErrorButton_ActionEvents();
00902
00903
00904 } catch (java.lang.Throwable ivjExc) {
00905
00906
00907 handleException(ivjExc);
00908 }
00909 }
00910
00911
00912
00913
00914 private void connEtoC34() {
00915 try {
00916
00917
00918 this.showMappingButton_ActionEvents();
00919
00920
00921 } catch (java.lang.Throwable ivjExc) {
00922
00923
00924 handleException(ivjExc);
00925 }
00926 }
00927
00928
00929
00930
00931 private void connEtoC35() {
00932 try {
00933
00934
00935 this.newButton_ActionEvents();
00936
00937
00938 } catch (java.lang.Throwable ivjExc) {
00939
00940
00941 handleException(ivjExc);
00942 }
00943 }
00944
00945
00946
00947
00948 private void connEtoC36() {
00949 try {
00950
00951
00952 this.openButton_ActionEvents();
00953
00954
00955 } catch (java.lang.Throwable ivjExc) {
00956
00957
00958 handleException(ivjExc);
00959 }
00960 }
00961
00962
00963
00964
00965 private void connEtoC37() {
00966 try {
00967
00968
00969 this.saveAsButton_ActionEvents();
00970
00971
00972 } catch (java.lang.Throwable ivjExc) {
00973
00974
00975 handleException(ivjExc);
00976 }
00977 }
00978
00979
00980
00981
00982 private void connEtoC38() {
00983 try {
00984
00985
00986 this.saveButton_ActionEvents();
00987
00988
00989 } catch (java.lang.Throwable ivjExc) {
00990
00991
00992 handleException(ivjExc);
00993 }
00994 }
00995
00996
00997
00998
00999 private void connEtoC39() {
01000 try {
01001
01002
01003 this.addPredicateMenuItem_ActionEvents();
01004
01005
01006 } catch (java.lang.Throwable ivjExc) {
01007
01008
01009 handleException(ivjExc);
01010 }
01011 }
01012
01013
01014
01015
01016 private void connEtoC4() {
01017 try {
01018
01019
01020 this.importPredicateSetButton_ActionEvents();
01021
01022
01023 } catch (java.lang.Throwable ivjExc) {
01024
01025
01026 handleException(ivjExc);
01027 }
01028 }
01029
01030
01031
01032
01033 private void connEtoC40() {
01034 try {
01035
01036
01037 this.quantificationTextArea_KeyEvents();
01038
01039
01040 } catch (java.lang.Throwable ivjExc) {
01041
01042
01043 handleException(ivjExc);
01044 }
01045 }
01046
01047
01048
01049
01050
01051 private void connEtoC41(java.awt.event.FocusEvent arg1) {
01052 try {
01053
01054
01055 this.quantificationTextArea_FocusLost(arg1);
01056
01057
01058 } catch (java.lang.Throwable ivjExc) {
01059
01060
01061 handleException(ivjExc);
01062 }
01063 }
01064
01065
01066
01067
01068 private void connEtoC5() {
01069 try {
01070
01071
01072 this.importAssertionButton_ActionEvents();
01073
01074
01075 } catch (java.lang.Throwable ivjExc) {
01076
01077
01078 handleException(ivjExc);
01079 }
01080 }
01081
01082
01083
01084
01085 private void connEtoC6() {
01086 try {
01087
01088
01089 this.importAssertionSetButton_ActionEvents();
01090
01091
01092 } catch (java.lang.Throwable ivjExc) {
01093
01094
01095 handleException(ivjExc);
01096 }
01097 }
01098
01099
01100
01101
01102 private void connEtoC7() {
01103 try {
01104
01105
01106 this.removeImportButton_ActionEvents();
01107
01108
01109 } catch (java.lang.Throwable ivjExc) {
01110
01111
01112 handleException(ivjExc);
01113 }
01114 }
01115
01116
01117
01118
01119 private void connEtoC8() {
01120 try {
01121
01122
01123 this.importList_ListSelectionEvents();
01124
01125
01126 } catch (java.lang.Throwable ivjExc) {
01127
01128
01129 handleException(ivjExc);
01130 }
01131 }
01132
01133
01134
01135
01136 private void connEtoC9() {
01137 try {
01138
01139
01140 this.addAssertionButton_ActionEvents();
01141
01142
01143 } catch (java.lang.Throwable ivjExc) {
01144
01145
01146 handleException(ivjExc);
01147 }
01148 }
01149
01150
01151
01152
01153
01154 private void connEtoM1(java.awt.event.ActionEvent arg1) {
01155 try {
01156
01157
01158 this.setVisible(false);
01159
01160
01161 } catch (java.lang.Throwable ivjExc) {
01162
01163
01164 handleException(ivjExc);
01165 }
01166 }
01167
01168
01169
01170 public void constraintTextField_MouseReleased() {
01171 return;
01172 }
01173
01174
01175
01176 public void enabledAssertionList_ListSelectionEvents() {
01177 boolean f = getEnabledAssertionList().getSelectedValues().length == 1;
01178 try {
01179 AssertionSet.getAssertion((Name) getEnabledAssertionList().getSelectedValue());
01180 } catch (Exception e) {
01181 f = false;
01182 }
01183 getRemoveEnabledAssertionButton().setEnabled(BUI.property.getActivatedAssertionProperties().size() == 1);
01184 }
01185
01186
01187
01188 public void expandButton_ActionEvents() {
01189 TemporalLogicProperty tlp = BUI.property.getActivatedTemporalLogicProperty();
01190 if (tlp == null) return;
01191 getExpandedPatternTextField().setText(tlp.expand());
01192 tlp.validate(BUI.property.getImportedType(), BUI.property.getImportedPackage(),
01193 BUI.property.getImportedAssertion(), BUI.property.getImportedAssertionSet(),
01194 BUI.property.getImportedPredicate(), BUI.property.getImportedPredicateSet());
01195 if (tlp.getExceptions().size() > 0) {
01196 getShowErrorButton().setEnabled(true);
01197 getShowMappingButton().setEnabled(false);
01198 showErrorButton_ActionEvents();
01199 } else {
01200 getShowErrorButton().setEnabled(false);
01201
01202 }
01203 }
01204
01205
01206
01207
01208
01209 private javax.swing.JButton getActivateAssertionButton() {
01210 if (ivjActivateAssertionButton == null) {
01211 try {
01212 ivjActivateAssertionButton = new javax.swing.JButton();
01213 ivjActivateAssertionButton.setName("ActivateAssertionButton");
01214 ivjActivateAssertionButton.setMnemonic('a');
01215 ivjActivateAssertionButton.setText("Activate / Deactivate");
01216 ivjActivateAssertionButton.setBackground(new java.awt.Color(204,204,255));
01217 ivjActivateAssertionButton.setEnabled(false);
01218
01219
01220 } catch (java.lang.Throwable ivjExc) {
01221
01222
01223 handleException(ivjExc);
01224 }
01225 }
01226 return ivjActivateAssertionButton;
01227 }
01228
01229
01230
01231
01232
01233 private javax.swing.JButton getActivateTLButton() {
01234 if (ivjActivateTLButton == null) {
01235 try {
01236 ivjActivateTLButton = new javax.swing.JButton();
01237 ivjActivateTLButton.setName("ActivateTLButton");
01238 ivjActivateTLButton.setMnemonic('a');
01239 ivjActivateTLButton.setText("Activate / Deactivate");
01240 ivjActivateTLButton.setBackground(new java.awt.Color(204,204,255));
01241 ivjActivateTLButton.setEnabled(false);
01242
01243
01244 } catch (java.lang.Throwable ivjExc) {
01245
01246
01247 handleException(ivjExc);
01248 }
01249 }
01250 return ivjActivateTLButton;
01251 }
01252
01253
01254
01255
01256
01257 private javax.swing.JButton getAddAssertionButton() {
01258 if (ivjAddAssertionButton == null) {
01259 try {
01260 ivjAddAssertionButton = new javax.swing.JButton();
01261 ivjAddAssertionButton.setName("AddAssertionButton");
01262 ivjAddAssertionButton.setText("Add");
01263 ivjAddAssertionButton.setBackground(new java.awt.Color(204,204,255));
01264
01265
01266 } catch (java.lang.Throwable ivjExc) {
01267
01268
01269 handleException(ivjExc);
01270 }
01271 }
01272 return ivjAddAssertionButton;
01273 }
01274
01275
01276
01277
01278
01279 private javax.swing.JButton getAddEnabledAssertionButton() {
01280 if (ivjAddEnabledAssertionButton == null) {
01281 try {
01282 ivjAddEnabledAssertionButton = new javax.swing.JButton();
01283 ivjAddEnabledAssertionButton.setName("AddEnabledAssertionButton");
01284 ivjAddEnabledAssertionButton.setText("Add");
01285 ivjAddEnabledAssertionButton.setBackground(new java.awt.Color(204,204,255));
01286 ivjAddEnabledAssertionButton.setEnabled(false);
01287
01288
01289 } catch (java.lang.Throwable ivjExc) {
01290
01291
01292 handleException(ivjExc);
01293 }
01294 }
01295 return ivjAddEnabledAssertionButton;
01296 }
01297
01298
01299
01300
01301
01302 private javax.swing.JMenuItem getAddPredicateMenuItem() {
01303 if (ivjAddPredicateMenuItem == null) {
01304 try {
01305 ivjAddPredicateMenuItem = new javax.swing.JMenuItem();
01306 ivjAddPredicateMenuItem.setName("AddPredicateMenuItem");
01307 ivjAddPredicateMenuItem.setText("Add a predicate");
01308 ivjAddPredicateMenuItem.setBackground(new java.awt.Color(204,204,255));
01309
01310
01311 } catch (java.lang.Throwable ivjExc) {
01312
01313
01314 handleException(ivjExc);
01315 }
01316 }
01317 return ivjAddPredicateMenuItem;
01318 }
01319
01320
01321
01322
01323
01324 private javax.swing.JButton getAddTLButton() {
01325 if (ivjAddTLButton == null) {
01326 try {
01327 ivjAddTLButton = new javax.swing.JButton();
01328 ivjAddTLButton.setName("AddTLButton");
01329 ivjAddTLButton.setText("Add");
01330 ivjAddTLButton.setBackground(new java.awt.Color(204,204,255));
01331
01332
01333 } catch (java.lang.Throwable ivjExc) {
01334
01335
01336 handleException(ivjExc);
01337 }
01338 }
01339 return ivjAddTLButton;
01340 }
01341
01342
01343
01344
01345
01346 private javax.swing.JButton getAssertionDescriptionButton() {
01347 if (ivjAssertionDescriptionButton == null) {
01348 try {
01349 ivjAssertionDescriptionButton = new javax.swing.JButton();
01350 ivjAssertionDescriptionButton.setName("AssertionDescriptionButton");
01351 ivjAssertionDescriptionButton.setMnemonic('d');
01352 ivjAssertionDescriptionButton.setText("Description");
01353 ivjAssertionDescriptionButton.setBackground(new java.awt.Color(204,204,255));
01354 ivjAssertionDescriptionButton.setEnabled(false);
01355
01356
01357 } catch (java.lang.Throwable ivjExc) {
01358
01359
01360 handleException(ivjExc);
01361 }
01362 }
01363 return ivjAssertionDescriptionButton;
01364 }
01365
01366
01367
01368
01369
01370 private javax.swing.JList getAssertionList() {
01371 if (ivjAssertionList == null) {
01372 try {
01373 ivjAssertionList = new javax.swing.JList();
01374 ivjAssertionList.setName("AssertionList");
01375 ivjAssertionList.setBackground(new java.awt.Color(204,204,204));
01376 ivjAssertionList.setBounds(0, 0, 160, 120);
01377 ivjAssertionList.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
01378
01379 ivjAssertionList.setCellRenderer(new DefaultListCellRenderer() {
01380 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
01381 super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
01382 if (value instanceof AssertionProperty) {
01383 AssertionProperty ap = (AssertionProperty) value;
01384 setText(ap.getName());
01385 if (BUI.property.isActivated(ap)) {
01386 setIcon(IconLibrary.arrow);
01387 } else {
01388 setIcon(IconLibrary.earrow);
01389 }
01390 }
01391 return this;
01392 }
01393 });
01394
01395 } catch (java.lang.Throwable ivjExc) {
01396
01397
01398 handleException(ivjExc);
01399 }
01400 }
01401 return ivjAssertionList;
01402 }
01403
01404
01405
01406
01407
01408 private javax.swing.JLabel getAssertionNameLabel() {
01409 if (ivjAssertionNameLabel == null) {
01410 try {
01411 ivjAssertionNameLabel = new javax.swing.JLabel();
01412 ivjAssertionNameLabel.setName("AssertionNameLabel");
01413 ivjAssertionNameLabel.setDisplayedMnemonic('n');
01414 ivjAssertionNameLabel.setText("Name:");
01415 ivjAssertionNameLabel.setForeground(java.awt.Color.black);
01416
01417
01418 } catch (java.lang.Throwable ivjExc) {
01419
01420
01421 handleException(ivjExc);
01422 }
01423 }
01424 return ivjAssertionNameLabel;
01425 }
01426
01427
01428
01429
01430
01431 private javax.swing.JTextField getAssertionNameTextField() {
01432 if (ivjAssertionNameTextField == null) {
01433 try {
01434 ivjAssertionNameTextField = new javax.swing.JTextField();
01435 ivjAssertionNameTextField.setName("AssertionNameTextField");
01436 ivjAssertionNameTextField.setBorder(BorderFactory.createLoweredBevelBorder());
01437 ivjAssertionNameTextField.setFocusAccelerator('n');
01438 ivjAssertionNameTextField.setEnabled(true);
01439 ivjAssertionNameTextField.setEditable(false);
01440
01441
01442 } catch (java.lang.Throwable ivjExc) {
01443
01444
01445 handleException(ivjExc);
01446 }
01447 }
01448 return ivjAssertionNameTextField;
01449 }
01450
01451
01452
01453
01454
01455 public javax.swing.JPanel getAssertionPanel() {
01456 if (ivjAssertionPanel == null) {
01457 try {
01458 ivjAssertionPanel = new javax.swing.JPanel();
01459 ivjAssertionPanel.setName("AssertionPanel");
01460 ivjAssertionPanel.setLayout(new java.awt.GridBagLayout());
01461 ivjAssertionPanel.setBackground(new java.awt.Color(204,204,255));
01462
01463 java.awt.GridBagConstraints constraintsAssertionScrollPane = new java.awt.GridBagConstraints();
01464 constraintsAssertionScrollPane.gridx = 0; constraintsAssertionScrollPane.gridy = 0;
01465 constraintsAssertionScrollPane.gridheight = 6;
01466 constraintsAssertionScrollPane.fill = java.awt.GridBagConstraints.BOTH;
01467 constraintsAssertionScrollPane.weightx = 1.0;
01468 constraintsAssertionScrollPane.weighty = 0.3;
01469 constraintsAssertionScrollPane.insets = new java.awt.Insets(10, 10, 0, 0);
01470 getAssertionPanel().add(getAssertionScrollPane(), constraintsAssertionScrollPane);
01471
01472 java.awt.GridBagConstraints constraintsAddAssertionButton = new java.awt.GridBagConstraints();
01473 constraintsAddAssertionButton.gridx = 1; constraintsAddAssertionButton.gridy = 1;
01474 constraintsAddAssertionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01475 constraintsAddAssertionButton.insets = new java.awt.Insets(10, 10, 0, 10);
01476 getAssertionPanel().add(getAddAssertionButton(), constraintsAddAssertionButton);
01477
01478 java.awt.GridBagConstraints constraintsRemoveAssertionButton = new java.awt.GridBagConstraints();
01479 constraintsRemoveAssertionButton.gridx = 1; constraintsRemoveAssertionButton.gridy = 2;
01480 constraintsRemoveAssertionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01481 constraintsRemoveAssertionButton.insets = new java.awt.Insets(10, 10, 0, 10);
01482 getAssertionPanel().add(getRemoveAssertionButton(), constraintsRemoveAssertionButton);
01483
01484 java.awt.GridBagConstraints constraintsEnabledAssertionPanel = new java.awt.GridBagConstraints();
01485 constraintsEnabledAssertionPanel.gridx = 0; constraintsEnabledAssertionPanel.gridy = 6;
01486 constraintsEnabledAssertionPanel.gridwidth = 2;
01487 constraintsEnabledAssertionPanel.fill = java.awt.GridBagConstraints.BOTH;
01488 constraintsEnabledAssertionPanel.weightx = 1.0;
01489 constraintsEnabledAssertionPanel.weighty = 0.7;
01490 constraintsEnabledAssertionPanel.insets = new java.awt.Insets(15, 9, 10, 7);
01491 getAssertionPanel().add(getEnabledAssertionPanel(), constraintsEnabledAssertionPanel);
01492
01493 java.awt.GridBagConstraints constraintsActivateAssertionButton = new java.awt.GridBagConstraints();
01494 constraintsActivateAssertionButton.gridx = 1; constraintsActivateAssertionButton.gridy = 0;
01495 constraintsActivateAssertionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01496 constraintsActivateAssertionButton.insets = new java.awt.Insets(10, 10, 0, 10);
01497 getAssertionPanel().add(getActivateAssertionButton(), constraintsActivateAssertionButton);
01498
01499 java.awt.GridBagConstraints constraintsAssertionNameLabel = new java.awt.GridBagConstraints();
01500 constraintsAssertionNameLabel.gridx = 1; constraintsAssertionNameLabel.gridy = 3;
01501 constraintsAssertionNameLabel.fill = java.awt.GridBagConstraints.HORIZONTAL;
01502 constraintsAssertionNameLabel.insets = new java.awt.Insets(15, 10, 0, 8);
01503 getAssertionPanel().add(getAssertionNameLabel(), constraintsAssertionNameLabel);
01504
01505 java.awt.GridBagConstraints constraintsAssertionNameTextField = new java.awt.GridBagConstraints();
01506 constraintsAssertionNameTextField.gridx = 1; constraintsAssertionNameTextField.gridy = 4;
01507 constraintsAssertionNameTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01508 constraintsAssertionNameTextField.insets = new java.awt.Insets(5, 10, 0, 10);
01509 getAssertionPanel().add(getAssertionNameTextField(), constraintsAssertionNameTextField);
01510
01511 java.awt.GridBagConstraints constraintsAssertionDescriptionButton = new java.awt.GridBagConstraints();
01512 constraintsAssertionDescriptionButton.gridx = 1; constraintsAssertionDescriptionButton.gridy = 5;
01513 constraintsAssertionDescriptionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01514 constraintsAssertionDescriptionButton.insets = new java.awt.Insets(0, 10, 0, 10);
01515 getAssertionPanel().add(getAssertionDescriptionButton(), constraintsAssertionDescriptionButton);
01516
01517
01518 } catch (java.lang.Throwable ivjExc) {
01519
01520
01521 handleException(ivjExc);
01522 }
01523 }
01524 return ivjAssertionPanel;
01525 }
01526
01527
01528
01529
01530
01531 private javax.swing.JScrollPane getAssertionScrollPane() {
01532 if (ivjAssertionScrollPane == null) {
01533 try {
01534 ivjAssertionScrollPane = new javax.swing.JScrollPane();
01535 ivjAssertionScrollPane.setName("AssertionScrollPane");
01536 ivjAssertionScrollPane.setBorder(BorderFactory.createLoweredBevelBorder());
01537 getAssertionScrollPane().setViewportView(getAssertionList());
01538
01539
01540 } catch (java.lang.Throwable ivjExc) {
01541
01542
01543 handleException(ivjExc);
01544 }
01545 }
01546 return ivjAssertionScrollPane;
01547 }
01548
01549
01550
01551
01552 private static void getBuilderData() {
01553
01554
01555
01556
01557
01558
01559
01560
01561
01562
01563
01564
01565
01566
01567
01568
01569
01570
01571
01572
01573
01574
01575
01576
01577
01578
01579
01580
01581
01582
01583
01584
01585
01586
01587
01588
01589
01590
01591
01592
01593
01594
01595
01596
01597
01598
01599
01600
01601
01602
01603
01604
01605
01606
01607
01608
01609
01610
01611
01612
01613
01614
01615
01616
01617
01618
01619
01620
01621
01622
01623
01624
01625
01626
01627
01628
01629
01630
01631
01632
01633
01634
01635
01636
01637
01638
01639
01640
01641
01642
01643
01644
01645
01646
01647
01648
01649
01650
01651
01652
01653
01654
01655
01656
01657
01658
01659
01660
01661
01662
01663
01664
01665
01666
01667
01668
01669 }
01670
01671
01672
01673
01674
01675 private javax.swing.JPanel getDescriptionPanel() {
01676 if (ivjDescriptionPanel == null) {
01677 try {
01678 ivjDescriptionPanel = new javax.swing.JPanel();
01679 ivjDescriptionPanel.setName("DescriptionPanel");
01680 ivjDescriptionPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Description"));
01681 ivjDescriptionPanel.setLayout(new java.awt.GridBagLayout());
01682 ivjDescriptionPanel.setBackground(new java.awt.Color(204,204,255));
01683
01684 java.awt.GridBagConstraints constraintsDescriptionScrollPane = new java.awt.GridBagConstraints();
01685 constraintsDescriptionScrollPane.gridx = 0; constraintsDescriptionScrollPane.gridy = 0;
01686 constraintsDescriptionScrollPane.fill = java.awt.GridBagConstraints.BOTH;
01687 constraintsDescriptionScrollPane.weightx = 1.0;
01688 constraintsDescriptionScrollPane.weighty = 1.0;
01689 constraintsDescriptionScrollPane.insets = new java.awt.Insets(10, 10, 10, 10);
01690 getDescriptionPanel().add(getDescriptionScrollPane(), constraintsDescriptionScrollPane);
01691
01692 ((javax.swing.border.TitledBorder) ivjDescriptionPanel.getBorder()).setTitleColor(Color.black);
01693
01694 } catch (java.lang.Throwable ivjExc) {
01695
01696
01697 handleException(ivjExc);
01698 }
01699 }
01700 return ivjDescriptionPanel;
01701 }
01702
01703
01704
01705
01706
01707 private javax.swing.JScrollPane getDescriptionScrollPane() {
01708 if (ivjDescriptionScrollPane == null) {
01709 try {
01710 ivjDescriptionScrollPane = new javax.swing.JScrollPane();
01711 ivjDescriptionScrollPane.setName("DescriptionScrollPane");
01712 ivjDescriptionScrollPane.setBorder(BorderFactory.createLoweredBevelBorder());
01713 getDescriptionScrollPane().setViewportView(getDescriptionTextArea());
01714
01715
01716 } catch (java.lang.Throwable ivjExc) {
01717
01718
01719 handleException(ivjExc);
01720 }
01721 }
01722 return ivjDescriptionScrollPane;
01723 }
01724
01725
01726
01727
01728
01729 private javax.swing.JTextArea getDescriptionTextArea() {
01730 if (ivjDescriptionTextArea == null) {
01731 try {
01732 ivjDescriptionTextArea = new javax.swing.JTextArea();
01733 ivjDescriptionTextArea.setName("DescriptionTextArea");
01734 ivjDescriptionTextArea.setBackground(new java.awt.Color(204,204,204));
01735 ivjDescriptionTextArea.setBounds(0, 0, 160, 120);
01736 ivjDescriptionTextArea.setEnabled(true);
01737 ivjDescriptionTextArea.setEditable(false);
01738
01739
01740 } catch (java.lang.Throwable ivjExc) {
01741
01742
01743 handleException(ivjExc);
01744 }
01745 }
01746 return ivjDescriptionTextArea;
01747 }
01748
01749
01750
01751
01752
01753 public javax.swing.JList getEnabledAssertionList() {
01754 if (ivjEnabledAssertionList == null) {
01755 try {
01756 ivjEnabledAssertionList = new javax.swing.JList();
01757 ivjEnabledAssertionList.setName("EnabledAssertionList");
01758 ivjEnabledAssertionList.setBackground(new java.awt.Color(204,204,204));
01759 ivjEnabledAssertionList.setBounds(0, 0, 160, 120);
01760
01761
01762 } catch (java.lang.Throwable ivjExc) {
01763
01764
01765 handleException(ivjExc);
01766 }
01767 }
01768 return ivjEnabledAssertionList;
01769 }
01770
01771
01772
01773
01774
01775 private javax.swing.JPanel getEnabledAssertionPanel() {
01776 if (ivjEnabledAssertionPanel == null) {
01777 try {
01778 ivjEnabledAssertionPanel = new javax.swing.JPanel();
01779 ivjEnabledAssertionPanel.setName("EnabledAssertionPanel");
01780 ivjEnabledAssertionPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Enabled Assertion"));
01781 ivjEnabledAssertionPanel.setLayout(new java.awt.GridBagLayout());
01782 ivjEnabledAssertionPanel.setBackground(new java.awt.Color(204,204,255));
01783
01784 java.awt.GridBagConstraints constraintsEnabledAssertionScrollPane = new java.awt.GridBagConstraints();
01785 constraintsEnabledAssertionScrollPane.gridx = 0; constraintsEnabledAssertionScrollPane.gridy = 0;
01786 constraintsEnabledAssertionScrollPane.gridwidth = 2;
01787 constraintsEnabledAssertionScrollPane.gridheight = 4;
01788 constraintsEnabledAssertionScrollPane.fill = java.awt.GridBagConstraints.BOTH;
01789 constraintsEnabledAssertionScrollPane.weightx = 1.0;
01790 constraintsEnabledAssertionScrollPane.weighty = 1.0;
01791 constraintsEnabledAssertionScrollPane.insets = new java.awt.Insets(10, 10, 10, 0);
01792 getEnabledAssertionPanel().add(getEnabledAssertionScrollPane(), constraintsEnabledAssertionScrollPane);
01793
01794 java.awt.GridBagConstraints constraintsAddEnabledAssertionButton = new java.awt.GridBagConstraints();
01795 constraintsAddEnabledAssertionButton.gridx = 2; constraintsAddEnabledAssertionButton.gridy = 0;
01796 constraintsAddEnabledAssertionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01797 constraintsAddEnabledAssertionButton.insets = new java.awt.Insets(10, 10, 0, 10);
01798 getEnabledAssertionPanel().add(getAddEnabledAssertionButton(), constraintsAddEnabledAssertionButton);
01799
01800 java.awt.GridBagConstraints constraintsRemoveEnabledAssertionButton = new java.awt.GridBagConstraints();
01801 constraintsRemoveEnabledAssertionButton.gridx = 2; constraintsRemoveEnabledAssertionButton.gridy = 1;
01802 constraintsRemoveEnabledAssertionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01803 constraintsRemoveEnabledAssertionButton.insets = new java.awt.Insets(10, 10, 0, 10);
01804 getEnabledAssertionPanel().add(getRemoveEnabledAssertionButton(), constraintsRemoveEnabledAssertionButton);
01805
01806 ((javax.swing.border.TitledBorder) ivjEnabledAssertionPanel.getBorder()).setTitleColor(Color.black);
01807
01808 } catch (java.lang.Throwable ivjExc) {
01809
01810
01811 handleException(ivjExc);
01812 }
01813 }
01814 return ivjEnabledAssertionPanel;
01815 }
01816
01817
01818
01819
01820
01821 private javax.swing.JScrollPane getEnabledAssertionScrollPane() {
01822 if (ivjEnabledAssertionScrollPane == null) {
01823 try {
01824 ivjEnabledAssertionScrollPane = new javax.swing.JScrollPane();
01825 ivjEnabledAssertionScrollPane.setName("EnabledAssertionScrollPane");
01826 ivjEnabledAssertionScrollPane.setBorder(BorderFactory.createLoweredBevelBorder());
01827 getEnabledAssertionScrollPane().setViewportView(getEnabledAssertionList());
01828
01829
01830 } catch (java.lang.Throwable ivjExc) {
01831
01832
01833 handleException(ivjExc);
01834 }
01835 }
01836 return ivjEnabledAssertionScrollPane;
01837 }
01838
01839
01840
01841
01842
01843 private javax.swing.JButton getExpandButton() {
01844 if (ivjExpandButton == null) {
01845 try {
01846 ivjExpandButton = new javax.swing.JButton();
01847 ivjExpandButton.setName("ExpandButton");
01848 ivjExpandButton.setMnemonic('x');
01849 ivjExpandButton.setText("Expand");
01850 ivjExpandButton.setBackground(new java.awt.Color(204,204,255));
01851 ivjExpandButton.setEnabled(false);
01852
01853
01854 } catch (java.lang.Throwable ivjExc) {
01855
01856
01857 handleException(ivjExc);
01858 }
01859 }
01860 return ivjExpandButton;
01861 }
01862
01863
01864
01865
01866
01867 private javax.swing.JTextField getExpandedPatternTextField() {
01868 if (ivjExpandedPatternTextField == null) {
01869 try {
01870 ivjExpandedPatternTextField = new javax.swing.JTextField();
01871 ivjExpandedPatternTextField.setName("ExpandedPatternTextField");
01872 ivjExpandedPatternTextField.setBorder(BorderFactory.createLoweredBevelBorder());
01873 ivjExpandedPatternTextField.setEditable(false);
01874
01875
01876 } catch (java.lang.Throwable ivjExc) {
01877
01878
01879 handleException(ivjExc);
01880 }
01881 }
01882 return ivjExpandedPatternTextField;
01883 }
01884
01885
01886
01887
01888
01889 private javax.swing.JPanel getFormulaPanel() {
01890 if (ivjFormulaPanel == null) {
01891 try {
01892 ivjFormulaPanel = new javax.swing.JPanel();
01893 ivjFormulaPanel.setName("FormulaPanel");
01894 ivjFormulaPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Formula"));
01895 ivjFormulaPanel.setLayout(new java.awt.GridBagLayout());
01896 ivjFormulaPanel.setBackground(new java.awt.Color(204,204,255));
01897
01898 java.awt.GridBagConstraints constraintsPatternNameLabel = new java.awt.GridBagConstraints();
01899 constraintsPatternNameLabel.gridx = 0; constraintsPatternNameLabel.gridy = 2;
01900 constraintsPatternNameLabel.fill = java.awt.GridBagConstraints.HORIZONTAL;
01901 constraintsPatternNameLabel.insets = new java.awt.Insets(15, 10, 0, 0);
01902 getFormulaPanel().add(getPatternNameLabel(), constraintsPatternNameLabel);
01903
01904 java.awt.GridBagConstraints constraintsPatternScopeLabel = new java.awt.GridBagConstraints();
01905 constraintsPatternScopeLabel.gridx = 3; constraintsPatternScopeLabel.gridy = 2;
01906 constraintsPatternScopeLabel.fill = java.awt.GridBagConstraints.HORIZONTAL;
01907 constraintsPatternScopeLabel.insets = new java.awt.Insets(15, 10, 0, 10);
01908 getFormulaPanel().add(getPatternScopeLabel(), constraintsPatternScopeLabel);
01909
01910 java.awt.GridBagConstraints constraintsPatternNameComboBox = new java.awt.GridBagConstraints();
01911 constraintsPatternNameComboBox.gridx = 0; constraintsPatternNameComboBox.gridy = 3;
01912 constraintsPatternNameComboBox.gridwidth = 2;
01913 constraintsPatternNameComboBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01914 constraintsPatternNameComboBox.insets = new java.awt.Insets(5, 10, 0, 0);
01915 getFormulaPanel().add(getPatternNameComboBox(), constraintsPatternNameComboBox);
01916
01917 java.awt.GridBagConstraints constraintsPatternScopeComboBox = new java.awt.GridBagConstraints();
01918 constraintsPatternScopeComboBox.gridx = 3; constraintsPatternScopeComboBox.gridy = 3;
01919 constraintsPatternScopeComboBox.gridwidth = 2;
01920 constraintsPatternScopeComboBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01921 constraintsPatternScopeComboBox.insets = new java.awt.Insets(5, 10, 0, 10);
01922 getFormulaPanel().add(getPatternScopeComboBox(), constraintsPatternScopeComboBox);
01923
01924 java.awt.GridBagConstraints constraintsPropositionTextField = new java.awt.GridBagConstraints();
01925 constraintsPropositionTextField.gridx = 1; constraintsPropositionTextField.gridy = 5;
01926 constraintsPropositionTextField.gridwidth = 4;
01927 constraintsPropositionTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01928 constraintsPropositionTextField.weightx = 1.0;
01929 constraintsPropositionTextField.insets = new java.awt.Insets(5, 10, 0, 10);
01930 getFormulaPanel().add(getPropositionTextField(), constraintsPropositionTextField);
01931
01932 java.awt.GridBagConstraints constraintsPropositionComboBox = new java.awt.GridBagConstraints();
01933 constraintsPropositionComboBox.gridx = 0; constraintsPropositionComboBox.gridy = 5;
01934 constraintsPropositionComboBox.fill = java.awt.GridBagConstraints.HORIZONTAL;
01935 constraintsPropositionComboBox.insets = new java.awt.Insets(5, 10, 0, 0);
01936 getFormulaPanel().add(getPropositionComboBox(), constraintsPropositionComboBox);
01937
01938 java.awt.GridBagConstraints constraintsPropositionLabel = new java.awt.GridBagConstraints();
01939 constraintsPropositionLabel.gridx = 0; constraintsPropositionLabel.gridy = 4;
01940 constraintsPropositionLabel.gridwidth = 2;
01941 constraintsPropositionLabel.fill = java.awt.GridBagConstraints.HORIZONTAL;
01942 constraintsPropositionLabel.weightx = 1.0;
01943 constraintsPropositionLabel.insets = new java.awt.Insets(15, 10, 0, 0);
01944 getFormulaPanel().add(getPropositionLabel(), constraintsPropositionLabel);
01945
01946 java.awt.GridBagConstraints constraintsExpandButton = new java.awt.GridBagConstraints();
01947 constraintsExpandButton.gridx = 0; constraintsExpandButton.gridy = 6;
01948 constraintsExpandButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01949 constraintsExpandButton.insets = new java.awt.Insets(15, 10, 0, 0);
01950 getFormulaPanel().add(getExpandButton(), constraintsExpandButton);
01951
01952 java.awt.GridBagConstraints constraintsExpandedPatternTextField = new java.awt.GridBagConstraints();
01953 constraintsExpandedPatternTextField.gridx = 1; constraintsExpandedPatternTextField.gridy = 6;
01954 constraintsExpandedPatternTextField.gridwidth = 4;
01955 constraintsExpandedPatternTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
01956 constraintsExpandedPatternTextField.weightx = 1.0;
01957 constraintsExpandedPatternTextField.insets = new java.awt.Insets(15, 10, 0, 10);
01958 getFormulaPanel().add(getExpandedPatternTextField(), constraintsExpandedPatternTextField);
01959
01960 java.awt.GridBagConstraints constraintsShowErrorButton = new java.awt.GridBagConstraints();
01961 constraintsShowErrorButton.gridx = 3; constraintsShowErrorButton.gridy = 7;
01962 constraintsShowErrorButton.gridwidth = 2;
01963 constraintsShowErrorButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01964 constraintsShowErrorButton.weightx = 1.0;
01965 constraintsShowErrorButton.weighty = 1.0;
01966 constraintsShowErrorButton.insets = new java.awt.Insets(15, 10, 10, 10);
01967 getFormulaPanel().add(getShowErrorButton(), constraintsShowErrorButton);
01968
01969 java.awt.GridBagConstraints constraintsShowMappingButton = new java.awt.GridBagConstraints();
01970 constraintsShowMappingButton.gridx = 0; constraintsShowMappingButton.gridy = 7;
01971 constraintsShowMappingButton.gridwidth = 2;
01972 constraintsShowMappingButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
01973 constraintsShowMappingButton.weightx = 1.0;
01974 constraintsShowMappingButton.weighty = 1.0;
01975 constraintsShowMappingButton.insets = new java.awt.Insets(15, 10, 10, 0);
01976 getFormulaPanel().add(getShowMappingButton(), constraintsShowMappingButton);
01977
01978 java.awt.GridBagConstraints constraintsQuantifierLabel = new java.awt.GridBagConstraints();
01979 constraintsQuantifierLabel.gridx = 0; constraintsQuantifierLabel.gridy = 0;
01980 constraintsQuantifierLabel.fill = java.awt.GridBagConstraints.BOTH;
01981 constraintsQuantifierLabel.insets = new java.awt.Insets(10, 10, 0, 0);
01982 getFormulaPanel().add(getQuantifierLabel(), constraintsQuantifierLabel);
01983
01984 java.awt.GridBagConstraints constraintsQuantificationScrollPane = new java.awt.GridBagConstraints();
01985 constraintsQuantificationScrollPane.gridx = 1; constraintsQuantificationScrollPane.gridy = 0;
01986 constraintsQuantificationScrollPane.gridwidth = 4;
01987 constraintsQuantificationScrollPane.gridheight = 2;
01988 constraintsQuantificationScrollPane.fill = java.awt.GridBagConstraints.BOTH;
01989 constraintsQuantificationScrollPane.weightx = 1.0;
01990 constraintsQuantificationScrollPane.weighty = 1.0;
01991 constraintsQuantificationScrollPane.insets = new java.awt.Insets(10, 10, 0, 10);
01992 getFormulaPanel().add(getQuantificationScrollPane(), constraintsQuantificationScrollPane);
01993
01994 ((javax.swing.border.TitledBorder) ivjFormulaPanel.getBorder()).setTitleColor(Color.black);
01995
01996 } catch (java.lang.Throwable ivjExc) {
01997
01998
01999 handleException(ivjExc);
02000 }
02001 }
02002 return ivjFormulaPanel;
02003 }
02004
02005
02006
02007
02008
02009 private javax.swing.JButton getImportAssertionButton() {
02010 if (ivjImportAssertionButton == null) {
02011 try {
02012 ivjImportAssertionButton = new javax.swing.JButton();
02013 ivjImportAssertionButton.setName("ImportAssertionButton");
02014 ivjImportAssertionButton.setText("Add Assertion");
02015 ivjImportAssertionButton.setBackground(new java.awt.Color(204,204,255));
02016
02017
02018 } catch (java.lang.Throwable ivjExc) {
02019
02020
02021 handleException(ivjExc);
02022 }
02023 }
02024 return ivjImportAssertionButton;
02025 }
02026
02027
02028
02029
02030
02031 private javax.swing.JButton getImportAssertionSetButton() {
02032 if (ivjImportAssertionSetButton == null) {
02033 try {
02034 ivjImportAssertionSetButton = new javax.swing.JButton();
02035 ivjImportAssertionSetButton.setName("ImportAssertionSetButton");
02036 ivjImportAssertionSetButton.setText("Add Assertion Set");
02037 ivjImportAssertionSetButton.setBackground(new java.awt.Color(204,204,255));
02038
02039
02040 } catch (java.lang.Throwable ivjExc) {
02041
02042
02043 handleException(ivjExc);
02044 }
02045 }
02046 return ivjImportAssertionSetButton;
02047 }
02048
02049
02050
02051
02052
02053 private javax.swing.JList getImportList() {
02054 if (ivjImportList == null) {
02055 try {
02056 ivjImportList = new javax.swing.JList();
02057 ivjImportList.setName("ImportList");
02058 ivjImportList.setBackground(new java.awt.Color(204,204,204));
02059 ivjImportList.setBounds(0, 0, 157, 117);
02060
02061
02062 } catch (java.lang.Throwable ivjExc) {
02063
02064
02065 handleException(ivjExc);
02066 }
02067 }
02068 return ivjImportList;
02069 }
02070
02071
02072
02073
02074
02075 private javax.swing.JButton getImportPackageButton() {
02076 if (ivjImportPackageButton == null) {
02077 try {
02078 ivjImportPackageButton = new javax.swing.JButton();
02079 ivjImportPackageButton.setName("ImportPackageButton");
02080 ivjImportPackageButton.setText("Add Package");
02081 ivjImportPackageButton.setBackground(new java.awt.Color(204,204,255));
02082
02083
02084 } catch (java.lang.Throwable ivjExc) {
02085
02086
02087 handleException(ivjExc);
02088 }
02089 }
02090 return ivjImportPackageButton;
02091 }
02092
02093
02094
02095
02096
02097 private javax.swing.JPanel getImportPanel() {
02098 if (ivjImportPanel == null) {
02099 try {
02100 ivjImportPanel = new javax.swing.JPanel();
02101 ivjImportPanel.setName("ImportPanel");
02102 ivjImportPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Import"));
02103 ivjImportPanel.setLayout(new java.awt.GridBagLayout());
02104 ivjImportPanel.setBackground(new java.awt.Color(204,204,255));
02105
02106 java.awt.GridBagConstraints constraintsImportScrollPane = new java.awt.GridBagConstraints();
02107 constraintsImportScrollPane.gridx = 0; constraintsImportScrollPane.gridy = 0;
02108 constraintsImportScrollPane.gridheight = 8;
02109 constraintsImportScrollPane.fill = java.awt.GridBagConstraints.BOTH;
02110 constraintsImportScrollPane.weightx = 1.0;
02111 constraintsImportScrollPane.weighty = 1.0;
02112 constraintsImportScrollPane.insets = new java.awt.Insets(10, 10, 10, 0);
02113 getImportPanel().add(getImportScrollPane(), constraintsImportScrollPane);
02114
02115 java.awt.GridBagConstraints constraintsImportTypeButton = new java.awt.GridBagConstraints();
02116 constraintsImportTypeButton.gridx = 1; constraintsImportTypeButton.gridy = 0;
02117 constraintsImportTypeButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02118 constraintsImportTypeButton.insets = new java.awt.Insets(10, 10, 0, 10);
02119 getImportPanel().add(getImportTypeButton(), constraintsImportTypeButton);
02120
02121 java.awt.GridBagConstraints constraintsImportPackageButton = new java.awt.GridBagConstraints();
02122 constraintsImportPackageButton.gridx = 1; constraintsImportPackageButton.gridy = 1;
02123 constraintsImportPackageButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02124 constraintsImportPackageButton.insets = new java.awt.Insets(10, 10, 0, 10);
02125 getImportPanel().add(getImportPackageButton(), constraintsImportPackageButton);
02126
02127 java.awt.GridBagConstraints constraintsImportPredicateButton = new java.awt.GridBagConstraints();
02128 constraintsImportPredicateButton.gridx = 1; constraintsImportPredicateButton.gridy = 2;
02129 constraintsImportPredicateButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02130 constraintsImportPredicateButton.insets = new java.awt.Insets(10, 10, 0, 10);
02131 getImportPanel().add(getImportPredicateButton(), constraintsImportPredicateButton);
02132
02133 java.awt.GridBagConstraints constraintsImportPredicateSetButton = new java.awt.GridBagConstraints();
02134 constraintsImportPredicateSetButton.gridx = 1; constraintsImportPredicateSetButton.gridy = 3;
02135 constraintsImportPredicateSetButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02136 constraintsImportPredicateSetButton.insets = new java.awt.Insets(10, 10, 0, 10);
02137 getImportPanel().add(getImportPredicateSetButton(), constraintsImportPredicateSetButton);
02138
02139 java.awt.GridBagConstraints constraintsImportAssertionButton = new java.awt.GridBagConstraints();
02140 constraintsImportAssertionButton.gridx = 1; constraintsImportAssertionButton.gridy = 4;
02141 constraintsImportAssertionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02142 constraintsImportAssertionButton.insets = new java.awt.Insets(10, 10, 0, 10);
02143 getImportPanel().add(getImportAssertionButton(), constraintsImportAssertionButton);
02144
02145 java.awt.GridBagConstraints constraintsImportAssertionSetButton = new java.awt.GridBagConstraints();
02146 constraintsImportAssertionSetButton.gridx = 1; constraintsImportAssertionSetButton.gridy = 5;
02147 constraintsImportAssertionSetButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02148 constraintsImportAssertionSetButton.insets = new java.awt.Insets(10, 10, 0, 10);
02149 getImportPanel().add(getImportAssertionSetButton(), constraintsImportAssertionSetButton);
02150
02151 java.awt.GridBagConstraints constraintsRemoveImportButton = new java.awt.GridBagConstraints();
02152 constraintsRemoveImportButton.gridx = 1; constraintsRemoveImportButton.gridy = 6;
02153 constraintsRemoveImportButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02154 constraintsRemoveImportButton.insets = new java.awt.Insets(10, 10, 0, 10);
02155 getImportPanel().add(getRemoveImportButton(), constraintsRemoveImportButton);
02156
02157 ((javax.swing.border.TitledBorder) ivjImportPanel.getBorder()).setTitleColor(Color.black);
02158
02159 } catch (java.lang.Throwable ivjExc) {
02160
02161
02162 handleException(ivjExc);
02163 }
02164 }
02165 return ivjImportPanel;
02166 }
02167
02168
02169
02170
02171
02172 private javax.swing.JButton getImportPredicateButton() {
02173 if (ivjImportPredicateButton == null) {
02174 try {
02175 ivjImportPredicateButton = new javax.swing.JButton();
02176 ivjImportPredicateButton.setName("ImportPredicateButton");
02177 ivjImportPredicateButton.setText("Add Predicate");
02178 ivjImportPredicateButton.setBackground(new java.awt.Color(204,204,255));
02179
02180
02181 } catch (java.lang.Throwable ivjExc) {
02182
02183
02184 handleException(ivjExc);
02185 }
02186 }
02187 return ivjImportPredicateButton;
02188 }
02189
02190
02191
02192
02193
02194 private javax.swing.JButton getImportPredicateSetButton() {
02195 if (ivjImportPredicateSetButton == null) {
02196 try {
02197 ivjImportPredicateSetButton = new javax.swing.JButton();
02198 ivjImportPredicateSetButton.setName("ImportPredicateSetButton");
02199 ivjImportPredicateSetButton.setText("Add Predicate Set");
02200 ivjImportPredicateSetButton.setBackground(new java.awt.Color(204,204,255));
02201
02202
02203 } catch (java.lang.Throwable ivjExc) {
02204
02205
02206 handleException(ivjExc);
02207 }
02208 }
02209 return ivjImportPredicateSetButton;
02210 }
02211
02212
02213
02214
02215
02216 private javax.swing.JScrollPane getImportScrollPane() {
02217 if (ivjImportScrollPane == null) {
02218 try {
02219 ivjImportScrollPane = new javax.swing.JScrollPane();
02220 ivjImportScrollPane.setName("ImportScrollPane");
02221 ivjImportScrollPane.setBorder(BorderFactory.createLoweredBevelBorder());
02222 getImportScrollPane().setViewportView(getImportList());
02223
02224
02225 } catch (java.lang.Throwable ivjExc) {
02226
02227
02228 handleException(ivjExc);
02229 }
02230 }
02231 return ivjImportScrollPane;
02232 }
02233
02234
02235
02236
02237
02238 private javax.swing.JButton getImportTypeButton() {
02239 if (ivjImportTypeButton == null) {
02240 try {
02241 ivjImportTypeButton = new javax.swing.JButton();
02242 ivjImportTypeButton.setName("ImportTypeButton");
02243 ivjImportTypeButton.setText("Add Type");
02244 ivjImportTypeButton.setBackground(new java.awt.Color(204,204,255));
02245
02246
02247 } catch (java.lang.Throwable ivjExc) {
02248
02249
02250 handleException(ivjExc);
02251 }
02252 }
02253 return ivjImportTypeButton;
02254 }
02255
02256
02257
02258
02259
02260 private javax.swing.JButton getNewButton() {
02261 if (ivjNewButton == null) {
02262 try {
02263 ivjNewButton = new javax.swing.JButton();
02264 ivjNewButton.setName("NewButton");
02265 ivjNewButton.setMnemonic('n');
02266 ivjNewButton.setText("New");
02267 ivjNewButton.setBackground(new java.awt.Color(204,204,255));
02268
02269
02270 } catch (java.lang.Throwable ivjExc) {
02271
02272
02273 handleException(ivjExc);
02274 }
02275 }
02276 return ivjNewButton;
02277 }
02278
02279
02280
02281
02282
02283 private javax.swing.JButton getOkButton() {
02284 if (ivjOkButton == null) {
02285 try {
02286 ivjOkButton = new javax.swing.JButton();
02287 ivjOkButton.setName("OkButton");
02288 ivjOkButton.setMnemonic('o');
02289 ivjOkButton.setText("Ok");
02290 ivjOkButton.setBackground(new java.awt.Color(204,204,255));
02291
02292
02293 } catch (java.lang.Throwable ivjExc) {
02294
02295
02296 handleException(ivjExc);
02297 }
02298 }
02299 return ivjOkButton;
02300 }
02301
02302
02303
02304
02305
02306 private javax.swing.JButton getOpenButton() {
02307 if (ivjOpenButton == null) {
02308 try {
02309 ivjOpenButton = new javax.swing.JButton();
02310 ivjOpenButton.setName("OpenButton");
02311 ivjOpenButton.setMnemonic('o');
02312 ivjOpenButton.setText("Open");
02313 ivjOpenButton.setBackground(new java.awt.Color(204,204,255));
02314
02315
02316 } catch (java.lang.Throwable ivjExc) {
02317
02318
02319 handleException(ivjExc);
02320 }
02321 }
02322 return ivjOpenButton;
02323 }
02324
02325
02326
02327
02328
02329 private javax.swing.JComboBox getPatternNameComboBox() {
02330 if (ivjPatternNameComboBox == null) {
02331 try {
02332 ivjPatternNameComboBox = new javax.swing.JComboBox();
02333 ivjPatternNameComboBox.setName("PatternNameComboBox");
02334 ivjPatternNameComboBox.setEnabled(false);
02335
02336
02337 } catch (java.lang.Throwable ivjExc) {
02338
02339
02340 handleException(ivjExc);
02341 }
02342 }
02343 return ivjPatternNameComboBox;
02344 }
02345
02346
02347
02348
02349
02350 private javax.swing.JLabel getPatternNameLabel() {
02351 if (ivjPatternNameLabel == null) {
02352 try {
02353 ivjPatternNameLabel = new javax.swing.JLabel();
02354 ivjPatternNameLabel.setName("PatternNameLabel");
02355 ivjPatternNameLabel.setText("Pattern Name:");
02356 ivjPatternNameLabel.setForeground(java.awt.Color.black);
02357
02358
02359 } catch (java.lang.Throwable ivjExc) {
02360
02361
02362 handleException(ivjExc);
02363 }
02364 }
02365 return ivjPatternNameLabel;
02366 }
02367
02368
02369
02370
02371
02372 private javax.swing.JComboBox getPatternScopeComboBox() {
02373 if (ivjPatternScopeComboBox == null) {
02374 try {
02375 ivjPatternScopeComboBox = new javax.swing.JComboBox();
02376 ivjPatternScopeComboBox.setName("PatternScopeComboBox");
02377 ivjPatternScopeComboBox.setEnabled(false);
02378
02379
02380 } catch (java.lang.Throwable ivjExc) {
02381
02382
02383 handleException(ivjExc);
02384 }
02385 }
02386 return ivjPatternScopeComboBox;
02387 }
02388
02389
02390
02391
02392
02393 private javax.swing.JLabel getPatternScopeLabel() {
02394 if (ivjPatternScopeLabel == null) {
02395 try {
02396 ivjPatternScopeLabel = new javax.swing.JLabel();
02397 ivjPatternScopeLabel.setName("PatternScopeLabel");
02398 ivjPatternScopeLabel.setText("Pattern Scope:");
02399 ivjPatternScopeLabel.setForeground(java.awt.Color.black);
02400
02401
02402 } catch (java.lang.Throwable ivjExc) {
02403
02404
02405 handleException(ivjExc);
02406 }
02407 }
02408 return ivjPatternScopeLabel;
02409 }
02410
02411
02412
02413
02414
02415 private javax.swing.JPanel getPropertyManagerContentPane() {
02416 if (ivjPropertyManagerContentPane == null) {
02417 try {
02418 ivjPropertyManagerContentPane = new javax.swing.JPanel();
02419 ivjPropertyManagerContentPane.setName("PropertyManagerContentPane");
02420 ivjPropertyManagerContentPane.setBorder(new javax.swing.border.EtchedBorder());
02421 ivjPropertyManagerContentPane.setLayout(new java.awt.BorderLayout());
02422 ivjPropertyManagerContentPane.setBackground(new java.awt.Color(204,204,255));
02423 getPropertyManagerContentPane().add(getOkButton(), "South");
02424 getPropertyManagerContentPane().add(getPropertyManagerTabbedPane(), "Center");
02425
02426
02427 } catch (java.lang.Throwable ivjExc) {
02428
02429
02430 handleException(ivjExc);
02431 }
02432 }
02433 return ivjPropertyManagerContentPane;
02434 }
02435
02436
02437
02438
02439
02440 public javax.swing.JTabbedPane getPropertyManagerTabbedPane() {
02441 if (ivjPropertyManagerTabbedPane == null) {
02442 try {
02443 ivjPropertyManagerTabbedPane = new javax.swing.JTabbedPane();
02444 ivjPropertyManagerTabbedPane.setName("PropertyManagerTabbedPane");
02445 ivjPropertyManagerTabbedPane.insertTab("Property", null, getPropertyPanel(), null, 0);
02446 ivjPropertyManagerTabbedPane.insertTab("Temporal Logic", null, getTLPanel(), null, 1);
02447 ivjPropertyManagerTabbedPane.insertTab("Assertion", null, getAssertionPanel(), null, 2);
02448
02449
02450 } catch (java.lang.Throwable ivjExc) {
02451
02452
02453 handleException(ivjExc);
02454 }
02455 }
02456 return ivjPropertyManagerTabbedPane;
02457 }
02458
02459
02460
02461
02462
02463 public javax.swing.JPanel getPropertyPanel() {
02464 if (ivjPropertyPanel == null) {
02465 try {
02466 ivjPropertyPanel = new javax.swing.JPanel();
02467 ivjPropertyPanel.setName("PropertyPanel");
02468 ivjPropertyPanel.setLayout(new java.awt.GridBagLayout());
02469 ivjPropertyPanel.setBackground(new java.awt.Color(204,204,255));
02470
02471 java.awt.GridBagConstraints constraintsOpenButton = new java.awt.GridBagConstraints();
02472 constraintsOpenButton.gridx = 1; constraintsOpenButton.gridy = 2;
02473 constraintsOpenButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02474 constraintsOpenButton.weightx = 1.0;
02475 constraintsOpenButton.insets = new java.awt.Insets(15, 10, 10, 0);
02476 getPropertyPanel().add(getOpenButton(), constraintsOpenButton);
02477
02478 java.awt.GridBagConstraints constraintsSaveButton = new java.awt.GridBagConstraints();
02479 constraintsSaveButton.gridx = 3; constraintsSaveButton.gridy = 2;
02480 constraintsSaveButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02481 constraintsSaveButton.weightx = 1.0;
02482 constraintsSaveButton.insets = new java.awt.Insets(15, 10, 10, 10);
02483 getPropertyPanel().add(getSaveButton(), constraintsSaveButton);
02484
02485 java.awt.GridBagConstraints constraintsImportPanel = new java.awt.GridBagConstraints();
02486 constraintsImportPanel.gridx = 0; constraintsImportPanel.gridy = 1;
02487 constraintsImportPanel.gridwidth = 4;
02488 constraintsImportPanel.fill = java.awt.GridBagConstraints.BOTH;
02489 constraintsImportPanel.weightx = 1.0;
02490 constraintsImportPanel.weighty = 1.0;
02491 constraintsImportPanel.insets = new java.awt.Insets(15, 9, 0, 8);
02492 getPropertyPanel().add(getImportPanel(), constraintsImportPanel);
02493
02494 java.awt.GridBagConstraints constraintsSaveAsButton = new java.awt.GridBagConstraints();
02495 constraintsSaveAsButton.gridx = 2; constraintsSaveAsButton.gridy = 2;
02496 constraintsSaveAsButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02497 constraintsSaveAsButton.weightx = 1.0;
02498 constraintsSaveAsButton.insets = new java.awt.Insets(15, 10, 10, 0);
02499 getPropertyPanel().add(getSaveAsButton(), constraintsSaveAsButton);
02500
02501 java.awt.GridBagConstraints constraintsDescriptionPanel = new java.awt.GridBagConstraints();
02502 constraintsDescriptionPanel.gridx = 0; constraintsDescriptionPanel.gridy = 0;
02503 constraintsDescriptionPanel.gridwidth = 4;
02504 constraintsDescriptionPanel.fill = java.awt.GridBagConstraints.BOTH;
02505 constraintsDescriptionPanel.weightx = 1.0;
02506 constraintsDescriptionPanel.weighty = 1.0;
02507 constraintsDescriptionPanel.insets = new java.awt.Insets(10, 9, 0, 8);
02508 getPropertyPanel().add(getDescriptionPanel(), constraintsDescriptionPanel);
02509
02510 java.awt.GridBagConstraints constraintsNewButton = new java.awt.GridBagConstraints();
02511 constraintsNewButton.gridx = 0; constraintsNewButton.gridy = 2;
02512 constraintsNewButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
02513 constraintsNewButton.weightx = 1.0;
02514 constraintsNewButton.insets = new java.awt.Insets(15, 10, 10, 0);
02515 getPropertyPanel().add(getNewButton(), constraintsNewButton);
02516
02517
02518 } catch (java.lang.Throwable ivjExc) {
02519
02520
02521 handleException(ivjExc);
02522 }
02523 }
02524 return ivjPropertyPanel;
02525 }
02526
02527
02528
02529
02530
02531 private javax.swing.JComboBox getPropositionComboBox() {
02532 if (ivjPropositionComboBox == null) {
02533 try {
02534 ivjPropositionComboBox = new javax.swing.JComboBox();
02535 ivjPropositionComboBox.setName("PropositionComboBox");
02536 ivjPropositionComboBox.setEnabled(false);
02537
02538 ivjPropositionComboBox.addItem(" ");
02539
02540 } catch (java.lang.Throwable ivjExc) {
02541
02542
02543 handleException(ivjExc);
02544 }
02545 }
02546 return ivjPropositionComboBox;
02547 }
02548
02549
02550
02551
02552
02553 private javax.swing.JLabel getPropositionLabel() {
02554 if (ivjPropositionLabel == null) {
02555 try {
02556 ivjPropositionLabel = new javax.swing.JLabel();
02557 ivjPropositionLabel.setName("PropositionLabel");
02558 ivjPropositionLabel.setText("Proposition:");
02559 ivjPropositionLabel.setForeground(java.awt.Color.black);
02560
02561
02562 } catch (java.lang.Throwable ivjExc) {
02563
02564
02565 handleException(ivjExc);
02566 }
02567 }
02568 return ivjPropositionLabel;
02569 }
02570
02571
02572
02573
02574
02575 private javax.swing.JPopupMenu getPropositionPopupMenu() {
02576 if (ivjPropositionPopupMenu == null) {
02577 try {
02578 ivjPropositionPopupMenu = new javax.swing.JPopupMenu();
02579 ivjPropositionPopupMenu.setName("PropositionPopupMenu");
02580 ivjPropositionPopupMenu.add(getAddPredicateMenuItem());
02581
02582
02583 } catch (java.lang.Throwable ivjExc) {
02584
02585
02586 handleException(ivjExc);
02587 }
02588 }
02589 return ivjPropositionPopupMenu;
02590 }
02591
02592
02593
02594
02595
02596 public javax.swing.JTextField getPropositionTextField() {
02597 if (ivjPropositionTextField == null) {
02598 try {
02599 ivjPropositionTextField = new javax.swing.JTextField();
02600 ivjPropositionTextField.setName("PropositionTextField");
02601 ivjPropositionTextField.setBorder(BorderFactory.createLoweredBevelBorder());
02602 ivjPropositionTextField.setEditable(false);
02603
02604
02605 } catch (java.lang.Throwable ivjExc) {
02606
02607
02608 handleException(ivjExc);
02609 }
02610 }
02611 return ivjPropositionTextField;
02612 }
02613
02614
02615
02616
02617
02618 private javax.swing.JScrollPane getQuantificationScrollPane() {
02619 if (ivjQuantificationScrollPane == null) {
02620 try {
02621 ivjQuantificationScrollPane = new javax.swing.JScrollPane();
02622 ivjQuantificationScrollPane.setName("QuantificationScrollPane");
02623 ivjQuantificationScrollPane.setPreferredSize(new java.awt.Dimension(3, 50));
02624 ivjQuantificationScrollPane.setBorder(BorderFactory.createLoweredBevelBorder());
02625 ivjQuantificationScrollPane.setMinimumSize(new java.awt.Dimension(22, 50));
02626 getQuantificationScrollPane().setViewportView(getQuantificationTextArea());
02627
02628
02629 } catch (java.lang.Throwable ivjExc) {
02630
02631
02632 handleException(ivjExc);
02633 }
02634 }
02635 return ivjQuantificationScrollPane;
02636 }
02637
02638
02639
02640
02641
02642 private javax.swing.JTextArea getQuantificationTextArea() {
02643 if (ivjQuantificationTextArea == null) {
02644 try {
02645 ivjQuantificationTextArea = new javax.swing.JTextArea();
02646 ivjQuantificationTextArea.setName("QuantificationTextArea");
02647 ivjQuantificationTextArea.setBorder(new javax.swing.border.CompoundBorder());
02648 ivjQuantificationTextArea.setBackground(new java.awt.Color(204,204,204));
02649 ivjQuantificationTextArea.setBounds(0, 0, 306, 27);
02650 ivjQuantificationTextArea.setEditable(false);
02651 ivjQuantificationTextArea.setEnabled(true);
02652
02653
02654 } catch (java.lang.Throwable ivjExc) {
02655
02656
02657 handleException(ivjExc);
02658 }
02659 }
02660 return ivjQuantificationTextArea;
02661 }
02662
02663
02664
02665
02666
02667 private javax.swing.JLabel getQuantifierLabel() {
02668 if (ivjQuantifierLabel == null) {
02669 try {
02670 ivjQuantifierLabel = new javax.swing.JLabel();
02671 ivjQuantifierLabel.setName("QuantifierLabel");
02672 ivjQuantifierLabel.setText("Quantifications:");
02673 ivjQuantifierLabel.setForeground(java.awt.Color.black);
02674
02675
02676 } catch (java.lang.Throwable ivjExc) {
02677
02678
02679 handleException(ivjExc);
02680 }
02681 }
02682 return ivjQuantifierLabel;
02683 }
02684
02685
02686
02687
02688
02689 private javax.swing.JButton getRemoveAssertionButton() {
02690 if (ivjRemoveAssertionButton == null) {
02691 try {
02692 ivjRemoveAssertionButton = new javax.swing.JButton();
02693 ivjRemoveAssertionButton.setName("RemoveAssertionButton");
02694 ivjRemoveAssertionButton.setText("Remove");
02695 ivjRemoveAssertionButton.setBackground(new java.awt.Color(204,204,255));
02696 ivjRemoveAssertionButton.setEnabled(false);
02697
02698
02699 } catch (java.lang.Throwable ivjExc) {
02700
02701
02702 handleException(ivjExc);
02703 }
02704 }
02705 return ivjRemoveAssertionButton;
02706 }
02707
02708
02709
02710
02711
02712 private javax.swing.JButton getRemoveEnabledAssertionButton() {
02713 if (ivjRemoveEnabledAssertionButton == null) {
02714 try {
02715 ivjRemoveEnabledAssertionButton = new javax.swing.JButton();
02716 ivjRemoveEnabledAssertionButton.setName("RemoveEnabledAssertionButton");
02717 ivjRemoveEnabledAssertionButton.setText("Remove");
02718 ivjRemoveEnabledAssertionButton.setBackground(new java.awt.Color(204,204,255));
02719 ivjRemoveEnabledAssertionButton.setEnabled(false);
02720
02721
02722 } catch (java.lang.Throwable ivjExc) {
02723
02724
02725 handleException(ivjExc);
02726 }
02727 }
02728 return ivjRemoveEnabledAssertionButton;
02729 }
02730
02731
02732
02733
02734
02735 private javax.swing.JButton getRemoveImportButton() {
02736 if (ivjRemoveImportButton == null) {
02737 try {
02738 ivjRemoveImportButton = new javax.swing.JButton();
02739 ivjRemoveImportButton.setName("RemoveImportButton");
02740 ivjRemoveImportButton.setMnemonic('r');
02741 ivjRemoveImportButton.setText("Remove");
02742 ivjRemoveImportButton.setBackground(new java.awt.Color(204,204,255));
02743 ivjRemoveImportButton.setEnabled(false);
02744
02745
02746 } catch (java.lang.Throwable ivjExc) {
02747
02748
02749 handleException(ivjExc);
02750 }
02751 }
02752 return ivjRemoveImportButton;
02753 }
02754
02755
02756
02757
02758
02759 private javax.swing.JButton getRemoveTLButton() {
02760 if (ivjRemoveTLButton == null) {
02761 try {
02762 ivjRemoveTLButton = new javax.swing.JButton();
02763 ivjRemoveTLButton.setName("RemoveTLButton");
02764 ivjRemoveTLButton.setText("Remove");
02765 ivjRemoveTLButton.setBackground(new java.awt.Color(204,204,255));
02766 ivjRemoveTLButton.setEnabled(false);
02767
02768
02769 } catch (java.lang.Throwable ivjExc) {
02770
02771
02772 handleException(ivjExc);
02773 }
02774 }
02775 return ivjRemoveTLButton;
02776 }
02777
02778
02779
02780
02781
02782 private javax.swing.JButton getSaveAsButton() {
02783 if (ivjSaveAsButton == null) {
02784 try {
02785 ivjSaveAsButton = new javax.swing.JButton();
02786 ivjSaveAsButton.setName("SaveAsButton");
02787 ivjSaveAsButton.setMnemonic('a');
02788 ivjSaveAsButton.setText("Save as");
02789 ivjSaveAsButton.setBackground(new java.awt.Color(204,204,255));
02790
02791
02792 } catch (java.lang.Throwable ivjExc) {
02793
02794
02795 handleException(ivjExc);
02796 }
02797 }
02798 return ivjSaveAsButton;
02799 }
02800
02801
02802
02803
02804
02805 private javax.swing.JButton getSaveButton() {
02806 if (ivjSaveButton == null) {
02807 try {
02808 ivjSaveButton = new javax.swing.JButton();
02809 ivjSaveButton.setName("SaveButton");
02810 ivjSaveButton.setMnemonic('s');
02811 ivjSaveButton.setText("Save");
02812 ivjSaveButton.setBackground(new java.awt.Color(204,204,255));
02813
02814
02815 } catch (java.lang.Throwable ivjExc) {
02816
02817
02818 handleException(ivjExc);
02819 }
02820 }
02821 return ivjSaveButton;
02822 }
02823
02824
02825
02826
02827
02828 private javax.swing.JButton getShowErrorButton() {
02829 if (ivjShowErrorButton == null) {
02830 try {
02831 ivjShowErrorButton = new javax.swing.JButton();
02832 ivjShowErrorButton.setName("ShowErrorButton");
02833 ivjShowErrorButton.setMnemonic('e');
02834 ivjShowErrorButton.setText("Show Error Message(s)");
02835 ivjShowErrorButton.setBackground(new java.awt.Color(204,204,255));
02836 ivjShowErrorButton.setEnabled(false);
02837
02838
02839 } catch (java.lang.Throwable ivjExc) {
02840
02841
02842 handleException(ivjExc);
02843 }
02844 }
02845 return ivjShowErrorButton;
02846 }
02847
02848
02849
02850
02851
02852 private javax.swing.JButton getShowMappingButton() {
02853 if (ivjShowMappingButton == null) {
02854 try {
02855 ivjShowMappingButton = new javax.swing.JButton();
02856 ivjShowMappingButton.setName("ShowMappingButton");
02857 ivjShowMappingButton.setMnemonic('m');
02858 ivjShowMappingButton.setText("Show Mapping");
02859 ivjShowMappingButton.setBackground(new java.awt.Color(204,204,255));
02860 ivjShowMappingButton.setEnabled(false);
02861
02862
02863 } catch (java.lang.Throwable ivjExc) {
02864
02865
02866 handleException(ivjExc);
02867 }
02868 }
02869 return ivjShowMappingButton;
02870 }
02871
02872
02873
02874
02875
02876 private javax.swing.JButton getTLDescriptionButton() {
02877 if (ivjTLDescriptionButton == null) {
02878 try {
02879 ivjTLDescriptionButton = new javax.swing.JButton();
02880 ivjTLDescriptionButton.setName("TLDescriptionButton");
02881 ivjTLDescriptionButton.setMnemonic('d');
02882 ivjTLDescriptionButton.setText("Description");
02883 ivjTLDescriptionButton.setBackground(new java.awt.Color(204,204,255));
02884 ivjTLDescriptionButton.setEnabled(false);
02885
02886
02887 } catch (java.lang.Throwable ivjExc) {
02888
02889
02890 handleException(ivjExc);
02891 }
02892 }
02893 return ivjTLDescriptionButton;
02894 }
02895
02896
02897
02898
02899
02900 private javax.swing.JList getTLList() {
02901 if (ivjTLList == null) {
02902 try {
02903 ivjTLList = new javax.swing.JList();
02904 ivjTLList.setName("TLList");
02905 ivjTLList.setBackground(new java.awt.Color(204,204,204));
02906 ivjTLList.setBounds(0, 0, 160, 120);
02907 ivjTLList.setSelectionMode(javax.swing.ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
02908
02909 ivjTLList.setCellRenderer(new DefaultListCellRenderer() {
02910 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
02911 super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
02912 if (value instanceof TemporalLogicProperty) {
02913 TemporalLogicProperty tlp = (TemporalLogicProperty) value;
02914 setText(tlp.getName());
02915 if (BUI.property.isActivated(tlp)) {
02916 setIcon(IconLibrary.arrow);
02917 } else {
02918 setIcon(IconLibrary.earrow);
02919 }
02920 }
02921 return this;
02922 }
02923 });
02924
02925 } catch (java.lang.Throwable ivjExc) {
02926
02927
02928 handleException(ivjExc);
02929 }
02930 }
02931 return ivjTLList;
02932 }
02933
02934
02935
02936
02937
02938 private javax.swing.JLabel getTLNameLabel() {
02939 if (ivjTLNameLabel == null) {
02940 try {
02941 ivjTLNameLabel = new javax.swing.JLabel();
02942 ivjTLNameLabel.setName("TLNameLabel");
02943 ivjTLNameLabel.setDisplayedMnemonic('n');
02944 ivjTLNameLabel.setText("Name:");
02945 ivjTLNameLabel.setForeground(java.awt.Color.black);
02946
02947
02948 } catch (java.lang.Throwable ivjExc) {
02949
02950
02951 handleException(ivjExc);
02952 }
02953 }
02954 return ivjTLNameLabel;
02955 }
02956
02957
02958
02959
02960
02961 private javax.swing.JTextField getTLNameTextField() {
02962 if (ivjTLNameTextField == null) {
02963 try {
02964 ivjTLNameTextField = new javax.swing.JTextField();
02965 ivjTLNameTextField.setName("TLNameTextField");
02966 ivjTLNameTextField.setBorder(BorderFactory.createLoweredBevelBorder());
02967 ivjTLNameTextField.setEditable(false);
02968 ivjTLNameTextField.setFocusAccelerator('n');
02969
02970
02971 } catch (java.lang.Throwable ivjExc) {
02972
02973
02974 handleException(ivjExc);
02975 }
02976 }
02977 return ivjTLNameTextField;
02978 }
02979
02980
02981
02982
02983
02984 public javax.swing.JPanel getTLPanel() {
02985 if (ivjTLPanel == null) {
02986 try {
02987 ivjTLPanel = new javax.swing.JPanel();
02988 ivjTLPanel.setName("TLPanel");
02989 ivjTLPanel.setLayout(new java.awt.GridBagLayout());
02990 ivjTLPanel.setBackground(new java.awt.Color(204,204,255));
02991
02992 java.awt.GridBagConstraints constraintsTLScrollPane = new java.awt.GridBagConstraints();
02993 constraintsTLScrollPane.gridx = 0; constraintsTLScrollPane.gridy = 0;
02994 constraintsTLScrollPane.gridheight = 7;
02995 constraintsTLScrollPane.fill = java.awt.GridBagConstraints.BOTH;
02996 constraintsTLScrollPane.weightx = 1.0;
02997 constraintsTLScrollPane.weighty = 1.0;
02998 constraintsTLScrollPane.insets = new java.awt.Insets(10, 10, 0, 0);
02999 getTLPanel().add(getTLScrollPane(), constraintsTLScrollPane);
03000
03001 java.awt.GridBagConstraints constraintsAddTLButton = new java.awt.GridBagConstraints();
03002 constraintsAddTLButton.gridx = 1; constraintsAddTLButton.gridy = 1;
03003 constraintsAddTLButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
03004 constraintsAddTLButton.insets = new java.awt.Insets(10, 10, 0, 10);
03005 getTLPanel().add(getAddTLButton(), constraintsAddTLButton);
03006
03007 java.awt.GridBagConstraints constraintsRemoveTLButton = new java.awt.GridBagConstraints();
03008 constraintsRemoveTLButton.gridx = 1; constraintsRemoveTLButton.gridy = 2;
03009 constraintsRemoveTLButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
03010 constraintsRemoveTLButton.insets = new java.awt.Insets(10, 10, 0, 10);
03011 getTLPanel().add(getRemoveTLButton(), constraintsRemoveTLButton);
03012
03013 java.awt.GridBagConstraints constraintsFormulaPanel = new java.awt.GridBagConstraints();
03014 constraintsFormulaPanel.gridx = 0; constraintsFormulaPanel.gridy = 7;
03015 constraintsFormulaPanel.gridwidth = 2;
03016 constraintsFormulaPanel.fill = java.awt.GridBagConstraints.BOTH;
03017 constraintsFormulaPanel.weightx = 1.0;
03018 constraintsFormulaPanel.weighty = 1.0;
03019 constraintsFormulaPanel.insets = new java.awt.Insets(15, 9, 10, 7);
03020 getTLPanel().add(getFormulaPanel(), constraintsFormulaPanel);
03021
03022 java.awt.GridBagConstraints constraintsActivateTLButton = new java.awt.GridBagConstraints();
03023 constraintsActivateTLButton.gridx = 1; constraintsActivateTLButton.gridy = 0;
03024 constraintsActivateTLButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
03025 constraintsActivateTLButton.insets = new java.awt.Insets(10, 10, 0, 10);
03026 getTLPanel().add(getActivateTLButton(), constraintsActivateTLButton);
03027
03028 java.awt.GridBagConstraints constraintsTLNameLabel = new java.awt.GridBagConstraints();
03029 constraintsTLNameLabel.gridx = 1; constraintsTLNameLabel.gridy = 3;
03030 constraintsTLNameLabel.fill = java.awt.GridBagConstraints.BOTH;
03031 constraintsTLNameLabel.insets = new java.awt.Insets(15, 10, 0, 10);
03032 getTLPanel().add(getTLNameLabel(), constraintsTLNameLabel);
03033
03034 java.awt.GridBagConstraints constraintsTLNameTextField = new java.awt.GridBagConstraints();
03035 constraintsTLNameTextField.gridx = 1; constraintsTLNameTextField.gridy = 4;
03036 constraintsTLNameTextField.fill = java.awt.GridBagConstraints.HORIZONTAL;
03037 constraintsTLNameTextField.insets = new java.awt.Insets(5, 10, 0, 10);
03038 getTLPanel().add(getTLNameTextField(), constraintsTLNameTextField);
03039
03040 java.awt.GridBagConstraints constraintsTLDescriptionButton = new java.awt.GridBagConstraints();
03041 constraintsTLDescriptionButton.gridx = 1; constraintsTLDescriptionButton.gridy = 6;
03042 constraintsTLDescriptionButton.fill = java.awt.GridBagConstraints.HORIZONTAL;
03043 constraintsTLDescriptionButton.insets = new java.awt.Insets(0, 10, 0, 10);
03044 getTLPanel().add(getTLDescriptionButton(), constraintsTLDescriptionButton);
03045
03046
03047 } catch (java.lang.Throwable ivjExc) {
03048
03049
03050 handleException(ivjExc);
03051 }
03052 }
03053 return ivjTLPanel;
03054 }
03055
03056
03057
03058
03059
03060 private javax.swing.JScrollPane getTLScrollPane() {
03061 if (ivjTLScrollPane == null) {
03062 try {
03063 ivjTLScrollPane = new javax.swing.JScrollPane();
03064 ivjTLScrollPane.setName("TLScrollPane");
03065 ivjTLScrollPane.setBorder(BorderFactory.createLoweredBevelBorder());
03066 getTLScrollPane().setViewportView(getTLList());
03067
03068
03069 } catch (java.lang.Throwable ivjExc) {
03070
03071
03072 handleException(ivjExc);
03073 }
03074 }
03075 return ivjTLScrollPane;
03076 }
03077
03078
03079
03080 public void gotoAssertionDefinitionButton_ActionEvents() {
03081 try {
03082 Assertion p = AssertionSet.getAssertion((Name) getEnabledAssertionList().getSelectedValue());
03083 Annotation a = p.getAnnotation();
03084 if (a instanceof LabeledStmtAnnotation) {
03085 a = CompilationManager.getAnnotationManager().getMethodAnnotationContainingAnnotation(a);
03086 }
03087 BUI.sessionPane.select(a, p);
03088 } catch (Exception e) {
03089 }
03090 }
03091
03092
03093
03094
03095 private void handleException(java.lang.Throwable exception) {
03096
03097
03098
03099
03100 }
03101
03102
03103
03104 public void importAssertionButton_ActionEvents() {
03105 Vector v = new Vector();
03106 for (Enumeration e = AssertionSet.getAssertionSetTable().elements(); e.hasMoreElements();) {
03107 for (Enumeration e2 = ((AssertionSet) e.nextElement()).getAssertionTable().elements(); e2.hasMoreElements();) {
03108 v.add(e2.nextElement());
03109 }
03110 }
03111 int size = v.size();
03112 if (size > 0) {
03113 Object[] possibleValues = new Object[size];
03114 int i = 0;
03115 for (Enumeration e = v.elements(); e.hasMoreElements(); i++) {
03116 possibleValues[i] = ((Assertion) e.nextElement()).getName();
03117 }
03118 Object selectedValue = JOptionPane.showInputDialog(null, "Choose assertion", "Import Assertion", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
03119 if (selectedValue != null) {
03120 try {
03121 Assertion a = AssertionSet.getAssertion((Name) selectedValue);
03122 BUI.property.importAssertion(a.getName());
03123 updateImportList();
03124 getImportList().setSelectedValue(a, true);
03125 isClean = false;
03126 } catch (Exception e) {
03127 throw new RuntimeException(e.getMessage());
03128 }
03129 }
03130 } else {
03131 JOptionPane.showMessageDialog(null, "There are no assertions to choose from", "Import Assertion", JOptionPane.INFORMATION_MESSAGE);
03132 }
03133 }
03134
03135
03136
03137 public void importAssertionSetButton_ActionEvents() {
03138 int size = AssertionSet.getAssertionSetTable().size();
03139 if (size > 0) {
03140 Object[] possibleValues = new Object[size];
03141 int i = 0;
03142 for (Enumeration e = AssertionSet.getAssertionSetTable().elements(); e.hasMoreElements(); i++) {
03143 possibleValues[i] = ((AssertionSet) e.nextElement()).getName();
03144 }
03145 Object selectedValue = JOptionPane.showInputDialog(null, "Choose assertion set", "Import Assertion Set", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
03146 if (selectedValue != null) {
03147 try {
03148 AssertionSet as = AssertionSet.getAssertionSet((Name) selectedValue);
03149 BUI.property.importAssertionSet(as.getName());
03150 updateImportList();
03151 getImportList().setSelectedValue(as, true);
03152 isClean = false;
03153 } catch (Exception e) {
03154 throw new RuntimeException(e.getMessage());
03155 }
03156 }
03157 } else {
03158 JOptionPane.showMessageDialog(null, "There are no assertion sets to choose from", "Import Assertion Set", JOptionPane.INFORMATION_MESSAGE);
03159 }
03160 }
03161
03162
03163
03164 public void importList_ListSelectionEvents() {
03165 getRemoveImportButton().setEnabled(true);
03166 }
03167
03168
03169
03170 public void importPackageButton_ActionEvents() {
03171 Vector v = new Vector();
03172 for (Enumeration e = CompilationManager.getCompiledClasses().elements(); e.hasMoreElements();) {
03173 try {
03174 Name cName = new Name(((SootClass) e.nextElement()).getName());
03175 if (!cName.isSimpleName()) {
03176 Package p = Package.getPackage(cName.getSuperName());
03177 if (!v.contains(p)) {
03178 v.add(p);
03179 }
03180 }
03181 } catch (Exception ex) {
03182 }
03183 }
03184 int size = v.size();
03185
03186 if (size > 0) {
03187 Object[] possibleValues = new Object[size];
03188 int i = 0;
03189 for (Enumeration e = v.elements(); e.hasMoreElements(); i++) {
03190 possibleValues[i] = e.nextElement();
03191 }
03192 Object selectedValue = JOptionPane.showInputDialog(null, "Choose package", "Import Package", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
03193 if (selectedValue != null) {
03194 try {
03195 Package p = (Package) selectedValue;
03196 BUI.property.importPackage(p.getName());
03197 updateImportList();
03198 getImportList().setSelectedValue(p, true);
03199 isClean = false;
03200 } catch (Exception e) {
03201 throw new RuntimeException(e.getMessage());
03202 }
03203 }
03204 } else {
03205 JOptionPane.showMessageDialog(null, "There are no packages to choose from", "Import Package", JOptionPane.INFORMATION_MESSAGE);
03206 }
03207 }
03208
03209
03210
03211 public void importPredicateButton_ActionEvents() {
03212 Vector v = new Vector();
03213 for (Enumeration e = PredicateSet.getPredicateSetTable().elements(); e.hasMoreElements();) {
03214 for (Enumeration e2 = ((PredicateSet) e.nextElement()).getPredicateTable().elements(); e2.hasMoreElements();) {
03215 v.add(e2.nextElement());
03216 }
03217 }
03218 int size = v.size();
03219 if (size > 0) {
03220 Object[] possibleValues = new Object[size];
03221 int i = 0;
03222 for (Enumeration e = v.elements(); e.hasMoreElements(); i++) {
03223 possibleValues[i] = ((Predicate) e.nextElement()).getName();
03224 }
03225 Object selectedValue = JOptionPane.showInputDialog(null, "Choose predicate", "Import Predicate", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
03226 if (selectedValue != null) {
03227 try {
03228 Predicate p = PredicateSet.getPredicate((Name) selectedValue);
03229 BUI.property.importPredicate(p.getName());
03230 updateImportList();
03231 getImportList().setSelectedValue(p, true);
03232 isClean = false;
03233 } catch (Exception e) {
03234 throw new RuntimeException(e.getMessage());
03235 }
03236 }
03237 } else {
03238 JOptionPane.showMessageDialog(null, "There are no predicates to choose from", "Import Predicate", JOptionPane.INFORMATION_MESSAGE);
03239 }
03240 }
03241
03242
03243
03244 public void importPredicateSetButton_ActionEvents() {
03245 int size = PredicateSet.getPredicateSetTable().size();
03246 if (size > 0) {
03247 Object[] possibleValues = new Object[size];
03248 int i = 0;
03249 for (Enumeration e = PredicateSet.getPredicateSetTable().elements(); e.hasMoreElements(); i++) {
03250 possibleValues[i] = ((PredicateSet) e.nextElement()).getName();
03251 }
03252 Object selectedValue = JOptionPane.showInputDialog(null, "Choose predicate set", "Import Predicate Set", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
03253 if (selectedValue != null) {
03254 try {
03255 PredicateSet ps = PredicateSet.getPredicateSet((Name) selectedValue);
03256 BUI.property.importPredicateSet(ps.getName());
03257 updateImportList();
03258 getImportList().setSelectedValue(ps, true);
03259 isClean = false;
03260 } catch (Exception e) {
03261 throw new RuntimeException(e.getMessage());
03262 }
03263 }
03264 } else {
03265 JOptionPane.showMessageDialog(null, "There are no predicate sets to choose from", "Import Predicate Set", JOptionPane.INFORMATION_MESSAGE);
03266 }
03267 }
03268
03269
03270
03271 public void importTypeButton_ActionEvents() {
03272 int size = CompilationManager.getCompiledClasses().size();
03273 if (size > 0) {
03274 Object[] possibleValues = new Object[size];
03275 int i = 0;
03276 for (Enumeration e = CompilationManager.getCompiledClasses().elements(); e.hasMoreElements(); i++) {
03277 possibleValues[i] = e.nextElement();
03278 }
03279 Object selectedValue = JOptionPane.showInputDialog(null, "Choose type", "Import Type", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
03280 if (selectedValue != null) {
03281 BUI.property.importType(new Name(((SootClass) selectedValue).getName()));
03282 updateImportList();
03283 getImportList().setSelectedValue(selectedValue, true);
03284 isClean = false;
03285 }
03286 } else {
03287 JOptionPane.showMessageDialog(null, "There are no types to choose from", "Import Type", JOptionPane.INFORMATION_MESSAGE);
03288 }
03289 }
03290
03291
03292
03293
03294
03295 private void initConnections() throws java.lang.Exception {
03296
03297
03298 getOkButton().addActionListener(ivjEventHandler);
03299 getImportTypeButton().addActionListener(ivjEventHandler);
03300 getImportPackageButton().addActionListener(ivjEventHandler);
03301 getImportPredicateButton().addActionListener(ivjEventHandler);
03302 getImportPredicateSetButton().addActionListener(ivjEventHandler);
03303 getImportAssertionButton().addActionListener(ivjEventHandler);
03304 getImportAssertionSetButton().addActionListener(ivjEventHandler);
03305 getRemoveImportButton().addActionListener(ivjEventHandler);
03306 getImportList().addListSelectionListener(ivjEventHandler);
03307 getAddAssertionButton().addActionListener(ivjEventHandler);
03308 getRemoveAssertionButton().addActionListener(ivjEventHandler);
03309 getActivateAssertionButton().addActionListener(ivjEventHandler);
03310 getAssertionList().addListSelectionListener(ivjEventHandler);
03311 getAddEnabledAssertionButton().addActionListener(ivjEventHandler);
03312 getRemoveEnabledAssertionButton().addActionListener(ivjEventHandler);
03313 getEnabledAssertionList().addListSelectionListener(ivjEventHandler);
03314 getAssertionNameTextField().addKeyListener(ivjEventHandler);
03315 getAssertionNameTextField().addFocusListener(ivjEventHandler);
03316 getTLList().addListSelectionListener(ivjEventHandler);
03317 getAddTLButton().addActionListener(ivjEventHandler);
03318 getRemoveTLButton().addActionListener(ivjEventHandler);
03319 getActivateTLButton().addActionListener(ivjEventHandler);
03320 getTLNameTextField().addKeyListener(ivjEventHandler);
03321 getTLNameTextField().addFocusListener(ivjEventHandler);
03322 getPatternNameComboBox().addActionListener(ivjEventHandler);
03323 getPatternScopeComboBox().addActionListener(ivjEventHandler);
03324 getPropositionComboBox().addActionListener(ivjEventHandler);
03325 getPropositionTextField().addKeyListener(ivjEventHandler);
03326 getPropositionTextField().addFocusListener(ivjEventHandler);
03327 getExpandButton().addActionListener(ivjEventHandler);
03328 getShowErrorButton().addActionListener(ivjEventHandler);
03329 getShowMappingButton().addActionListener(ivjEventHandler);
03330 getNewButton().addActionListener(ivjEventHandler);
03331 getOpenButton().addActionListener(ivjEventHandler);
03332 getSaveAsButton().addActionListener(ivjEventHandler);
03333 getSaveButton().addActionListener(ivjEventHandler);
03334 getPropositionTextField().addMouseListener(ivjEventHandler);
03335 getAddPredicateMenuItem().addActionListener(ivjEventHandler);
03336 getQuantificationTextArea().addKeyListener(ivjEventHandler);
03337 getQuantificationTextArea().addFocusListener(ivjEventHandler);
03338 }
03339
03340
03341
03342
03343 private void initialize() {
03344 try {
03345
03346
03347 setName("PropertyManager");
03348 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
03349 setSize(492, 636);
03350 setTitle("Property Manager");
03351 setContentPane(getPropertyManagerContentPane());
03352 initConnections();
03353 } catch (java.lang.Throwable ivjExc) {
03354 handleException(ivjExc);
03355 }
03356
03357 setTitle("Property Manager<Untitled>");
03358
03359 }
03360 public boolean isDialogClean() { return isClean; }
03361
03362
03363
03364 public void jTextField1_KeyEvents() {
03365 return;
03366 }
03367
03368
03369
03370
03371 public void loadFile(String filename) throws Exception {
03372 BUI.property = SpecificationSaverLoader.load(filename);
03373 setTitle("Property Manager<" + new File(filename).getName() + ">");
03374 }
03375
03376
03377
03378
03379 public static void main(java.lang.String[] args) {
03380 try {
03381 PropertyManager aPropertyManager;
03382 aPropertyManager = new PropertyManager();
03383 aPropertyManager.addWindowListener(new java.awt.event.WindowAdapter() {
03384 public void windowClosing(java.awt.event.WindowEvent e) {
03385 System.exit(0);
03386 };
03387 });
03388 aPropertyManager.setVisible(true);
03389 } catch (Throwable exception) {
03390 System.err.println("Exception occurred in main() of javax.swing.JFrame");
03391 exception.printStackTrace(System.out);
03392 }
03393 }
03394
03395
03396
03397 public void newButton_ActionEvents() {
03398 BUI.property = new Property();
03399 updatePropertyManager();
03400 try {
03401 BUI.sessions.getActiveSession().setSpecFilename(null);
03402 BUI.manager.updateProperty();
03403 } catch (Exception e) {
03404 }
03405 setTitle("Property Manager<Untitled>");
03406 isClean = true;
03407 }
03408
03409
03410
03411 public void openButton_ActionEvents() {
03412 FileChooser.chooser.setCurrentDirectory(new File(System.getProperty("user.dir")));
03413 FileChooser.chooser.setSelectedFile(new File(""));
03414 FileChooser.chooser.setFileFilter(FileChooser.SPECIFICATION);
03415 FileChooser.chooser.setFileSelectionMode(FileChooser.FILES_ONLY);
03416
03417 if (FileChooser.chooser.showOpenDialog(this) == FileChooser.APPROVE_OPTION) {
03418 try {
03419 if (FileChooser.chooser.getSelectedFile().isDirectory()) {
03420 JOptionPane.showMessageDialog(this, "Cannot choose a directory to open a specification file", "Information", JOptionPane.INFORMATION_MESSAGE);
03421 return;
03422 }
03423 if (!FileChooser.chooser.getSelectedFile().exists()) {
03424 JOptionPane.showMessageDialog(this, "Selected file does not exist", "Information", JOptionPane.INFORMATION_MESSAGE);
03425 return;
03426 }
03427 String filename = FileChooser.chooser.getSelectedFile().getCanonicalPath();
03428 loadFile(filename);
03429 updatePropertyManager();
03430 try {
03431 BUI.sessions.getActiveSession().setSpecFilename(filename);
03432 BUI.manager.updateProperty();
03433 isClean = false;
03434 } catch (Exception ex) {}
03435 } catch (Exception e) {
03436 StringBuffer buffer = new StringBuffer();
03437 for (Iterator i = SpecificationSaverLoader.getExceptions().iterator(); i.hasNext();) {
03438 buffer.append(((Exception) i.next()).getMessage() + "\n");
03439 }
03440 JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
03441 }
03442 }
03443 }
03444
03445
03446
03447 public void patternNameComboBox_ActionEvents() {
03448 if (inComboBoxChange) return;
03449
03450 String s = (String) getPatternNameComboBox().getSelectedItem();
03451
03452 BUI.property.getActivatedTemporalLogicProperty().setPatternName(s);
03453
03454 Hashtable table = (Hashtable) PatternSaverLoader.getPatternTable().get(s);
03455
03456 inComboBoxChange = true;
03457 try {
03458 getPatternScopeComboBox().removeAllItems();
03459 } catch (Exception e) {}
03460
03461 TreeSet ts = new TreeSet();
03462 for (Enumeration e = table.keys(); e.hasMoreElements();) {
03463 ts.add(e.nextElement());
03464 }
03465
03466 for (Iterator i = ts.iterator(); i.hasNext();) {
03467 getPatternScopeComboBox().addItem(i.next());
03468 }
03469 inComboBoxChange = false;
03470
03471 s = BUI.property.getActivatedTemporalLogicProperty().getPatternScope();
03472 if (s == null)
03473 getPatternScopeComboBox().setSelectedIndex(0);
03474 else
03475 getPatternScopeComboBox().setSelectedItem(s);
03476
03477 patternScopeComboBox_ActionEvents();
03478 }
03479
03480
03481
03482 public void patternScopeComboBox_ActionEvents() {
03483 if (inComboBoxChange) return;
03484
03485 String s = (String) getPatternScopeComboBox().getSelectedItem();
03486
03487 BUI.property.getActivatedTemporalLogicProperty().setPatternScope(s);
03488
03489 Pattern p = (Pattern) ((Hashtable) PatternSaverLoader.getPatternTable().get(getPatternNameComboBox().getSelectedItem())).get(s);
03490
03491 inComboBoxChange = true;
03492 try {
03493 getPropositionComboBox().removeAllItems();
03494 } catch (Exception e) {}
03495
03496 for (Iterator i = p.getParameters().iterator(); i.hasNext();) {
03497 getPropositionComboBox().addItem(i.next());
03498 }
03499 inComboBoxChange = false;
03500
03501 getPropositionComboBox().setSelectedIndex(0);
03502
03503 propositionComboBox_ActionEvents();
03504
03505 Hashtable parameters = new Hashtable();
03506 for (Iterator i = p.getParameters().iterator(); i.hasNext();) {
03507 Object parm = i.next();
03508 parameters.put(parm, parm);
03509 }
03510 String template = p.expandFormat(parameters);
03511 getExpandedPatternTextField().setText(template);
03512 getExpandedPatternTextField().setToolTipText(template);
03513 }
03514
03515
03516
03517 public void propositionComboBox_ActionEvents() {
03518 if (inComboBoxChange) return;
03519 String s = (String) getPropositionComboBox().getSelectedItem();
03520
03521 TemporalLogicProperty tlp = BUI.property.getActivatedTemporalLogicProperty();
03522 String prop = tlp.getProposition(s);
03523
03524 if (prop == null) {
03525 prop = "";
03526 tlp.putProposition(s, prop);
03527 }
03528
03529 getPropositionTextField().setText(prop);
03530 }
03531
03532
03533
03534 public void propositionTextField_FocusLost() {
03535 String prop = (String) getPropositionComboBox().getSelectedItem();
03536 String s = getPropositionTextField().getText().trim();
03537 BUI.property.getActivatedTemporalLogicProperty().putProposition(prop, s);
03538 }
03539
03540
03541
03542 public void propositionTextField_KeyEvents() {
03543 String prop = (String) getPropositionComboBox().getSelectedItem();
03544 String s = getPropositionTextField().getText().trim();
03545 BUI.property.getActivatedTemporalLogicProperty().putProposition(prop, s);
03546 }
03547
03548
03549
03550 public void propositionTextField_MouseReleased(java.awt.event.MouseEvent mouseEvent) {
03551 if (mouseEvent.isMetaDown()) {
03552 getPropositionPopupMenu().show(getPropositionTextField(), mouseEvent.getX(), mouseEvent.getY());
03553 }
03554 }
03555
03556
03557
03558 public void quantificationTextArea_FocusLost(java.awt.event.FocusEvent focusEvent) {
03559 BUI.property.getActivatedTemporalLogicProperty().setQuantifier(getQuantificationTextArea().getText().trim());
03560 }
03561
03562
03563
03564 public void quantificationTextArea_KeyEvents() {
03565 BUI.property.getActivatedTemporalLogicProperty().setQuantifier(getQuantificationTextArea().getText().trim());
03566 }
03567
03568
03569
03570 public void removeAssertionButton_ActionEvents() {
03571 Object[] objects = getAssertionList().getSelectedValues();
03572 for (int i = 0; i < objects.length; i++) {
03573 BUI.property.removeAssertionProperty((AssertionProperty) objects[i]);
03574 }
03575 updateAssertionList();
03576 getRemoveAssertionButton().setEnabled(false);
03577 getActivateAssertionButton().setEnabled(false);
03578 getAddEnabledAssertionButton().setEnabled(BUI.property.getActivatedAssertionProperties().size() == 1);
03579 getRemoveEnabledAssertionButton().setEnabled(BUI.property.getActivatedAssertionProperties().size() == 1);
03580 getAssertionNameTextField().setEditable(false);
03581 getAssertionNameTextField().setText("");
03582 }
03583
03584
03585
03586 public void removeEnabledAssertionButton_ActionEvents() {
03587 Object[] objects = getEnabledAssertionList().getSelectedValues();
03588 AssertionProperty ap = (AssertionProperty) BUI.property.getActivatedAssertionProperties().iterator().next();
03589 for (int i = 0; i < objects.length; i++) {
03590 ap.removeAssertion((Name) objects[i]);
03591 }
03592 updateEnabledAssertionList();
03593 getRemoveEnabledAssertionButton().setEnabled(false);
03594 }
03595
03596
03597
03598 public void removeImportButton_ActionEvents() {
03599 Object[] objects = getImportList().getSelectedValues();
03600 for (int i = 0; i < objects.length; i++) {
03601 String s = (String) objects[i];
03602 if (s.startsWith("import predicate ")) {
03603 if (s.endsWith(".*")) {
03604 BUI.property.removeImportedPredicateSet(new Name(s.substring("import predicate ".length(), s.length() - 2)));
03605 } else {
03606 BUI.property.removeImportedPredicate(new Name(s.substring("import predicate ".length())));
03607 }
03608 } else if (s.startsWith("import assertion ")) {
03609 if (s.endsWith(".*")) {
03610 BUI.property.removeImportedAssertionSet(new Name(s.substring("import assertion ".length(), s.length() - 2)));
03611 } else {
03612 BUI.property.removeImportedAssertion(new Name(s.substring("import assertion ".length())));
03613 }
03614 } else {
03615 if (s.endsWith(".*")) {
03616 BUI.property.removeImportedPackage(new Name(s.substring("import ".length(), s.length() - 2)));
03617 } else {
03618 BUI.property.removeImportedType(new Name(s.substring("import ".length())));
03619 }
03620 }
03621 }
03622 updateImportList();
03623 getRemoveImportButton().setEnabled(false);
03624 }
03625
03626
03627
03628 public void removeTLButton_ActionEvents() {
03629 Object[] objects = getTLList().getSelectedValues();
03630 for (int i = 0; i < objects.length; i++) {
03631 BUI.property.removeTemporalLogicProperty((TemporalLogicProperty) objects[i]);
03632 }
03633 updateTLList();
03634 getRemoveTLButton().setEnabled(false);
03635 getActivateTLButton().setEnabled(false);
03636 getTLNameTextField().setEditable(false);
03637 getTLNameTextField().setText("");
03638
03639 if (BUI.property.getActivatedTemporalLogicProperty() == null) {
03640 setTLEnabledAll(false);
03641 }
03642 }
03643
03644
03645
03646 public void reset() {
03647 BUI.property = new Property();
03648 setTitle("Property Manager<Untitled>");
03649 isClean = true;
03650 }
03651
03652
03653
03654 public void saveAsButton_ActionEvents() {
03655 FileChooser.chooser.setFileFilter(FileChooser.SPECIFICATION);
03656 FileChooser.chooser.setSelectedFile(new File(System.getProperty("user.dir")));
03657 FileChooser.chooser.setFileSelectionMode(FileChooser.FILES_ONLY);
03658 FileChooser.chooser.setSelectedFile(new File(""));
03659
03660 if (FileChooser.chooser.showSaveDialog(this) == FileChooser.APPROVE_OPTION) {
03661 try {
03662 if (FileChooser.chooser.getSelectedFile().isDirectory()) {
03663 JOptionPane.showMessageDialog(this, "Cannot choose a directory to save a specification file", "Information", JOptionPane.INFORMATION_MESSAGE);
03664 return;
03665 }
03666 boolean f = true;
03667 if (FileChooser.chooser.getSelectedFile().exists()) {
03668 String filename = FileChooser.chooser.getSelectedFile().getCanonicalPath();
03669 f = JOptionPane.showConfirmDialog(this, "Overwrite " + filename + "?", "Confirm", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
03670 }
03671 if (f) {
03672 String filename = FileChooser.chooser.getSelectedFile().getCanonicalPath();
03673 BUI.property.setFilename(filename);
03674 saveButton_ActionEvents();
03675 try {
03676 BUI.sessions.getActiveSession().setSpecFilename(filename);
03677 BUI.manager.updateProperty();
03678 } catch (Exception ex) {}
03679 setTitle("Property Manager<" + new File(filename).getName() + ">");
03680 return;
03681 }
03682 } catch (Exception e) {
03683 JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
03684 }
03685 }
03686 }
03687
03688
03689
03690 public void saveButton_ActionEvents() {
03691 if ("".equals(BUI.property.getFilename())) {
03692 saveAsButton_ActionEvents();
03693 return;
03694 }
03695
03696 try {
03697 SpecificationSaverLoader.save(BUI.property);
03698 } catch (Exception e) {
03699 JOptionPane.showMessageDialog(this, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
03700 }
03701 }
03702
03703
03704
03705
03706 public void selectAssertionProperties(Collection c) {
03707 int indices[] = new int[c.size()];
03708 int j = 0;
03709 JList list = getAssertionList();
03710 for (Iterator i = c.iterator(); i.hasNext(); j++) {
03711 list.setSelectedValue(i.next(), false);
03712 indices[j] = list.getSelectedIndex();
03713 }
03714 list.setSelectedIndices(indices);
03715 activateAssertionButton_ActionEvents();
03716 }
03717
03718
03719
03720
03721 public void selectTemporalLogicProperty(TemporalLogicProperty tlp) {
03722 getTLList().setSelectedValue(tlp, true);
03723 activateTLButton_ActionEvents();
03724 }
03725
03726
03727
03728
03729 private void setTLEnabledAll(boolean b) {
03730 getQuantificationTextArea().setBackground(Color.white);
03731 getQuantificationTextArea().setEditable(b);
03732 getPatternNameComboBox().setEnabled(b);
03733 getPatternScopeComboBox().setEnabled(b);
03734 getPropositionComboBox().setEnabled(b);
03735 getPropositionTextField().setEditable(b);
03736 getExpandButton().setEnabled(b);
03737
03738 if (!b) {
03739 inComboBoxChange = true;
03740 getQuantificationTextArea().setText("");
03741 getQuantificationTextArea().setBackground(new Color(204, 204, 204));
03742 getPatternNameComboBox().removeAllItems();
03743 getPatternScopeComboBox().removeAllItems();
03744 getPropositionComboBox().removeAllItems();
03745 getPropositionComboBox().addItem(" ");
03746 getPropositionTextField().setText("");
03747 getExpandedPatternTextField().setText("");
03748 getShowMappingButton().setEnabled(false);
03749 getShowErrorButton().setEnabled(false);
03750 inComboBoxChange = false;
03751 }
03752 }
03753
03754
03755
03756 public void showErrorButton_ActionEvents() {
03757 TemporalLogicProperty tlp = BUI.property.getActivatedTemporalLogicProperty();
03758 if (tlp == null) return;
03759
03760 StringBuffer buffer = new StringBuffer();
03761 for (Iterator i = tlp.getExceptions().iterator(); i.hasNext();) {
03762 buffer.append(i.next().toString() + "\n");
03763 }
03764 JOptionPane.showMessageDialog(this, buffer.toString(), "Error", JOptionPane.ERROR_MESSAGE);
03765 }
03766
03767
03768
03769 public void showMappingButton_ActionEvents() {
03770 }
03771
03772
03773
03774 public void tLList_ListSelectionEvents() {
03775 getRemoveTLButton().setEnabled(true);
03776 getActivateTLButton().setEnabled(getTLList().getSelectedValues().length == 1);
03777 TemporalLogicProperty tlp = (TemporalLogicProperty) getTLList().getSelectedValue();
03778 getTLNameTextField().setText(tlp.getName());
03779 getTLNameTextField().setEditable(BUI.property.isActivated(tlp));
03780 }
03781
03782
03783
03784 public void tLNameTextField_FocusLost() {
03785 String s = getTLNameTextField().getText().trim();
03786 if (!inNameFocusLost && !Util.isValidId(s)) {
03787 inNameFocusLost = true;
03788 do {
03789 s = JOptionPane.showInputDialog("Please input a valid temporal logic property name");
03790 } while ((s == null) || !Util.isValidId(s));
03791 getTLNameTextField().setText(s);
03792 TemporalLogicProperty tlp = BUI.property.getActivatedTemporalLogicProperty();
03793 tlp.setName(s);
03794 getTLList().repaint();
03795 inNameFocusLost = false;
03796 }
03797 }
03798
03799
03800
03801 public void tLNameTextField_KeyEvents() {
03802 TemporalLogicProperty tlp = BUI.property.getActivatedTemporalLogicProperty();
03803 tlp.setName(getTLNameTextField().getText().trim());
03804 getTLList().repaint();
03805 }
03806
03807
03808
03809 private void updateAssertionList() {
03810 getAssertionList().setValueIsAdjusting(true);
03811 getAssertionList().setListData(BUI.property.getAssertionProperties());
03812 getAssertionList().setValueIsAdjusting(false);
03813 getAssertionScrollPane().validate();
03814 getAssertionScrollPane().repaint();
03815 }
03816
03817
03818
03819 public void updateEnabledAssertionList() {
03820 HashSet hs = new HashSet();
03821 for (Iterator i = BUI.property.getActivatedAssertionProperties().iterator(); i.hasNext();) {
03822 hs.addAll(((AssertionProperty) i.next()).getAssertions());
03823 }
03824 getEnabledAssertionList().setValueIsAdjusting(true);
03825 getEnabledAssertionList().setListData(new Vector(hs));
03826 getEnabledAssertionList().setValueIsAdjusting(false);
03827 getEnabledAssertionScrollPane().validate();
03828 getEnabledAssertionScrollPane().repaint();
03829 }
03830
03831
03832
03833 private void updateImportList() {
03834 Vector v = new Vector();
03835
03836 for (Iterator i = BUI.property.getImportedType().iterator(); i.hasNext();) {
03837 v.add("import " + i.next().toString());
03838 }
03839 for (Iterator i = BUI.property.getImportedPackage().iterator(); i.hasNext();) {
03840 v.add("import " + i.next().toString() + ".*");
03841 }
03842 for (Iterator i = BUI.property.getImportedAssertion().iterator(); i.hasNext();) {
03843 v.add("import assertion " + i.next().toString());
03844 }
03845 for (Iterator i = BUI.property.getImportedAssertionSet().iterator(); i.hasNext();) {
03846 v.add("import assertion " + i.next().toString() + ".*");
03847 }
03848 for (Iterator i = BUI.property.getImportedPredicate().iterator(); i.hasNext();) {
03849 v.add("import predicate " + i.next().toString());
03850 }
03851 for (Iterator i = BUI.property.getImportedPredicateSet().iterator(); i.hasNext();) {
03852 v.add("import predicate " + i.next().toString() + ".*");
03853 }
03854 getImportList().setValueIsAdjusting(true);
03855 getImportList().setListData(v);
03856 getImportList().setValueIsAdjusting(false);
03857 getImportScrollPane().validate();
03858 getImportScrollPane().repaint();
03859 }
03860
03861
03862
03863 public void updateLists() {
03864 updateImportList();
03865 updateAssertionList();
03866 updateEnabledAssertionList();
03867 updateTLList();
03868 }
03869
03870
03871
03872 private void updatePropertyManager() {
03873 updateLists();
03874
03875 getRemoveImportButton().setEnabled(false);
03876
03877 getAddTLButton().setEnabled(true);
03878 getRemoveTLButton().setEnabled(false);
03879 getActivateTLButton().setEnabled(false);
03880 getTLNameTextField().setEditable(false);
03881 getTLNameTextField().setText("");
03882 getTLDescriptionButton().setEnabled(false);
03883 getQuantificationTextArea().setBackground(new Color(204, 204, 204));
03884 getQuantificationTextArea().setEditable(false);
03885 getQuantificationTextArea().setText("");
03886 try {
03887 getPropositionComboBox().removeAllItems();
03888 } catch (Exception e) {}
03889 getPropositionComboBox().setEnabled(false);
03890 try {
03891 getPatternScopeComboBox().removeAllItems();
03892 } catch (Exception e) {}
03893 getPatternScopeComboBox().setEnabled(false);
03894 try {
03895 getPatternNameComboBox().removeAllItems();
03896 } catch (Exception e) {}
03897 getPatternNameComboBox().setEnabled(false);
03898 getPropositionTextField().setEditable(false);
03899 getPropositionTextField().setText("");
03900 getExpandButton().setEnabled(false);
03901 getExpandedPatternTextField().setEditable(false);
03902 getExpandedPatternTextField().setText("");
03903 getShowMappingButton().setEnabled(false);
03904 getShowErrorButton().setEnabled(false);
03905
03906 getAddAssertionButton().setEnabled(true);
03907 getRemoveAssertionButton().setEnabled(false);
03908 getActivateAssertionButton().setEnabled(false);
03909 getAssertionNameTextField().setEditable(false);
03910 getAssertionNameTextField().setText("");
03911 getAssertionDescriptionButton().setEnabled(false);
03912 getAddEnabledAssertionButton().setEnabled(false);
03913 getRemoveEnabledAssertionButton().setEnabled(false);
03914 }
03915
03916
03917
03918 private void updateTLList() {
03919 getTLList().setValueIsAdjusting(true);
03920 getTLList().setListData(BUI.property.getTemporalLogicProperties());
03921 getTLList().setValueIsAdjusting(false);
03922 getTLScrollPane().validate();
03923 getTLScrollPane().repaint();
03924 }
03925 }