- Timestamp:
- 04/11/07 06:38:36 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/ModelicaImages.java
r482 r491 20 20 import org.modelica.mdt.core.IModelicaComponent; 21 21 import org.modelica.mdt.core.IModelicaElement; 22 import org.modelica.mdt.core.IModelicaExtends; 23 import org.modelica.mdt.core.IModelicaImport; 22 24 import org.modelica.mdt.core.IModelicaSourceFile; 23 25 import org.modelica.mdt.core.IStandardLibrary; … … 72 74 public static final String IMG_WIZBAN_CLASS = "IMG_WIZBAN_CLASS"; 73 75 76 public static final String IMG_MDT_STATUS_ONLINE = "IMG_MDT_STATUS_ONLINE"; 77 public static final String IMG_MDT_STATUS_OFFLINE = "IMG_MDT_STATUS_OFFLINE"; 74 78 75 79 /* … … 77 81 */ 78 82 private static final String T_OBJ= "obj16/"; //$NON-NLS-1$ 79 private static final String T_OVR= "ovr16/"; //$NON-NLS-1$80 83 private static final String T_WIZBAN= "wizban/"; //$NON-NLS-1$ 81 // private static final String T_EVIEW= "eview16/"; //$NON-NLS-1$82 // private static final String T_DLCL= "dtool16/"; //$NON-NLS-1$83 84 private static final String T_ELCL= "elcl16/"; //$NON-NLS-1$ 85 private static final String T_ETOOL= "etool16/"; //$NON-NLS-1$ 84 86 85 87 … … 151 153 declareRegistryImage(IMG_WIZBAN_PROJECT, T_WIZBAN + "project_wiz.gif"); 152 154 declareRegistryImage(IMG_WIZBAN_CLASS, T_WIZBAN + "class_wiz.gif"); 153 155 declareRegistryImage(IMG_MDT_STATUS_ONLINE, T_ETOOL + "mdt_online.gif"); 156 declareRegistryImage(IMG_MDT_STATUS_OFFLINE, T_ETOOL + "mdt_offline.gif"); 154 157 } 155 158 … … 235 238 else if (element instanceof IModelicaComponent) 236 239 { 237 switch (((IModelicaComponent)element).getVis bility())240 switch (((IModelicaComponent)element).getVisibility()) 238 241 { 239 242 case PUBLIC: … … 243 246 } 244 247 } 248 else if (element instanceof IModelicaImport) 249 { 250 switch (((IModelicaImport)element).getVisibility()) 251 { 252 case PUBLIC: 253 return ModelicaImages.IMG_OBJS_PUBLIC_COMPONENT; 254 case PROTECTED: 255 return ModelicaImages.IMG_OBJS_PROTECTED_COMPONENT; 256 } 257 } 258 else if (element instanceof IModelicaExtends) 259 { 260 switch (((IModelicaExtends)element).getVisibility()) 261 { 262 case PUBLIC: 263 return ModelicaImages.IMG_OBJS_PUBLIC_COMPONENT; 264 case PROTECTED: 265 return ModelicaImages.IMG_OBJS_PROTECTED_COMPONENT; 266 } 267 } 245 268 else if (element instanceof IModelicaSourceFile) 246 269 {
Note: See TracChangeset
for help on using the changeset viewer.