Ignore:
Timestamp:
02/03/06 17:17:47 (19 years ago)
Author:
boris
Message:
  • added a 'parent package' field to new package dialog and implemented infrastructure to be animate it among others:
  • IModelicaProject.getPackageRoots() method to fetch all top level package in a project
  • IModelicaProject.getPackage() method to fetch a package by its full name
  • IModelicaProject.findElement() method to fetch project's elements by path
  • modelica source files are now wraped by IModelicaSourceFile
  • plain files are now wraped by IModelicaFile inside a modelica project
  • an abstract wizard page superclass NewTypePage? added wich implemets source and parent package fields which are used in createing new classes/packages
  • some other stuff i forgot about, this kinda got out of hand, smaller commits in the future !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestModelicaElement.java

    r212 r288  
    22 * This file is part of Modelica Development Tooling.
    33 *
    4  * Copyright (c) 2005, Linköpings universitet, Department of
     4 * Copyright (c) 2005, Linkpings universitet, Department of
    55 * Computer and Information Science, PELAB
    66 *
     
    2323 *   distribution.
    2424 *
    25  * * Neither the name of Linköpings universitet nor the names of its
     25 * * Neither the name of Linkpings universitet nor the names of its
    2626 *   contributors may be used to endorse or promote products derived from
    2727 *   this software without specific prior written permission.
     
    4242package org.modelica.mdt.test;
    4343
    44 import org.modelica.mdt.internal.core.ModelicaElement;
     44import org.modelica.mdt.core.ModelicaCore;
    4545
    4646import junit.framework.TestCase;
     
    5353                                     "'abc'", "'\\\\'", "'!323%%\"'",
    5454                                     "'!\"#$%&\\'()*+,-./:;<=>?@[\\\\]^_`{|}~'"};
    55         String[] illegalIdentifiers = {"012a", "åäö", "'\\'", "'''", "'\n'"};
     55        String[] illegalIdentifiers = {"012a", "åäö", "'\\'", "'''", "'\n'"};
    5656        for(String s: legalIdentifiers)
    5757        {
    5858            assertTrue("Legal identifier rejected ("+s+")",
    59                     ModelicaElement.isLegalIdentifierName(s));
     59                    ModelicaCore.isLegalIdentifierName(s));
    6060        }
    6161        for(String s: illegalIdentifiers)
    6262        {
    6363            assertFalse("Illegal identifier accepted ("+s+")",
    64                     ModelicaElement.isLegalIdentifierName(s));
     64                    ModelicaCore.isLegalIdentifierName(s));
    6565        }
    6666    }
Note: See TracChangeset for help on using the changeset viewer.