Ignore:
Timestamp:
04/11/07 06:38:36 (17 years ago)
Author:
adrpo
Message:
  • mdt 0.7.0 changes
  • fixed some bugs
  • debugging
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/ModelicaImages.java

    r482 r491  
    2020import org.modelica.mdt.core.IModelicaComponent;
    2121import org.modelica.mdt.core.IModelicaElement;
     22import org.modelica.mdt.core.IModelicaExtends;
     23import org.modelica.mdt.core.IModelicaImport;
    2224import org.modelica.mdt.core.IModelicaSourceFile;
    2325import org.modelica.mdt.core.IStandardLibrary;
     
    7274    public static final String IMG_WIZBAN_CLASS = "IMG_WIZBAN_CLASS";
    7375   
     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";       
    7478   
    7579    /*
     
    7781     */
    7882    private static final String T_OBJ= "obj16/";        //$NON-NLS-1$
    79     private static final String T_OVR= "ovr16/";        //$NON-NLS-1$
    8083    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$
    8384    private static final String T_ELCL= "elcl16/";  //$NON-NLS-1$
     85    private static final String T_ETOOL= "etool16/";    //$NON-NLS-1$   
    8486
    8587
     
    151153        declareRegistryImage(IMG_WIZBAN_PROJECT, T_WIZBAN + "project_wiz.gif");
    152154        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");     
    154157    }
    155158   
     
    235238        else if (element instanceof IModelicaComponent)
    236239        {
    237             switch (((IModelicaComponent)element).getVisbility())
     240            switch (((IModelicaComponent)element).getVisibility())
    238241            {
    239242            case PUBLIC:
     
    243246            }
    244247        }
     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        }
    245268        else if (element instanceof IModelicaSourceFile)
    246269        {
Note: See TracChangeset for help on using the changeset viewer.