Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Coulon2015-11-02 13:15:32 +0000
committerXavier Coulon2015-11-27 15:16:55 +0000
commit221656044c0164bfc3089679c95461470f34285c (patch)
tree821d7259fdb2e4f208285a73032330e25f44808c /containers/org.eclipse.linuxtools.docker.core/src/org/eclipse
parent2a62f691c4e789966751ce0a01475616c2ca4a1b (diff)
downloadorg.eclipse.linuxtools-221656044c0164bfc3089679c95461470f34285c.tar.gz
org.eclipse.linuxtools-221656044c0164bfc3089679c95461470f34285c.tar.xz
org.eclipse.linuxtools-221656044c0164bfc3089679c95461470f34285c.zip
Bug 481217 - Tag Image command in Docker Explorer is unbound
Fixed problems where Tag/Untag images would not be called from Docker Explorer view Refactored the "createControl(Composite)" methods in ImageRemoveTagPage and ImageTagPage classes to using GridLayoutFactory and GridDataFactory. As a result, the wizards consumes less vertical space. Change-Id: I9d525370b89f88f391f67a4f594ee33e997ff8c1 Signed-off-by: Xavier Coulon <xcoulon@redhat.com> Reviewed-on: https://git.eclipse.org/r/59468 Reviewed-by: Roland Grunberg <rgrunber@redhat.com> Tested-by: Hudson CI
Diffstat (limited to 'containers/org.eclipse.linuxtools.docker.core/src/org/eclipse')
-rw-r--r--containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnection.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnection.java b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnection.java
index 939b615b1c..4af2dee9e0 100644
--- a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnection.java
+++ b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/IDockerConnection.java
@@ -180,6 +180,18 @@ public interface IDockerConnection {
void pushImage(String name, IDockerProgressHandler handler) throws DockerException, InterruptedException;
+ /**
+ * Adds a tag to an existing image
+ *
+ * @param name
+ * the image id
+ * @param newTag
+ * the new tag to add to the given image
+ * @throws DockerException
+ * in case of underlying problem (server error)
+ * @throws InterruptedException
+ * if the thread was interrupted
+ */
void tagImage(String name, String newTag) throws DockerException, InterruptedException;
String buildImage(IPath path, IDockerProgressHandler handler)
@@ -263,6 +275,18 @@ public interface IDockerConnection {
void removeImage(String name) throws DockerException, InterruptedException;
+ /**
+ * Removes the tagged image
+ *
+ * @param tag
+ * the tagged image to remove. If the image has more tags they
+ * will be kept. If this is the only tag for the named image, it
+ * will be totally removed.
+ * @throws DockerException
+ * in case of underlying problem (server error)
+ * @throws InterruptedException
+ * if the thread was interrupted
+ */
void removeTag(String tag) throws DockerException, InterruptedException;

Back to the top