* Contributors:
* Christopher Lenz - initial API and implementation
*
- * $Id: XMLOutlinePage.java,v 1.2 2005-05-06 00:55:42 stefanbjarni Exp $
+ * $Id: XMLOutlinePage.java,v 1.3 2006-10-21 23:14:14 pombredanne Exp $
*/
package net.sourceforge.phpeclipse.xml.ui.internal.outline;
/**
* Constructor.
*
- * @param editor The associated text editor
+ * @param editor
+ * The associated text editor
*/
public XMLOutlinePage(XMLEditor editor) {
this.editor = editor;
TreeViewer viewer = getTreeViewer();
viewer.setContentProvider(new XMLOutlineContentProvider());
viewer.setLabelProvider(new DecoratingLabelProvider(
- new XMLOutlineLabelProvider(),
- new ProblemsLabelDecorator(editor)));
+ new XMLOutlineLabelProvider(), new ProblemsLabelDecorator(
+ editor)));
viewer.setInput(getDocument());
}
/**
* Selects a specific element in the outline page.
*
- * @param element the element to select
+ * @param element
+ * the element to select
*/
public void select(ISourceReference element) {
TreeViewer viewer = getTreeViewer();
if (viewer != null) {
ISelection selection = viewer.getSelection();
if (selection instanceof IStructuredSelection) {
- IStructuredSelection structuredSelection =
- (IStructuredSelection) selection;
+ IStructuredSelection structuredSelection = (IStructuredSelection) selection;
List elements = structuredSelection.toList();
if (!elements.contains(element)) {
if (element == null) {
// Private Methods ---------------------------------------------------------
/**
- * Returns the parsed model of the XML document that is loaded into the
+ * Returns the parsed model of the XML document that is loaded into the
* associated editor.
*
* @return the parsed XML document