Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-03-28 09:32:27 -0400
committerMarkus Tiede2014-03-28 09:32:50 -0400
commit4e3b7a3257d21d654f5429f804c20ca2488bc21d (patch)
treeff0e3578a6c6c2f4244ab5c70862b9cc138b2e0f
parentcbbdd20171fc741e5d84b98429670bba1d72e75e (diff)
downloadorg.eclipse.jubula.core-4e3b7a3257d21d654f5429f804c20ca2488bc21d.tar.gz
org.eclipse.jubula.core-4e3b7a3257d21d654f5429f804c20ca2488bc21d.tar.xz
org.eclipse.jubula.core-4e3b7a3257d21d654f5429f804c20ca2488bc21d.zip
Revert "Non-Sprint Task, derived components can be mapped"
-rw-r--r--org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/listener/ComponentHandler.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/listener/ComponentHandler.java b/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/listener/ComponentHandler.java
index 38c70b8ea..f5f214515 100644
--- a/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/listener/ComponentHandler.java
+++ b/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/listener/ComponentHandler.java
@@ -29,7 +29,6 @@ import org.eclipse.jubula.rc.common.AUTServerConfiguration;
import org.eclipse.jubula.rc.common.exception.ComponentNotFoundException;
import org.eclipse.jubula.rc.common.exception.ComponentNotManagedException;
import org.eclipse.jubula.rc.common.exception.NoIdentifierForComponentException;
-import org.eclipse.jubula.rc.common.exception.UnsupportedComponentException;
import org.eclipse.jubula.rc.common.listener.BaseAUTListener;
import org.eclipse.jubula.rc.common.logger.AutServerLogger;
import org.eclipse.jubula.rc.javafx.components.AUTJavaFXHierarchy;
@@ -43,6 +42,7 @@ import org.eclipse.jubula.tools.constants.TimingConstantsServer;
import org.eclipse.jubula.tools.exception.InvalidDataException;
import org.eclipse.jubula.tools.messagehandling.MessageIDs;
import org.eclipse.jubula.tools.objects.IComponentIdentifier;
+import org.eclipse.jubula.tools.xml.businessmodell.ComponentClass;
/**
* This class is responsible for handling the components of the AUT. <br>
@@ -144,16 +144,14 @@ public class ComponentHandler implements ListChangeListener<Stage>,
if (n.getScene() == null) {
continue;
}
- try {
- AUTServerConfiguration.getInstance()
- .getImplementationClass(n.getClass());
- } catch (UnsupportedComponentException
- | IllegalArgumentException e) {
-
- continue;
- }
- if (NodeBounds.checkIfContains(pos, n)) {
- matches.add(n);
+ Set supportetTypes = AUTServerConfiguration.getInstance().
+ getSupportedTypes();
+ for (Object object : supportetTypes) {
+ if (((ComponentClass)object).getName().
+ equals(n.getClass().getName())
+ && NodeBounds.checkIfContains(pos, n)) {
+ matches.add(n);
+ }
}
}

Back to the top