mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +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
|
||||
|
||||
Patch from Thomas Fletcher
|
||||
|
|
|
@ -262,18 +262,19 @@ public class CPluginImages {
|
|||
* Sets all available image descriptors for the given action.
|
||||
*/
|
||||
public static void setImageDescriptors(IAction action, String type, String relPath) {
|
||||
//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
|
||||
// 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$
|
||||
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$
|
||||
|
||||
ImageDescriptor desc = getImageRegistry().getDescriptor(relPath);
|
||||
if(desc == null) {
|
||||
desc = createManaged(T + "c" + type, relPath);
|
||||
}
|
||||
action.setImageDescriptor(desc);
|
||||
// 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
|
||||
// Let the widget itself manage the disabled/hover attribution. This was a huge leak
|
||||
//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