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.quickoutline;
 
import static java.lang.annotation.RetentionPolicy.*;
import  org.eclipse.jface.action.IMenuManager;
import  org.eclipse.jface.viewers.TreeViewer;

Author(s):
Dennis H´┐Żbner - Initial contribution and API
Since:
2.7
	public @interface All {
	}
	void register(QuickOutlinePopup quickOutline, IMenuManager dialogMenu);
	void deregister(QuickOutlinePopup quickOutline);
	class Composite implements IQuickOutlineContribution {
		protected void initialize(Injector injector) {
			List<Binding<IQuickOutlineContribution>> bindings = injector.findBindingsByType(TypeLiteral
			for (Binding<IQuickOutlineContributionbinding : bindings) {
				.add(injector.getInstance(binding.getKey()));
			}
		}
		public void initialize(IPreferenceStoreAccess access) {
			for (IQuickOutlineContribution contribution : )
				contribution.initialize(access);
		}
		public void register(QuickOutlinePopup quickOutline, IMenuManager dialogMenu) {
			for (IQuickOutlineContribution contribution : )
				contribution.register(quickOutlinedialogMenu);
			TreeViewer treeViewer = quickOutline.getTreeViewer();
			if (!treeViewer.getTree().isDisposed())
				treeViewer.refresh();
		}
		public void deregister(QuickOutlinePopup quickOutline) {
			for (IQuickOutlineContribution contribution : )
				contribution.deregister(quickOutline);
		}
	}
New to GrepCode? Check out our FAQ X