1 11 package org.eclipse.ui.internal.commands; 12 13 import java.net.URL ; 14 15 import org.eclipse.jface.resource.ImageDescriptor; 16 import org.eclipse.ui.services.IDisposable; 17 18 54 public interface ICommandImageService extends IDisposable { 55 56 59 public static final int TYPE_DEFAULT = ICommandImageService.TYPE_DEFAULT; 60 61 64 public static final int TYPE_DISABLED = ICommandImageService.TYPE_DISABLED; 65 66 70 public static final int TYPE_HOVER = ICommandImageService.TYPE_HOVER; 71 72 87 public void bind(String commandId, int type, String style, 88 ImageDescriptor descriptor); 89 90 104 public void bind(String commandId, int type, String style, URL url); 105 106 116 public String generateUnusedStyle(String commandId); 117 118 127 public ImageDescriptor getImageDescriptor(String commandId); 128 129 142 public ImageDescriptor getImageDescriptor(String commandId, int type); 143 144 158 public ImageDescriptor getImageDescriptor(String commandId, int type, 159 String style); 160 161 172 public ImageDescriptor getImageDescriptor(String commandId, String style); 173 174 183 public void readRegistry(); 184 } 185 | Popular Tags |