[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Label/Content Provider for XML Editor's content outline?


The outline's not showing attribute nodes in the tree, it is instead including specific attribute names and values in the *label* for elements. You're not missing any functionality by the sounds of it, but if you want Attr Nodes to be their own tree items, you'll have to extend or reuse the content provider in your own outline configuration class (subclassing the XMLContentOutlineConfiguration). Then you can assign that outline configuration class to be used with your editor part ID or content type ID as the target:

	<extension point="org.eclipse.wst.sse.ui.editorConfiguration">
		<contentOutlineConfiguration
			class="MuneerContentOutlineConfiguration"
			target="muneer" />
	</extension>

--
Nitin Dahyabhai
Structured Source Editing


Thanks so much!

I looked at the AttributeShowingLabelProvider in the XMLConfiguration class and in my own code, ended up taking the attribute nodes out of each element node.