Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 Michael Clay and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at /
 package org.eclipse.xtext.ui.editor.folding;
import  org.eclipse.jface.text.source.projection.ProjectionViewer;

Michael Clay - Initial contribution and API
public interface IFoldingStructureProvider {

Installs this structure provider on the given editor and viewer. Implementations should listen to the projection events generated by viewer and enable / disable generation of projection structure accordingly.

editor the editor that this provider works on
viewer the projection viewer that displays the annotations created by this structure provider
	void install(XtextEditor editor, ProjectionViewer viewer);

Uninstalls this structure provider. Any references to editors or viewers should be cleared.
	void uninstall();

(Re-)initializes the structure provided by the receiver.
	void initialize();
New to GrepCode? Check out our FAQ X