Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vdt-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
vdt-plugin
Commits
b2ce706f
Commit
b2ce706f
authored
Feb 10, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in icon iamge keys
parent
5794b520
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Tool.java
src/com/elphel/vdt/core/tools/params/Tool.java
+2
-2
DesignFlowView.java
src/com/elphel/vdt/ui/views/DesignFlowView.java
+3
-2
No files found.
src/com/elphel/vdt/core/tools/params/Tool.java
View file @
b2ce706f
...
...
@@ -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
;
...
...
src/com/elphel/vdt/ui/views/DesignFlowView.java
View file @
b2ce706f
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment