1 11 package org.eclipse.ui.navigator; 12 13 import java.util.Set ; 14 15 import org.eclipse.jface.viewers.IContentProvider; 16 import org.eclipse.jface.viewers.ILabelProvider; 17 import org.eclipse.jface.viewers.IStructuredContentProvider; 18 import org.eclipse.jface.viewers.ITreeContentProvider; 19 import org.eclipse.jface.viewers.ViewerSorter; 20 import org.eclipse.ui.IMemento; 21 import org.eclipse.ui.ISaveablesSource; 22 23 98 public interface INavigatorContentService { 99 100 139 ITreeContentProvider createCommonContentProvider(); 140 141 162 ILabelProvider createCommonLabelProvider(); 163 164 168 IDescriptionProvider createCommonDescriptionProvider(); 169 170 182 IExtensionStateModel findStateModel(String anExtensionId); 183 184 192 String getViewerId(); 193 194 201 INavigatorViewerDescriptor getViewerDescriptor(); 202 203 214 boolean isActive(String anExtensionId); 215 216 226 boolean isVisible(String anExtensionId); 227 228 236 String [] getVisibleExtensionIds(); 237 238 247 INavigatorContentDescriptor[] getVisibleExtensions(); 248 249 276 INavigatorContentDescriptor[] bindExtensions(String [] extensionIds, 277 boolean isRoot); 278 279 286 void restoreState(IMemento aMemento); 287 288 295 void saveState(IMemento aMemento); 296 297 303 void addListener(INavigatorContentServiceListener aListener); 304 305 311 void removeListener(INavigatorContentServiceListener aListener); 312 313 318 void update(); 319 320 324 void dispose(); 325 326 340 Set findRootContentExtensions(Object anElement); 341 342 353 Set findContentExtensionsByTriggerPoint(Object anElement); 354 355 366 Set findContentExtensionsWithPossibleChild(Object anElement); 367 368 375 INavigatorFilterService getFilterService(); 376 377 387 INavigatorSorterService getSorterService(); 388 389 401 INavigatorPipelineService getPipelineService(); 402 403 411 INavigatorDnDService getDnDService(); 412 413 419 INavigatorActivationService getActivationService(); 420 421 426 INavigatorSaveablesService getSaveablesService(); 427 428 434 public INavigatorContentExtension getContentExtensionById(String anExtensionId); 435 436 443 public INavigatorContentDescriptor getContentDescriptorById(String anExtensionId); 444 445 446 447 } 448 | Popular Tags |