mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Reverse part of a patch from TF concerning
memory images. We need to look at this closer. For now it seem to break some icons. * src/org/eclipse/cdt/internal/ui/CPluginImages.java
This commit is contained in:
parent
7a38ea6afb
commit
a677717aa3
2 changed files with 20 additions and 11 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-05-27 Alain Magloire
|
||||||
|
|
||||||
|
Reverse part of a patch from TF concerning
|
||||||
|
memory images. We need to look at this closer.
|
||||||
|
For now it seem to break some icons.
|
||||||
|
|
||||||
|
* src/org/eclipse/cdt/internal/ui/CPluginImages.java
|
||||||
|
|
||||||
2004-05-27 Alain Magloire
|
2004-05-27 Alain Magloire
|
||||||
|
|
||||||
Patch from Thomas Fletcher
|
Patch from Thomas Fletcher
|
||||||
|
|
|
@ -262,18 +262,19 @@ public class CPluginImages {
|
||||||
* Sets all available image descriptors for the given action.
|
* Sets all available image descriptors for the given action.
|
||||||
*/
|
*/
|
||||||
public static void setImageDescriptors(IAction action, String type, String relPath) {
|
public static void setImageDescriptors(IAction action, String type, String relPath) {
|
||||||
|
relPath= relPath.substring(NAME_PREFIX_LENGTH);
|
||||||
|
action.setDisabledImageDescriptor(create(T + "d" + type, relPath)); //$NON-NLS-1$
|
||||||
|
action.setHoverImageDescriptor(create(T + "c" + type, relPath)); //$NON-NLS-1$
|
||||||
|
action.setImageDescriptor(create(T + "e" + type, relPath)); //$NON-NLS-1$
|
||||||
|
|
||||||
|
// We are still not sure about this, let see TF results first.
|
||||||
// Use the managed version so that we ensure that there is no resource handle leaks
|
// Use the managed version so that we ensure that there is no resource handle leaks
|
||||||
// Let the widget itself manage the disabled/hover attribution. This was a huge leak
|
// Let the widget itself manage the disabled/hover attribution. This was a huge leak
|
||||||
// relPath= relPath.substring(NAME_PREFIX_LENGTH);
|
//ImageDescriptor desc = getImageRegistry().getDescriptor(relPath);
|
||||||
// action.setDisabledImageDescriptor(create(T + "d" + type, relPath)); //$NON-NLS-1$
|
//if(desc == null) {
|
||||||
// action.setHoverImageDescriptor(create(T + "c" + type, relPath)); //$NON-NLS-1$
|
// desc = createManaged(T + "c" + type, relPath);
|
||||||
// action.setImageDescriptor(create(T + "e" + type, relPath)); //$NON-NLS-1$
|
//}
|
||||||
|
//action.setImageDescriptor(desc);
|
||||||
ImageDescriptor desc = getImageRegistry().getDescriptor(relPath);
|
|
||||||
if(desc == null) {
|
|
||||||
desc = createManaged(T + "c" + type, relPath);
|
|
||||||
}
|
|
||||||
action.setImageDescriptor(desc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue