1 11 12 package org.eclipse.jface.action; 13 14 import org.eclipse.swt.widgets.Composite; 15 import org.eclipse.swt.widgets.CoolBar; 16 import org.eclipse.swt.widgets.Menu; 17 import org.eclipse.swt.widgets.ToolBar; 18 19 39 public interface IContributionItem { 40 41 51 public void dispose(); 52 53 59 public void fill(Composite parent); 60 61 69 public void fill(Menu parent, int index); 70 71 79 public void fill(ToolBar parent, int index); 80 81 90 public void fill(CoolBar parent, int index); 91 92 99 public String getId(); 100 101 106 public boolean isEnabled(); 107 108 114 public boolean isDirty(); 115 116 123 public boolean isDynamic(); 124 125 136 public boolean isGroupMarker(); 137 138 146 public boolean isSeparator(); 147 148 154 public boolean isVisible(); 155 156 162 public void saveWidgetState(); 163 164 170 public void setParent(IContributionManager parent); 171 172 178 public void setVisible(boolean visible); 179 180 185 public void update(); 186 187 194 public void update(String id); 195 } 196 | Popular Tags |