File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
key.ui/src/main/java/de/uka/ilkd/key/gui Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 21
21
import javax .swing .tree .TreeSelectionModel ;
22
22
23
23
import de .uka .ilkd .key .gui .utilities .GuiUtilities ;
24
+ import de .uka .ilkd .key .settings .ProofIndependentSettings ;
25
+ import de .uka .ilkd .key .settings .ViewSettings ;
24
26
25
27
import org .key_project .util .java .IOUtil ;
26
28
@@ -277,6 +279,15 @@ public void mouseClicked(MouseEvent e) {
277
279
.setMaximumSize (new Dimension (Integer .MAX_VALUE , (int ) buttonDim .getHeight () + 10 ));
278
280
getContentPane ().add (buttonPanel );
279
281
282
+ // create the checkbox to hide example load on next startup
283
+ ViewSettings vs = ProofIndependentSettings .DEFAULT_INSTANCE .getViewSettings ();
284
+ JCheckBox showAgainCheckbox =
285
+ new JCheckBox ("Show this dialog on startup" , vs .getShowLoadExamplesDialog ());
286
+ buttonPanel .add (showAgainCheckbox );
287
+ showAgainCheckbox .addActionListener (e -> {
288
+ vs .setShowLoadExamplesDialog (showAgainCheckbox .isSelected ());
289
+ });
290
+
280
291
// create "load" button
281
292
loadButton = new JButton ("Load Example" );
282
293
loadButton .addActionListener (e -> {
@@ -312,6 +323,7 @@ public void mouseClicked(MouseEvent e) {
312
323
buttonPanel .add (cancelButton );
313
324
GuiUtilities .attachClickOnEscListener (cancelButton );
314
325
326
+
315
327
// select first example
316
328
DefaultMutableTreeNode firstLeaf =
317
329
((DefaultMutableTreeNode ) model .getRoot ()).getFirstLeaf ();
You can’t perform that action at this time.
0 commit comments