com.rational.test.ft.domain.java.eclipse

Class EclipsePlatformProxy

  • All Implemented Interfaces:
    com.rational.test.ft.domain.IChannelObject, com.rational.test.ft.domain.IDataDriven, com.rational.test.ft.domain.IProxyBase, IPropertyFilter, com.rational.test.ft.object.interfaces.IGraphical


    public class EclipsePlatformProxy
    extends JavaGuiProxy
    • Constructor Detail

      • EclipsePlatformProxy

        public EclipsePlatformProxy(java.lang.Object theObjectInTheSUT)
    • Method Detail

      • getChildrenEnumeration

        public java.util.Enumeration getChildrenEnumeration()
        Description copied from class: JavaGuiProxy
        Return an enumeration of mappable proxies for the children of this object.
        Specified by:
        getChildrenEnumeration in class JavaGuiProxy
        Returns:
        The child proxies relative to this proxy.
      • getDescriptiveName

        public java.lang.String getDescriptiveName()
        Description copied from class: JavaGuiProxy
        Returns a name that can be used to describe the associated UI object in a script. This name may be further adjusted to become unique to the script, but it acts as the base for the name used in the script. Only characters used in Java identifiers should be returned (alphabetic, numeric, or underscore characters). Non-identifier characters cause script compilation failures. An example of what to return is "OKButton" for a java.awt.Button with the text "OK" on it.
        Specified by:
        getDescriptiveName in class JavaGuiProxy
        Returns:
        A descriptive object name.
      • getImmediateChildren

        public java.util.Enumeration getImmediateChildren()
        Description copied from class: JavaGuiProxy
        Return an enumeration of proxies for the immediate children of this object.
        Specified by:
        getImmediateChildren in class JavaGuiProxy
        Returns:
        The child proxies relative to this proxy.
      • getMappableParent

        public com.rational.test.ft.domain.ProxyTestObject getMappableParent()
        Description copied from class: JavaGuiProxy
        Returns a proxy object for the mappable parent of this object. Returns null if this object has no parent.
        Specified by:
        getMappableParent in class JavaGuiProxy
        Returns:
        The proxy for the parent test object or null for a top-level window.
      • getParent

        public com.rational.test.ft.domain.ProxyTestObject getParent()
        Description copied from class: JavaGuiProxy
        Returns a proxy object for the parent of this object. Returns null if this object has no parent.
        Specified by:
        getParent in class JavaGuiProxy
        Returns:
        The proxy for the parent test object or null for a top-level window.
      • getParentObject

        public java.lang.Object getParentObject()
        Description copied from class: JavaGuiProxy
        Returns an object for the parent of this object. Returns null if this object has no parent.
        Specified by:
        getParentObject in class JavaGuiProxy
        Returns:
        The parent test object or null for a top-level window.
      • getScreenRectangle

        public java.awt.Rectangle getScreenRectangle()
        Description copied from class: JavaGuiProxy
        Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. This commonly consists of two operations: (getLocationOnScreen and getSize) combined into a single operation.
        Specified by:
        getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphical
        Specified by:
        getScreenRectangle in class JavaGuiProxy
        Returns:
        The adjusted rectangle surrounding component relative to the screen.
      • hasFocus

        public boolean hasFocus()
        Description copied from class: JavaGuiProxy
        Check the component under evaluation to determine if it has keyboard focus.
        Specified by:
        hasFocus in interface com.rational.test.ft.object.interfaces.IGraphical
        Specified by:
        hasFocus in class JavaGuiProxy
        Returns:
        true if component has keyboard focus, else false.
      • isEnabled

        public boolean isEnabled()
        Description copied from class: JavaGuiProxy
        Check the component under evaluation to determine if it is enabled or disabled.
        Specified by:
        isEnabled in interface com.rational.test.ft.object.interfaces.IGraphical
        Specified by:
        isEnabled in class JavaGuiProxy
        Returns:
        true if component is enabled, else false.
      • isShowing

        public boolean isShowing()
        Description copied from class: JavaGuiProxy
        Check the component under evaluation to determine if it is showing (as opposed to hidden).
        Specified by:
        isShowing in interface com.rational.test.ft.object.interfaces.IGraphical
        Specified by:
        isShowing in class JavaGuiProxy
        Returns:
        true if component is showing, else false.
      • getTestObjectClassName

        public java.lang.String getTestObjectClassName()
        Description copied from class: JavaGuiProxy
        The default GUI test object classname is returned. More specific test objects are returned by more constrained proxy classes. This level of support is always required.
        Specified by:
        getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBase
        Overrides:
        getTestObjectClassName in class JavaGuiProxy
        Returns:
        The default test object class full name.
      • getChannel

        public com.rational.test.ft.domain.IChannel getChannel()
        Specified by:
        getChannel in interface com.rational.test.ft.domain.IChannelObject
        Overrides:
        getChannel in class com.rational.test.ft.domain.ProxyTestObject
      • openPerspective

        public void openPerspective(java.lang.String perspectiveId)
        Opens the perspective in the current eclipse shell
        Parameters:
        perspectiveId -
      • getEclipsePlatformUI

        public java.lang.Object getEclipsePlatformUI()
      • getCurrentPerspectiveID

        public java.lang.String getCurrentPerspectiveID()
        Return the current perspective ID
        Returns:
      • getActiveShell

        public org.eclipse.swt.widgets.Shell getActiveShell()
      • showView

        public void showView(java.lang.String viewId)
        Show the view for the corresponding id
        Parameters:
        viewId -