1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.ui.text.folding;
13 import org.eclipse.jface.text.source.projection.ProjectionViewer;
15 import org.eclipse.ui.texteditor.ITextEditor;
19 * <code>net.sourceforge.phpdt.ui.foldingStructureProvider</code> extension
20 * point must specify an implementation of this interface which will create and
22 * {@link org.eclipse.jface.text.source.projection.ProjectionAnnotation} objects
24 * {@link org.eclipse.jface.text.source.projection.ProjectionViewer}.
26 * Clients may implement this interface.
31 public interface IJavaFoldingStructureProvider {
34 * Installs this structure provider on the given editor and viewer.
35 * Implementations should observe the projection events generated by
36 * <code>viewer</code> and enable / disable generation of projection
37 * structure accordingly.
39 * @param editor the editor that this provider works on
40 * @param viewer the projection viewer that displays the annotations created
41 * by this structure provider
43 public abstract void install(ITextEditor editor, ProjectionViewer viewer);
46 * Uninstalls this structure provider. Any references to editors or viewers
49 public abstract void uninstall();
52 * (Re-)initializes the structure provided by the receiver.
54 public abstract void initialize();