Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Erven2018-07-13 09:28:40 -0400
committerHannes Erven2018-07-13 09:28:40 -0400
commitecb077e2d37a9f65451ce206cd105ddd68a21faa (patch)
tree82cdd9000e2367bf3a06818f38efa2ed01338830
parentee6400126bb2887189ebdf6a452b7b2d6fb3ca70 (diff)
downloadorg.eclipse.libra-ecb077e2d37a9f65451ce206cd105ddd68a21faa.tar.gz
org.eclipse.libra-ecb077e2d37a9f65451ce206cd105ddd68a21faa.tar.xz
org.eclipse.libra-ecb077e2d37a9f65451ce206cd105ddd68a21faa.zip
[537002] use public API to retrieve "refresh" imageoxygen
-rw-r--r--plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationMasterPart.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationMasterPart.java b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationMasterPart.java
index 0fc4842..6feee5a 100644
--- a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationMasterPart.java
+++ b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationMasterPart.java
@@ -62,10 +62,11 @@ import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
+import org.eclipse.ui.IWorkbenchCommandConstants;
+import org.eclipse.ui.commands.ICommandImageService;
import org.eclipse.ui.forms.SectionPart;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
-import org.eclipse.ui.internal.browser.ImageResource;
import org.eclipse.ui.internal.ide.StringMatcher;
@@ -309,7 +310,8 @@ public class BundleInformationMasterPart extends SectionPart {
}
});
- toolBarManager.add(new Action("Refresh", ImageResource.getImageDescriptor(ImageResource.IMG_ELCL_NAV_REFRESH)) {
+ final ICommandImageService service = this.masterDetailsBlock.getEditorPage().getSite().getWorkbenchWindow().getService(ICommandImageService.class);
+ toolBarManager.add(new Action("Refresh", service.getImageDescriptor(IWorkbenchCommandConstants.FILE_REFRESH)) {
@Override
public void run() {

Back to the top