[Nice-commit] eclipse/src/nice/eclipse/core NiceProject.nice,1.1,1.2 _core.nice,1.1,1.2
Brought to you by:
bonniot
From: <ag...@us...> - 2003-08-06 12:28:42
|
Update of /cvsroot/nice/eclipse/src/nice/eclipse/core In directory sc8-pr-cvs1:/tmp/cvs-serv9607/src/nice/eclipse/core Modified Files: NiceProject.nice _core.nice Log Message: minor changes Index: NiceProject.nice =================================================================== RCS file: /cvsroot/nice/eclipse/src/nice/eclipse/core/NiceProject.nice,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NiceProject.nice 1 Aug 2003 20:09:42 -0000 1.1 --- NiceProject.nice 6 Aug 2003 12:28:39 -0000 1.2 *************** *** 26,30 **** } ! deconfigure() {} getProject() = project; --- 26,32 ---- } ! deconfigure() { ! this.removeFromBuildSpec(NICE_BUILDER_ID); ! } getProject() = project; *************** *** 48,51 **** --- 50,82 ---- } } + + + + + void removeFromBuildSpec(String builderID) { + throw new Exception("not implemented yet"); + /* + IProjectDescription description = getProject().getDescription(); + ICommand[] commands = description.getBuildSpec(); + for (int i = 0; i < commands.length; ++i) { + if (commands[i].getBuilderName().equals(builderID)) { + ICommand[] newCommands = new ICommand[commands.length - 1]; + System.arraycopy(commands, 0, newCommands, 0, i); + System.arraycopy( + commands, + i + 1, + newCommands, + i, + commands.length - i - 1); + description.setBuildSpec(newCommands); + getProject().setDescription(description, null); + return; + } + } + + */ + } + + Index: _core.nice =================================================================== RCS file: /cvsroot/nice/eclipse/src/nice/eclipse/core/_core.nice,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** _core.nice 1 Aug 2003 20:09:42 -0000 1.1 --- _core.nice 6 Aug 2003 12:28:39 -0000 1.2 *************** *** 27,30 **** --- 27,31 ---- // force to compile + import nice.eclipse.ui; import nice.eclipse.ui.wizards; import nice.eclipse.ui.views; |