diff options
author | Alexander Kurtakov | 2017-11-10 10:29:12 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-11-10 11:30:32 +0000 |
commit | 50c34d24af6e572f4b54479eafd88bb81b92d6b9 (patch) | |
tree | d7804cc4e38f310a17f60465c530457d9615ea0a /containers/org.eclipse.linuxtools.docker.reddeer | |
parent | 401795ae22ad74f21ccbe0984df7f720c1c7caad (diff) | |
download | org.eclipse.linuxtools-50c34d24af6e572f4b54479eafd88bb81b92d6b9.tar.gz org.eclipse.linuxtools-50c34d24af6e572f4b54479eafd88bb81b92d6b9.tar.xz org.eclipse.linuxtools-50c34d24af6e572f4b54479eafd88bb81b92d6b9.zip |
containers: Remove AbstractPerspective test binding.
Use RedDeer one directly.
Change-Id: I18c7ed3c1b23a6a3ee226a43783fc9be5ace4bc7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/111371
Tested-by: Hudson CI
Diffstat (limited to 'containers/org.eclipse.linuxtools.docker.reddeer')
2 files changed, 2 insertions, 61 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/AbstractPerspective.java b/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/AbstractPerspective.java deleted file mode 100644 index 60bf0d9b30..0000000000 --- a/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/AbstractPerspective.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016, 2017 Red Hat, Inc. - * Distributed under license by Red Hat, Inc. All rights reserved. - * This program is made available under the terms of the - * Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Red Hat, Inc. - initial API and implementation - ******************************************************************************/ -package org.eclipse.linuxtools.docker.reddeer.perspective; - -import org.eclipse.reddeer.core.exception.CoreLayerException; -import org.eclipse.reddeer.swt.impl.button.PushButton; -import org.eclipse.reddeer.swt.impl.shell.DefaultShell; -import org.eclipse.reddeer.swt.impl.table.DefaultTable; -import org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem; - -/** - * Abstract parent for each Perspective implementation - * - * @author vlado pakan - * - */ -public abstract class AbstractPerspective extends org.eclipse.reddeer.eclipse.ui.perspectives.AbstractPerspective { - - /** - * Constructs the perspective with a given label. - * - * @param perspectiveLabel Perspective label - */ - public AbstractPerspective(String perspectiveLabel) { - super(perspectiveLabel); - } - - /** - * Opens the perspective. - */ - @Override - public void open() { - log.info("Open perspective: '" + getPerspectiveLabel() + "'"); - if (isOpened()){ - log.debug("Perspective '" + getPerspectiveLabel() + "' is already opened."); - } - else{ - log.debug("Tryyying to open perspective: '" + getPerspectiveLabel() + "'"); - new DefaultToolItem(new DefaultShell(),"Open Perspective").click(); - new DefaultShell("Open Perspective"); - DefaultTable table = new DefaultTable(); - try{ - // Try to select perspective label within available perspectives - table.select(getPerspectiveLabel()); - } catch (CoreLayerException swtLayerException){ - // Try to select perspective label within available perspectives with "(default)" suffix - table.select(getPerspectiveLabel() + " (default)"); - } - new PushButton("Open").click(); - } - } - -} diff --git a/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/DockerPerspective.java b/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/DockerPerspective.java index bfe8669504..4dc0344203 100644 --- a/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/DockerPerspective.java +++ b/containers/org.eclipse.linuxtools.docker.reddeer/src/org/eclipse/linuxtools/docker/reddeer/perspective/DockerPerspective.java @@ -11,6 +11,8 @@ package org.eclipse.linuxtools.docker.reddeer.perspective; +import org.eclipse.reddeer.eclipse.ui.perspectives.AbstractPerspective; + /** * * @author jkopriva@redhat.com |