Skip to content
Snippets Groups Projects
Commit 9ff6797c authored by Klaus Becker's avatar Klaus Becker
Browse files

No commit message

No commit message
parent c44b1bf7
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ package org.fortiss.tooling.base.ui.utils;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.junit.Assert;
/**
* Utility methods for handling JFace {@link Action}s.
......@@ -26,7 +27,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 2CF844E52ABEFC0EF8EF0A639EA10D5F
* @ConQAT.Rating YELLOW Hash: C8DACEDA16494E5C0312EFC88604471D
*/
public class ActionUtils {
......@@ -49,6 +50,10 @@ public class ActionUtils {
action.setText(name);
action.setToolTipText(toolTip);
action.setEnabled(true);
Assert.assertNotNull(icon);
Assert.assertNotNull(disabledIcon);
action.setImageDescriptor(icon);
action.setDisabledImageDescriptor(disabledIcon);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment