[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-dev] outline view
|
The Outline view can get its input where appropriate e.g. from a document
or an existing model. In order to be populated your editor needs to
implement the following:
/*
* @see AbstractTextEditor#getAdapter(Class)
*/
public Object getAdapter(Class required) {
if (IContentOutlinePage.class.equals(required)) {
if (fOutlinePage == null)
fOutlinePage= createOutlinePage();
return fOutlinePage;
}
... // more stuff can go here
}
Note: The correct place to ask is eclipse.platform newsgroup.
HTH
Dani
Torsten Curdt
<tcurdt@managesof
t.com> To
Sent by: platform-dev@xxxxxxxxxxx
platform-dev-admi cc
n@xxxxxxxxxxx
Subject
[platform-dev] outline view
08.09.2004 10:13
Please respond to
platform-dev@ecli
pse.org
Hi,
I'd like to implement something like the outline view
for ant files but for XML files of a different type.
(if you open an ant build.xml file the outline view
shows a tree with information like build targets etc)
AFAIU providing this structured overview data to the
view is done by the editor. But I cannot yet see how
this is done.
If someone could tell the class name (and the
repository) where e.g. this build.xml outline
view is being constructed - that would be great.
It probably would answer all my questions.
But of course any other links are welcome, too
Hope this was the appropriate place to ask such
a question. If not - please tell me where I should
ask instead.
cheers
--
Torsten
_______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-dev