Open GoogleCodeExporter opened 8 years ago
look here for a solution:
http://stackoverflow.com/questions/455210/eclipse-editor-plugin-error-when-openi
ng-file-outside-project
Original comment by a.wo...@gmail.com
on 10 Aug 2009 at 5:40
even simpler, I guess (untested) replacing your VelocityDocumentProvider class
with
the following code fragment would solve this issue:
public class VelocityDocumentProvider extends TextFileDocumentProvider
{
@Override
public void connect(Object element) throws CoreException {
super.connect(element);
IDocument document = getDocument(element);
if (document != null) {
if (document.getDocumentPartitioner() == null) {
IDocumentPartitioner partitioner = new FastPartitioner(new
VelocityPartitionScanner(), VelocityPartitionScanner.TYPES);
partitioner.connect(document);
document.setDocumentPartitioner(partitioner);
}
}
}
}
Original comment by a.wo...@gmail.com
on 10 Aug 2009 at 7:38
Original issue reported on code.google.com by
byron.foster@gmail.com
on 31 Mar 2009 at 2:34