1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

2005-03-30 Alain Magloire

Delay the processing/parsing of the WorkingCopy when creating the workingcopy
	This should speed the opening  of the CEditor.
	PR 74182
	* model/org/eclipse/cdt/internal/core/model/CReateWorkingCipyOperation.java
This commit is contained in:
Alain Magloire 2005-03-30 20:53:36 +00:00
parent f25c314c0a
commit f6796023a4
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-03-30 Alain Magloire
Delay the processing/parsing of the WorkingCopy when creating the workingcopy
This should speed the opening of the CEditor.
PR 74182
* model/org/eclipse/cdt/internal/core/model/CReateWorkingCipyOperation.java
2005-03-30 Alain Magloire 2005-03-30 Alain Magloire
PR 88858 implementation. PR 88858 implementation.
* model/org/eclipse/cdt/core/model/CoreModel.java * model/org/eclipse/cdt/core/model/CoreModel.java

View file

@ -43,7 +43,9 @@ public class CreateWorkingCopyOperation extends CModelOperation {
WorkingCopy workingCopy = new WorkingCopy(tu.getParent(), (IFile)tu.getResource(), this.factory, this.problemRequestor); WorkingCopy workingCopy = new WorkingCopy(tu.getParent(), (IFile)tu.getResource(), this.factory, this.problemRequestor);
// open the working copy now to ensure contents are that of the current state of this element // open the working copy now to ensure contents are that of the current state of this element
workingCopy.open(this.fMonitor); // Alain: Actually no, delay the parsing 'till it is really needed. Doing the parsing here
// really slows down the opening of the CEditor.
//workingCopy.open(this.fMonitor);
if (this.perFactoryWorkingCopies != null) { if (this.perFactoryWorkingCopies != null) {
this.perFactoryWorkingCopies.put(tu, workingCopy); this.perFactoryWorkingCopies.put(tu, workingCopy);