Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Different version of ProjectionDocument or other idea
Different version of ProjectionDocument or other idea [message #390601] Thu, 30 July 2009 01:17
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
I am working on improving an editor that already does many functions
like syntax coloring, outline, completion and code folding.

But one issue is that this language support a file inclusion mechanism
just like the C-type #include <includefile>

I want in the background to create a document that represents the fully
expanded version of my editor file, so that I can extend the outline,
code completion and link to include those included sections.

At first glance I thought that I could create a master document that
represents the fully expanded set, probably with each originating part
of the whole being part of its own slave document.

The user would then interact only with the slave document representing
the "main file", and the parsing for analysis and supporting functions
would be performed on the underlying master document.

But, I am realizing that the current ProjectionDocumentManager and its
ProjectionDocument seem to always assume that the textstore is
maintained and managed by the master document and not the other way
around. So a projection is an extract from a master, but a master is not
is not a composition from projections, except that that pattern is
probably supported by the ISlaveDocument interface.

As anybody done something similar? Modified ProjectionDocument to have
their text store, or anything else that I might be missing here.

Thanks
Alain
Previous Topic:Text is mirrorwed and unreadable in bidi mode when using ImageHyperLink class
Next Topic:Open resource in Project Explorer
Goto Forum:
  


Current Time: Sat Apr 27 03:51:22 GMT 2024

Powered by FUDForum. Page generated in 0.02838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top