Ignore:
Timestamp:
11/04/05 16:09:30 (19 years ago)
Author:
boris
Message:
  • implemented the backend part for tree view browsing of file system based modelica packages
  • regressions test added for testing hierarchy of file system based packages
  • some API changes
  • general cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt/src/org/modelica/mdt/internal/omcproxy/OMCProxy.java

    r118 r120  
    2323    private static boolean hasInitialized = false;
    2424
    25     /* Reads in the OMC object reference from a file on disk. */
     25    /**
     26     * Reads in the OMC object reference from a file on disk.
     27     */
    2628    private static String readObjectFromFile() throws InitializationException
    2729    {
     
    7880    }
    7981   
    80     /* Start a new OMC server. */
     82    /**
     83     * Start a new OMC server.
     84     *
     85     *  @throws InitializationException
     86     */
    8187    private static void startServer() throws InitializationException
    8288    {
    8389        String pathToOmc = null;
    8490
    85         /* Path to omc (or omc.exe) can be found in the OPENMODELICAHOME
    86          * variable. */
     91        /*
     92         * Path to omc (or omc.exe) can be found in the OPENMODELICAHOME
     93         * variable.
     94         */
    8795        String omHome = System.getenv("OPENMODELICAHOME");
    8896        if(omHome == null)
     
    101109        }
    102110
    103         /* Delete old object reference file. We need to do this because we're
     111        /*
     112         * Delete old object reference file. We need to do this because we're
    104113         * checking if the file exists to determine if the server has started
    105          * or not (further down). */
     114         * or not (further down).
     115         */
    106116        File f = new File(getPathToObject());
    107117        if(f.exists())
     
    140150        }
    141151
    142         /* Wait until the object exists on disk, but if it takes longer than
    143          * 5 seconds, abort. (Very arbitrary 5 seconds..) */
     152        /*
     153         * Wait until the object exists on disk, but if it takes longer than
     154         * 5 seconds, abort. (Very arbitrary 5 seconds..)
     155         */
    144156        int ticks = 0;
    145157        while(!f.exists())
     
    164176    }
    165177   
    166     /* Initializes an ORB, converts the stringified OMC object to a real
     178    /**
     179     * Initializes an ORB, converts the stringified OMC object to a real
    167180     * CORBA object, and then narrows that object to an OmcCommunication
    168      * object. */
     181     * object.
     182     */
    169183    private static void setupOmcc(String stringifiedObjectReference)
    170184        throws InitializationException
     
    184198    }
    185199   
    186     /* Returns the name of the operating system. If an unknown os is found,
    187      * the default is Linux. */
     200    /**
     201     * @return the name of the operating system. If an unknown os is found,
     202     * the default is Linux.
     203     */
    188204    private static String getOs()
    189205    {
     
    257273    }
    258274   
    259     /* Send expression to OMC. If communication is not initialized, it
     275    /**
     276     * Send expression to OMC. If communication is not initialized, it
    260277     * is initialized here. After initialization it loads the Modelica
    261      * Standard Library. */
     278     * Standard Library.
     279     */
    262280    private static String sendExpression(String exp) throws InitializationException
    263281    {
Note: See TracChangeset for help on using the changeset viewer.