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:
parent
f25c314c0a
commit
f6796023a4
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
PR 88858 implementation.
|
||||
* model/org/eclipse/cdt/core/model/CoreModel.java
|
||||
|
|
|
@ -43,7 +43,9 @@ public class CreateWorkingCopyOperation extends CModelOperation {
|
|||
|
||||
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
|
||||
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) {
|
||||
this.perFactoryWorkingCopies.put(tu, workingCopy);
|
||||
|
|
Loading…
Add table
Reference in a new issue