| Summary: | [api] Add API to get non-primary working copy from IStorageEditorInput | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Jeff Johnston <jjohnstn> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P5 | CC: | daniel_megert, remy.suen |
| Version: | 3.7 | Keywords: | api |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Jeff Johnston
Note that there is already enough API to achieve this (though a bit more code would be needed, see org.eclipse.jdt.core.WorkingCopyOwner.newWorkingCopy(String, IClasspathEntry[], IProgressMonitor). (In reply to comment #1) > Note that there is already enough API to achieve this (though a bit more code > would be needed, see > org.eclipse.jdt.core.WorkingCopyOwner.newWorkingCopy(String, IClasspathEntry[], > IProgressMonitor). So to use this I would have to first create a temporary file using the storage contents or did you have something else in mind? Take a look at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFakeCompiltationUnit(IStorageEditorInput, boolean). Closing this off the books. |