Commit b2ce706f authored by Andrey Filippov's avatar Andrey Filippov

Bug fix in icon iamge keys

parent 5794b520
......@@ -192,14 +192,14 @@ public class Tool extends Context implements Cloneable, Inheritable {
imageKeysActions[i]=null;
image = runfor.get(i).getIconName();
if (image != null) {
imageKeysActions[i] = ICON_ID_PREFIX + (new File(getExeName())).getName()+ICON_ID_ACTION+i;
// imageKeysActions[i] = ICON_ID_PREFIX + (new File(getExeName())).getName()+ICON_ID_ACTION+i;
imageKeysActions[i] = ICON_ID_PREFIX + name+ICON_ID_ACTION+i;
VDTPluginImages.addImage(image, imageKeysActions[i], null/*tool.getLaunchType()*/);
}
}
}
} // ToolUI()
public String getImageKey(int actionIndex) {
if (imageKeysActions==null) return null;
......
......@@ -619,9 +619,10 @@ public class DesignFlowView extends ViewPart implements ISelectionListener {
System.out.println("launchActions[i].getText()="+launchActions[i].getText());
}
String actionIconKey=tool.getImageKey(i);
if ((actionIconKey!=null) && (VDTPluginImages.getImageDescriptor(actionIconKey)!=null))
if ((actionIconKey!=null) && (VDTPluginImages.getImageDescriptor(actionIconKey)!=null)) {
launchActions[i].setImageDescriptor(VDTPluginImages.getImageDescriptor(actionIconKey));
else
// System.out.println(i+":"+actionIconKey+" - "+ VDTPluginImages.getImageDescriptor(actionIconKey));
}else
launchActions[i].setImageDescriptor(VDTPluginImages.DESC_RUN_TOOL);
if (i==0) { // set log play-back (always for default tool only)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment