Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2010 itemis AG (http://www.itemis.eu) 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 http://www.eclipse.org/legal/epl-v10.html /
 
 package org.eclipse.xtext.ui.editor.outline;
 
import  org.eclipse.core.runtime.IAdaptable;
import  org.eclipse.jface.resource.ImageDescriptor;
import  org.eclipse.swt.graphics.Image;
A model for a node in the outline. Implementors must inherit from org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode.

Author(s):
Jan Koehnlein - Initial contribution and API
public interface IOutlineNode extends IAdaptable, IReadAccess<EObject> {
	Image getImage();
	boolean hasChildren();

The region that triggers selection of this node when "Link with Editor" is enabled.
The region that is selected in the editor when this node is double clicked or selected in "Link with Editor" mode.
Allows to use ImageDescriptors instead of Images. This enables calculating the outline nodes in a background thread.

Author(s):
Jan Koehnlein - Initial contribution and API
Since:
2.4
See also:
BackgroundOutlineTreeProvider
	public interface Extension {
		ImageDescriptor getImageDescriptor();
	}
New to GrepCode? Check out our FAQ X