Ignore:
Timestamp:
04/11/14 11:22:26 (11 years ago)
Author:
pharms
Message:
  • state of the HCSE 2014 Paper. An appropriate tag will follow.
Location:
trunk/autoquest-ui-swt
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-swt/.classpath

    r1343 r1495  
    22<classpath> 
    33        <classpathentry kind="src" output="target/classes" path="src/main/java"> 
    4                 <attributes> 
    5                         <attribute name="optional" value="true"/> 
    6                         <attribute name="maven.pomderived" value="true"/> 
    7                 </attributes> 
    8         </classpathentry> 
    9         <classpathentry kind="src" output="target/test-classes" path="src/test/java"> 
    104                <attributes> 
    115                        <attribute name="optional" value="true"/> 
  • trunk/autoquest-ui-swt/pom.xml

    r1094 r1495  
    5151            <groupId>de.ugoe.cs.autoquest</groupId> 
    5252            <artifactId>autoquest-core-tasktrees</artifactId> 
     53            <version>${project.parent.version}</version> 
     54        </dependency> 
     55        <dependency> 
     56            <groupId>de.ugoe.cs.autoquest</groupId> 
     57            <artifactId>autoquest-core-usability</artifactId> 
    5358            <version>${project.parent.version}</version> 
    5459        </dependency> 
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/MainWindow.java

    r1237 r1495  
    5353    protected TabItem modelsTab; 
    5454    protected TabItem guiModelsTab; 
     55    protected TabItem usabilityTab; 
    5556    protected TabItem dataTab; 
    5657    protected ConsoleTabComposite consoleTabComposite; 
     
    5859    protected ModelsTabComposite modelsTabComposite; 
    5960    protected GuiModelTabComposite guiModelTabComposite; 
     61    protected UsabilityTabComposite usabilityTabComposite; 
    6062    protected DataTabComposite dataTabComposite; 
    6163 
     
    221223                    guiModelTabComposite.updateModelList(); 
    222224                } 
     225                else if (e.item == usabilityTab) { 
     226                    usabilityTabComposite.updateResultList(); 
     227                } 
    223228                else if (e.item == dataTab) { 
    224229                    dataTabComposite.updateDataList(); 
     
    252257        guiModelsTab.setControl(guiModelTabComposite); 
    253258 
     259        usabilityTab = new TabItem(tabFolder, SWT.NONE); 
     260        usabilityTab.setText("Usability Evaluation Results"); 
     261 
     262        usabilityTabComposite = new UsabilityTabComposite(tabFolder, SWT.NO_BACKGROUND); 
     263        usabilityTab.setControl(usabilityTabComposite); 
     264 
    254265        dataTab = new TabItem(tabFolder, SWT.NONE); 
    255266        dataTab.setText("Data"); 
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ShowTaskTreeDialog.java

    r1424 r1495  
    9191 
    9292    /** the tree of involved GUI elements of a specific task on the right bottom */ 
    93     private Tree involvedGUIElementsTree; 
     93    private Tree involvedTargetsTree; 
    9494 
    9595    /** the table containing the parents tasks of a displayed task */ 
     
    363363        }); 
    364364         
    365         involvedGUIElementsTree = 
    366             VisualizationUtils.createGUIElementsTree(detailsBottomSashForm, "involved GUI elements"); 
     365        involvedTargetsTree = 
     366            VisualizationUtils.createTargetsTree(detailsBottomSashForm, "involved GUI elements"); 
    367367         
    368368        detailsBottomSashForm.setWeights(new int[] { 2, 3 }); 
     
    502502        taskDetailsTree.removeAll(); 
    503503        executionVariantsTree.removeAll(); 
    504         involvedGUIElementsTree.removeAll(); 
     504        involvedTargetsTree.removeAll(); 
    505505        parentTasks.removeAll(); 
    506506    } 
     
    549549        VisualizationUtils.updateColumnWidths(parentTasks); 
    550550         
    551         VisualizationUtils.addInvolvedTargets(involvedGUIElementsTree, task); 
     551        VisualizationUtils.addInvolvedTargets(involvedTargetsTree, task); 
    552552    } 
    553553 
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/VisualizationUtils.java

    r1424 r1495  
    2323import org.eclipse.swt.events.MenuEvent; 
    2424import org.eclipse.swt.events.SelectionAdapter; 
     25import org.eclipse.swt.events.SelectionEvent; 
    2526import org.eclipse.swt.layout.GridData; 
    2627import org.eclipse.swt.widgets.Composite; 
     
    5354class VisualizationUtils { 
    5455     
    55  
    5656    /** 
    5757     * 
     
    156156     * 
    157157     */ 
    158     static Tree createGUIElementsTree(Composite  parent, String name) { 
    159         Tree tree = new Tree(parent, SWT.BORDER | SWT.SINGLE); 
     158    static Tree createTargetsTree(Composite  parent, String name) { 
     159        Tree tree = new Tree(parent, SWT.BORDER | SWT.MULTI); 
    160160        tree.setHeaderVisible(true); 
    161161         
     
    307307     * 
    308308     */ 
     309    static void addInvolvedTargetsHighlighting(final Tree tasks, final Tree involvedTargetsTree) { 
     310        tasks.addSelectionListener(new SelectionAdapter() { 
     311            @Override 
     312            public void widgetSelected(SelectionEvent e) { 
     313                TreeItem[] selectedItems = tasks.getSelection(); 
     314                if ((selectedItems.length == 1) && 
     315                    (selectedItems[0].getData() instanceof ITask)) 
     316                { 
     317                    highlightInvolvedTargets 
     318                        ((ITask) selectedItems[0].getData(), involvedTargetsTree); 
     319                } 
     320            } 
     321        }); 
     322 
     323    } 
     324 
     325    /** 
     326     * 
     327     */ 
     328    static void highlightInvolvedTargets(ITask task, Tree involvedTargetsTree) { 
     329        List<IEventTarget> targets = new ArrayList<IEventTarget>(); 
     330        getInvolvedTargets(task, targets); 
     331         
     332        List<TreeItem> itemsToSelect = new LinkedList<TreeItem>(); 
     333        List<TreeItem> candidateItems = new LinkedList<TreeItem>(); 
     334         
     335        for (TreeItem item : involvedTargetsTree.getItems()) { 
     336            candidateItems.add(item); 
     337        } 
     338         
     339        while (candidateItems.size() > 0) { 
     340            TreeItem candidate = candidateItems.remove(0); 
     341             
     342            if (targets.contains(candidate.getData())) { 
     343                itemsToSelect.add(candidate); 
     344            } 
     345             
     346            for (TreeItem child : candidate.getItems()) { 
     347                candidateItems.add(child); 
     348            } 
     349        } 
     350         
     351        involvedTargetsTree.setSelection 
     352            (itemsToSelect.toArray(new TreeItem[itemsToSelect.size()])); 
     353    } 
     354 
     355    /** 
     356     * 
     357     */ 
    309358    static void addExpansionListener(Tree tree, Listener listener) { 
    310359        Listener[] listeners = tree.getListeners(SWT.Expand); 
Note: See TracChangeset for help on using the changeset viewer.