- Timestamp:
- 11/09/05 17:43:12 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt/src/org/modelica/mdt/ui/ModelicaNature.java
r89 r130 2 2 * This file is part of Modelica Development Tooling. 3 3 * 4 * Copyright (c) 2005, Link öpings universitet, Department of4 * Copyright (c) 2005, Link�pings universitet, Department of 5 5 * Computer and Information Science, PELAB 6 6 * … … 23 23 * distribution. 24 24 * 25 * * Neither the name of Link öpings universitet nor the names of its25 * * Neither the name of Link�pings universitet nor the names of its 26 26 * contributors may be used to endorse or promote products derived from 27 27 * this software without specific prior written permission. … … 45 45 import org.eclipse.core.resources.IProjectNature; 46 46 import org.eclipse.core.runtime.CoreException; 47 import org.eclipse.core.runtime.IProgressMonitor; 48 import org.eclipse.core.runtime.IStatus; 49 import org.eclipse.core.runtime.Status; 50 import org.eclipse.core.runtime.jobs.Job; 51 import org.modelica.mdt.builder.ModelicaBuilder; 47 52 48 53 public class ModelicaNature implements IProjectNature … … 52 57 public void configure() throws CoreException 53 58 { 59 // TODO Install builder here 60 ModelicaBuilder.addBuilderToProject(project); 61 62 new Job("Modelica Build") 63 { 64 protected IStatus run(IProgressMonitor monitor) 65 { 66 try 67 { 68 project.build(ModelicaBuilder.FULL_BUILD, 69 ModelicaBuilder.BUILDER_ID, 70 null, 71 monitor); 72 } 73 catch(CoreException e) 74 { 75 76 } 77 return Status.OK_STATUS; 78 } 79 }.schedule(); 54 80 } 55 81 56 82 public void deconfigure() throws CoreException 57 83 { 84 ModelicaBuilder.removeBuilderFromProject(project); 85 // ModelicaBuilder.deleteBuildMarkers(project); 58 86 } 59 87
Note: See TracChangeset
for help on using the changeset viewer.