01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.ui.text.folding;
11:
12: import org.eclipse.jdt.core.IJavaElement;
13:
14: /**
15: * Extends {@link IJavaFoldingStructureProvider} with the following
16: * functions:
17: * <ul>
18: * <li>collapsing of comments and members</li>
19: * <li>expanding and collapsing of certain java elements</li>
20: * </ul>
21: *
22: * @since 3.2
23: */
24: public interface IJavaFoldingStructureProviderExtension {
25: /**
26: * Collapses all members except for top level types.
27: */
28: void collapseMembers();
29:
30: /**
31: * Collapses all comments.
32: */
33: void collapseComments();
34:
35: /**
36: * Collapses the given elements.
37: *
38: * @param elements the java elements to collapse (the array and its elements must not be
39: * modified)
40: */
41: void collapseElements(IJavaElement[] elements);
42:
43: /**
44: * Expands the given elements.
45: *
46: * @param elements the java elements to expand (the array and its elements must not be modified)
47: */
48: void expandElements(IJavaElement[] elements);
49: }
|