1 11 package org.eclipse.ui.internal.navigator.extensions; 12 13 import org.eclipse.core.runtime.Assert; 14 import org.eclipse.jface.viewers.StructuredViewer; 15 import org.eclipse.ui.internal.navigator.NavigatorContentService; 16 import org.eclipse.ui.navigator.CommonActionProvider; 17 import org.eclipse.ui.navigator.ICommonActionExtensionSite; 18 import org.eclipse.ui.navigator.ICommonViewerSite; 19 20 34 public final class CommonActionExtensionSite extends CommonExtensionSite 35 implements ICommonActionExtensionSite { 36 37 private String extensionId; 38 39 private ICommonViewerSite commonViewerSite; 40 41 private StructuredViewer structuredViewer; 42 43 64 public CommonActionExtensionSite(String anExtensionId, 65 ICommonViewerSite aCommonViewerSite, 66 NavigatorContentService aContentService, 67 StructuredViewer aStructuredViewer) { 68 super(aContentService, anExtensionId); 69 70 Assert.isNotNull(aCommonViewerSite); 71 Assert.isNotNull(aStructuredViewer); 72 extensionId = anExtensionId; 73 commonViewerSite = aCommonViewerSite; 74 structuredViewer = aStructuredViewer; 75 76 } 77 78 83 public String getExtensionId() { 84 return extensionId; 85 } 86 87 92 public StructuredViewer getStructuredViewer() { 93 return structuredViewer; 94 } 95 96 100 public ICommonViewerSite getViewSite() { 101 return commonViewerSite; 102 } 103 } 104 | Popular Tags |