Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Honnen2019-02-20 06:48:35 -0500
committerJulian Honnen2019-02-20 06:58:07 -0500
commit5cd00dea0b2639f1fd0b054482e73f559f807847 (patch)
treeabdda6345cf3a7ac9a36b11fb3b6458b77cbe804
parentc06dd9982b13af77221de77d68c92de21e6646f5 (diff)
downloadrt.equinox.p2-5cd00dea0b2639f1fd0b054482e73f559f807847.tar.gz
rt.equinox.p2-5cd00dea0b2639f1fd0b054482e73f559f807847.tar.xz
rt.equinox.p2-5cd00dea0b2639f1fd0b054482e73f559f807847.zip
Change-Id: Ia9f5b32b6d1ffa8a641fac7d71cd3b89a4e3119c Signed-off-by: Julian Honnen <julian.honnen@vector.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit.pngbin0 -> 595 bytes
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit@2x.pngbin0 -> 1266 bytes
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIActivator.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIImages.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/CopyPopup.java8
5 files changed, 4 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit.png b/bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit.png
new file mode 100644
index 000000000..41efe451e
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit.png
Binary files differ
diff --git a/bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit@2x.png b/bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit@2x.png
new file mode 100644
index 000000000..29c26ab81
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.ui/icons/obj/copy_edit@2x.png
Binary files differ
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIActivator.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIActivator.java
index 768103efd..104276e4f 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIActivator.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIActivator.java
@@ -103,6 +103,7 @@ public class ProvUIActivator extends AbstractUIPlugin {
createImageDescriptor(ProvUIImages.IMG_REMOVED, reg);
createImageDescriptor(ProvUIImages.IMG_CHANGED, reg);
createImageDescriptor(ProvUIImages.IMG_NOTADDED, reg);
+ createImageDescriptor(ProvUIImages.IMG_COPY, reg);
createImageDescriptor(ProvUIImages.WIZARD_BANNER_INSTALL, reg);
createImageDescriptor(ProvUIImages.WIZARD_BANNER_REVERT, reg);
createImageDescriptor(ProvUIImages.WIZARD_BANNER_UNINSTALL, reg);
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIImages.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIImages.java
index 14af1312a..a60edbaa5 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIImages.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvUIImages.java
@@ -57,6 +57,7 @@ public class ProvUIImages {
public final static String IMG_PROFILE = "obj/profile_obj.png"; //$NON-NLS-1$
public final static String IMG_CATEGORY = "obj/category_obj.png"; //$NON-NLS-1$
public final static String IMG_INFO = "obj/iu_info.png"; //$NON-NLS-1$
+ public final static String IMG_COPY = "obj/copy_edit.png"; //$NON-NLS-1$
// wizard graphics
public final static String WIZARD_BANNER_INSTALL = "wizban/install_wiz.png"; //$NON-NLS-1$
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/CopyPopup.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/CopyPopup.java
index 67c64c03a..21ab9b268 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/CopyPopup.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/CopyPopup.java
@@ -14,6 +14,7 @@
package org.eclipse.equinox.internal.p2.ui.dialogs;
+import org.eclipse.equinox.internal.p2.ui.ProvUIImages;
import org.eclipse.equinox.p2.ui.ICopyable;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.SWT;
@@ -31,18 +32,13 @@ public class CopyPopup {
this.control = control;
Menu copyMenu = new Menu(control);
MenuItem copyItem = new MenuItem(copyMenu, SWT.NONE);
+ copyItem.setImage(ProvUIImages.getImage(ProvUIImages.IMG_COPY));
copyItem.addSelectionListener(new SelectionListener() {
- /*
- * @see SelectionListener.widgetSelected (SelectionEvent)
- */
@Override
public void widgetSelected(SelectionEvent e) {
copySource.copyToClipboard(control);
}
- /*
- * @see SelectionListener.widgetDefaultSelected(SelectionEvent)
- */
@Override
public void widgetDefaultSelected(SelectionEvent e) {
copySource.copyToClipboard(control);

Back to the top