1 11 package org.eclipse.ui.navigator; 12 13 import org.eclipse.jface.viewers.IContentProvider; 14 import org.eclipse.jface.viewers.StructuredViewer; 15 import org.eclipse.ui.internal.navigator.NavigatorContentService; 16 17 18 34 public final class NavigatorContentServiceFactory { 35 36 39 public static final NavigatorContentServiceFactory INSTANCE = new NavigatorContentServiceFactory(); 40 41 42 50 public INavigatorContentService createContentService(String aViewerId) { 51 return createContentService(aViewerId, null); 52 } 53 54 64 public INavigatorContentService createContentService(String aViewerId, StructuredViewer aViewer) { 65 if(aViewer == null) { 66 return new NavigatorContentService(aViewerId); 67 } 68 return new NavigatorContentService(aViewerId, aViewer); 69 } 70 71 } 72 | Popular Tags |