Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2015-09-09 16:00:48 -0400
committerFlorian Thienel2015-09-09 16:00:48 -0400
commitff9a15d41968462976516f1cf5bbc3fb37a0fc90 (patch)
tree2b4ca41a9203213811b76eb0da7e31cc578afd7a /org.eclipse.vex.xhtml/src/org/eclipse
parenta44276000440b9096aabaabd862e1d01addda23a (diff)
downloadorg.eclipse.mylyn.docs.vex-ff9a15d41968462976516f1cf5bbc3fb37a0fc90.tar.gz
org.eclipse.mylyn.docs.vex-ff9a15d41968462976516f1cf5bbc3fb37a0fc90.tar.xz
org.eclipse.mylyn.docs.vex-ff9a15d41968462976516f1cf5bbc3fb37a0fc90.zip
update the formatting and clean-up settings to Eclipse Mars
Change-Id: Ia232196ade96416e8a8114111c2a91e8088f5f8a Signed-off-by: Florian Thienel <florian@thienel.org>
Diffstat (limited to 'org.eclipse.vex.xhtml/src/org/eclipse')
-rw-r--r--org.eclipse.vex.xhtml/src/org/eclipse/vex/xhtml/XhtmlOutlineProvider.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/org.eclipse.vex.xhtml/src/org/eclipse/vex/xhtml/XhtmlOutlineProvider.java b/org.eclipse.vex.xhtml/src/org/eclipse/vex/xhtml/XhtmlOutlineProvider.java
index fb11d151..ba61d60d 100644
--- a/org.eclipse.vex.xhtml/src/org/eclipse/vex/xhtml/XhtmlOutlineProvider.java
+++ b/org.eclipse.vex.xhtml/src/org/eclipse/vex/xhtml/XhtmlOutlineProvider.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* John Krasnay - initial API and implementation
*******************************************************************************/
@@ -29,17 +29,21 @@ import org.eclipse.vex.ui.internal.outline.IOutlineProvider;
*/
public class XhtmlOutlineProvider implements IOutlineProvider {
+ @Override
public void init(final VexEditor editor) {
}
+ @Override
public ITreeContentProvider getContentProvider() {
return contentProvider;
}
+ @Override
public IBaseLabelProvider getLabelProvider() {
return labelProvider;
}
+ @Override
public IElement getOutlineElement(final IElement child) {
IElement element = child;
while (element.getParentElement() != null) {
@@ -60,16 +64,20 @@ public class XhtmlOutlineProvider implements IOutlineProvider {
private final ITreeContentProvider contentProvider = new ITreeContentProvider() {
+ @Override
public void dispose() {
}
+ @Override
public void inputChanged(final Viewer viewer, final Object oldInput, final Object newInput) {
}
+ @Override
public Object[] getChildren(final Object parentElement) {
return getOutlineChildren((IElement) parentElement);
}
+ @Override
public Object getParent(final Object element) {
final IElement parent = ((IElement) element).getParentElement();
if (parent == null) {
@@ -79,10 +87,12 @@ public class XhtmlOutlineProvider implements IOutlineProvider {
}
}
+ @Override
public boolean hasChildren(final Object element) {
return getOutlineChildren((IElement) element).length > 0;
}
+ @Override
public Object[] getElements(final Object inputElement) {
final IDocument document = (IDocument) inputElement;
return new Object[] { document.getRootElement() };
@@ -93,7 +103,7 @@ public class XhtmlOutlineProvider implements IOutlineProvider {
/**
* Returns an array of the children of the given element that represent nodes in the outline. These are structural
* elements such as "section".
- *
+ *
* @param element
* @return
*/

Back to the top