- Timestamp:
- 05/19/17 11:31:29 (7 years ago)
- Location:
- trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/HandlerCreate.java
r1084 r2146 17 17 import org.xml.sax.SAXException; 18 18 19 import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 19 20 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementTree; 20 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException;21 21 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 22 22 import de.ugoe.cs.autoquest.plugin.mfc.guimodel.MFCGUIElementSpec; … … 98 98 super.getGUIElementTree().add(hwnd, parentHwnd, spec); 99 99 } 100 catch ( GUIModelException e) {100 catch (EventTargetModelException e) { 101 101 throw new SAXException("could not handle GUI element with handle " + 102 102 hwnd + ": " + e.getMessage(), e); -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCGUIElement.java
r1876 r2146 15 15 package de.ugoe.cs.autoquest.plugin.mfc.guimodel; 16 16 17 import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec; 17 18 import de.ugoe.cs.autoquest.eventcore.guimodel.AbstractDefaultGUIElement; 18 19 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement; 19 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec;20 20 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIView; 21 21 … … 125 125 */ 126 126 @Override 127 public void updateSpecification(IGUIElementSpec furtherSpec) { 128 ((MFCGUIElementSpec) super.getSpecification()).update(furtherSpec); 127 public void updateSpecification(IEventTargetSpec furtherSpec) { 128 if (furtherSpec instanceof MFCGUIElementSpec) { 129 ((MFCGUIElementSpec) super.getSpecification()).update((MFCGUIElementSpec) furtherSpec); 130 } 129 131 } 130 132 -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCGUIElementSpec.java
r1184 r2146 18 18 import java.util.List; 19 19 20 import de.ugoe.cs.autoquest.eventcore.IEventTargetSpec; 20 21 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementSpec; 21 22 import de.ugoe.cs.util.StringTools; … … 241 242 */ 242 243 @Override 243 public boolean getSimilarity(I GUIElementSpec other) {244 public boolean getSimilarity(IEventTargetSpec other) { 244 245 245 246 if (this == other) { -
trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCWindowTree.java
r1055 r2146 22 22 import java.util.Set; 23 23 24 import de.ugoe.cs.autoquest.eventcore.EventTargetModelException; 25 import de.ugoe.cs.autoquest.eventcore.IEventTargetFactory; 24 26 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; 25 27 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModel; 26 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIModelException;27 import de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElementFactory;28 28 29 29 /** … … 87 87 * </p> 88 88 */ 89 private I GUIElementFactory guiElementFactory = GUIElementFactory.getInstance();89 private IEventTargetFactory guiElementFactory = GUIElementFactory.getInstance(); 90 90 91 91 /** … … 188 188 (MFCGUIElement) guiModel.integratePath(guiElementPath, guiElementFactory); 189 189 } 190 catch ( GUIModelException e) {190 catch (EventTargetModelException e) { 191 191 throw new RuntimeException("could not instantiate GUI element with id " + hwnd, e); 192 192 }
Note: See TracChangeset
for help on using the changeset viewer.