Ignore:
Timestamp:
10/21/05 11:42:57 (19 years ago)
Author:
boris
Message:
  • class types are now displayed with name and icon
File:
1 edited

Legend:

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

    r67 r84  
    6464    private static final String PROJECT_NAME = "TestModelicaRoot";
    6565    private static final String PROJECT_NAME2 = "TestModelicaRoot2";
    66     private static final String PROJECT_NAME3 = "TestModelicaRoot3wee";
     66    private static final String PROJECT_NAME3 = "TestModelicaRoot3Closed";
    6767
    6868    @Override
     
    8787       
    8888        /*
    89          * create a regular projects
     89         * create a regular projects which remains closed
    9090         */
    9191        project = workspaceRoot.getProject(PROJECT_NAME3);
    9292        project.create(null);
    93         project.open(null);
    94 
    9593
    9694    }
     
    109107                if (p instanceof IModelicaProject)
    110108                {
    111                     assertTrue("project without modelica nature wrapped",
     109                    if (((IModelicaProject)p).getProject().isOpen())
     110                    {
     111                        assertTrue("project without modelica nature wrapped",
    112112                            ((IModelicaProject)p).getProject().hasNature(MdtPlugin.MODELICA_NATURE));
    113                     System.out.println("vanilla");
     113                    }
    114114                }
    115115                else if (p instanceof IProject)
    116116                {
    117                     assertFalse("project with modelica nature not wrapped",
     117                    if (((IProject)p).isOpen())
     118                    {
     119                        assertFalse("project with modelica nature not wrapped",
    118120                            ((IProject)p).hasNature(MdtPlugin.MODELICA_NATURE));
    119                     System.out.println("modelica");
     121                    }
    120122                }
    121123                else
     
    123125                    fail("unexpected type of project");
    124126                }
    125                 System.out.println(p + " £ " + p.getClass().getName());
    126127            }
    127128        }
    128129        catch (CoreException e)
    129130        {
    130             fail("could not get projects list");
     131            fail("could not get projects list, exception thrown:" + e);
    131132        }
    132133    }
Note: See TracChangeset for help on using the changeset viewer.