01: package newprocess.diagram.providers;
02:
03: import org.eclipse.core.runtime.IAdaptable;
04: import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
05: import org.eclipse.gmf.runtime.common.core.service.IOperation;
06: import org.eclipse.gmf.runtime.common.ui.services.icon.GetIconOperation;
07: import org.eclipse.gmf.runtime.common.ui.services.icon.IIconProvider;
08: import org.eclipse.swt.graphics.Image;
09:
10: /**
11: * @generated
12: */
13: public class New_processIconProvider extends AbstractProvider implements
14: IIconProvider {
15:
16: /**
17: * @generated
18: */
19: public Image getIcon(IAdaptable hint, int flags) {
20: return New_processElementTypes.getImage(hint);
21: }
22:
23: /**
24: * @generated
25: */
26: public boolean provides(IOperation operation) {
27: if (operation instanceof GetIconOperation) {
28: return ((GetIconOperation) operation).execute(this ) != null;
29: }
30: return false;
31: }
32: }
|