Ignore:
Timestamp:
02/13/15 10:31:00 (9 years ago)
Author:
pharms
Message:
  • added support for views in GUIs
Location:
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCDialog.java

    r927 r1876  
    1616 
    1717import de.ugoe.cs.autoquest.eventcore.guimodel.IDialog; 
     18import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 
    1819 
    1920/** 
     
    2526 * @author Patrick Harms 
    2627 */ 
    27 public class MFCDialog extends MFCWindow implements IDialog { 
     28public class MFCDialog extends MFCWindow implements IDialog, IGUIView { 
    2829 
    2930    /** 
  • trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCGUIElement.java

    r1490 r1876  
    1818import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 
    1919import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 
     20import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 
    2021 
    2122/** 
     
    153154 
    154155    /* (non-Javadoc) 
     156     * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getView() 
     157     */ 
     158    @Override 
     159    public IGUIView getView() { 
     160        IGUIElement element = this; 
     161         
     162        while ((element != null) && (!(element instanceof IGUIView))) { 
     163            element = element.getParent(); 
     164        } 
     165         
     166        return (IGUIView) element; 
     167    } 
     168 
     169    /* (non-Javadoc) 
    155170     * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getDistanceTo(IGUIElement) 
    156171     */ 
  • trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCWindow.java

    r927 r1876  
    1616 
    1717import de.ugoe.cs.autoquest.eventcore.guimodel.IFrame; 
     18import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 
    1819 
    1920/** 
     
    2526 * @author Patrick Harms 
    2627 */ 
    27 public class MFCWindow extends MFCGUIElement implements IFrame { 
     28public class MFCWindow extends MFCGUIElement implements IFrame, IGUIView { 
    2829 
    2930    /** 
Note: See TracChangeset for help on using the changeset viewer.