diff options
author | Markus Tiede | 2015-01-09 15:35:31 +0000 |
---|---|---|
committer | Markus Tiede | 2015-01-09 15:35:31 +0000 |
commit | c2388a4249e521cafba3f60a1abb1538f65258e8 (patch) | |
tree | 09aa898a886c8472451102b13b6913eda0faeda9 /org.eclipse.jubula.rc.swing/src | |
parent | 6fed93bb9c9f427935f01936002550e88f5eb743 (diff) | |
download | org.eclipse.jubula.core-c2388a4249e521cafba3f60a1abb1538f65258e8.tar.gz org.eclipse.jubula.core-c2388a4249e521cafba3f60a1abb1538f65258e8.tar.xz org.eclipse.jubula.core-c2388a4249e521cafba3f60a1abb1538f65258e8.zip |
Non-sprint task - basic adapter mechanism and provisioning for JavaFX and other toolkits for generic and extendable property value rendering added.
Diffstat (limited to 'org.eclipse.jubula.rc.swing/src')
-rw-r--r-- | org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/driver/RobotAwtImpl.java | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/driver/RobotAwtImpl.java b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/driver/RobotAwtImpl.java index 7d4b586fd..a291bafee 100644 --- a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/driver/RobotAwtImpl.java +++ b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/driver/RobotAwtImpl.java @@ -26,14 +26,12 @@ import java.awt.event.InputEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; import java.awt.image.BufferedImage; -import java.lang.reflect.InvocationTargetException; import javax.swing.CellRendererPane; import javax.swing.JComponent; import javax.swing.SwingUtilities; import javax.swing.UIManager; -import org.apache.commons.beanutils.PropertyUtils; import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.Validate; import org.eclipse.jubula.rc.common.driver.ClickOptions; @@ -55,10 +53,10 @@ import org.eclipse.jubula.rc.common.exception.StepExecutionException; import org.eclipse.jubula.rc.common.logger.AutServerLogger; import org.eclipse.jubula.rc.common.util.LocalScreenshotUtil; import org.eclipse.jubula.rc.common.util.PointUtil; +import org.eclipse.jubula.rc.common.util.PropertyUtil; import org.eclipse.jubula.rc.swing.utils.SwingUtils; import org.eclipse.jubula.toolkit.enums.ValueSets; import org.eclipse.jubula.toolkit.enums.ValueSets.InteractionMode; -import org.eclipse.jubula.tools.internal.constants.StringConstants; import org.eclipse.jubula.tools.internal.constants.TimingConstantsServer; import org.eclipse.jubula.tools.internal.i18n.I18n; import org.eclipse.jubula.tools.internal.objects.event.EventFactory; @@ -912,21 +910,7 @@ public class RobotAwtImpl implements IRobot { */ public String getPropertyValue(Object graphicsComponent, String propertyName) throws RobotException { - String propertyValue = StringConstants.EMPTY; - Validate.notNull(graphicsComponent, "Tested component must not be null"); //$NON-NLS-1$ - try { - final Object prop = PropertyUtils.getProperty( - graphicsComponent, propertyName); - propertyValue = String.valueOf(prop); - } catch (IllegalAccessException e) { - throw new RobotException(e); - } catch (InvocationTargetException e) { - throw new RobotException(e); - } catch (NoSuchMethodException e) { - throw new RobotException(e); - } - - return propertyValue; + return PropertyUtil.getPropertyValue(graphicsComponent, propertyName); } /** {@inheritDoc} */ |