1 11 12 package org.eclipse.ui.internal.navigator.extensions; 13 14 import org.eclipse.core.runtime.Assert; 15 import org.eclipse.ui.navigator.ICommonActionExtensionSite; 16 import org.eclipse.ui.navigator.ICommonContentExtensionSite; 17 import org.eclipse.ui.navigator.IExtensionStateModel; 18 import org.eclipse.ui.navigator.INavigatorContentService; 19 20 28 public class CommonExtensionSite { 29 30 private final INavigatorContentService contentService; 31 32 private IExtensionStateModel extensionStateModel; 33 34 protected CommonExtensionSite(INavigatorContentService aContentService, 35 String anExtensionId) { 36 37 Assert.isNotNull(aContentService); 38 39 contentService = aContentService; 40 if (anExtensionId != null) { 41 extensionStateModel = aContentService.findStateModel(anExtensionId); 42 } 43 } 44 45 49 public final INavigatorContentService getContentService() { 50 return contentService; 51 } 52 53 63 public final IExtensionStateModel getExtensionStateModel() { 64 return extensionStateModel; 65 } 66 67 } 68 | Popular Tags |