Ignore:
Timestamp:
09/21/12 12:12:23 (12 years ago)
Author:
sherbold
Message:
  • added button to condense GUI models
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/ShowGuiModelDialog.java

    r846 r847  
    7575        shell.setText(getText()); 
    7676 
    77         shell.setLayout(new GridLayout(3, false)); 
     77        shell.setLayout(new GridLayout(4, false)); 
    7878 
    7979        guiTree = new Tree(shell, SWT.BORDER | SWT.MULTI); 
    80         guiTree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1)); 
     80        guiTree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 4, 1)); 
    8181 
    8282        buildGuiTree(); 
     
    100100        btnCollapseAll.setText("Collapse all"); 
    101101         
     102        Button btnCondense = new Button(shell, SWT.NONE); 
     103        btnCondense.addSelectionListener(new SelectionAdapter() { 
     104            @Override 
     105            public void widgetSelected(SelectionEvent e) { 
     106                model.condenseModel(); 
     107                guiTree.removeAll(); 
     108                buildGuiTree(); 
     109            } 
     110        }); 
     111        btnCondense.setText("Condense"); 
     112         
    102113        Button btnMerge = new Button(shell, SWT.NONE); 
    103114        btnMerge.addSelectionListener(new SelectionAdapter() { 
     
    107118            } 
    108119        }); 
    109         btnMerge.setText("Merge"); 
     120        btnMerge.setText("Merge nodes"); 
    110121         
    111122        //new Label(shell, SWT.NONE); 
Note: See TracChangeset for help on using the changeset viewer.