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.impl;
 
import  org.eclipse.jface.resource.ImageDescriptor;
import  org.eclipse.swt.graphics.Image;

Author(s):
Jan Koehnlein - Initial contribution and API
public class DocumentRootNode extends AbstractOutlineNode {
A BackgroundOutlineTreeProvider must use DocumentRootNode(ImageDescriptor, Object, IXtextDocument, IOutlineTreeStructureProvider) instead.
	public DocumentRootNode(Image imageObject textIXtextDocument document,
		super(nullimagetextfalse);
		this. = document;
		this. = treeProvider;
	}

Since:
2.4
	public DocumentRootNode(ImageDescriptor imageDescriptorObject textIXtextDocument document,
		super(nullimageDescriptortextfalse);
		this. = document;
		this. = treeProvider;
	}
		return ;
	}
		return ;
	}
	public <T> T readOnly(final IUnitOfWork<T, EObjectwork) {
			public T exec(XtextResource resourcethrows Exception {
				if(resource != null && !resource.getContents().isEmpty()) {
					return work.exec(resource.getContents().get(0));
				}
				return null;
			}
		});
	}
New to GrepCode? Check out our FAQ X