org.eclipse.ui.navigator.ICommonContentExtensionSite Java Examples
The following examples show how to use
org.eclipse.ui.navigator.ICommonContentExtensionSite.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CommonListeningLabelProvider.java From neoscada with Eclipse Public License 1.0 | 6 votes |
@Override public void init ( final ICommonContentExtensionSite config ) { final ITreeContentProvider contentProvider = config.getService ().getContentExtensionById ( this.contentExtensionId ).getContentProvider (); if ( contentProvider instanceof ObservableSetTreeContentProvider ) { addSource ( ( (ObservableSetTreeContentProvider)contentProvider ).getKnownElements () ); } else if ( contentProvider instanceof ObservableSetContentProvider ) { addSource ( ( (ObservableSetContentProvider)contentProvider ).getKnownElements () ); } else if ( contentProvider instanceof ObservableListContentProvider ) { addSource ( ( (ObservableListContentProvider)contentProvider ).getKnownElements () ); } else if ( contentProvider instanceof ObservableListTreeContentProvider ) { addSource ( ( (ObservableListTreeContentProvider)contentProvider ).getKnownElements () ); } }
Example #2
Source File: JavaNavigatorLabelProvider.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
public void init(ICommonContentExtensionSite commonContentExtensionSite) { fStateModel = commonContentExtensionSite.getExtensionStateModel(); fContentProvider = (PackageExplorerContentProvider) commonContentExtensionSite.getExtension().getContentProvider(); delegeteLabelProvider = createLabelProvider(); delegeteLabelProvider.setIsFlatLayout(fStateModel .getBooleanProperty(Values.IS_LAYOUT_FLAT)); fLayoutPropertyListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (Values.IS_LAYOUT_FLAT.equals(event.getProperty())) { if (event.getNewValue() != null) { boolean newValue = ((Boolean) event.getNewValue()) .booleanValue() ? true : false; delegeteLabelProvider.setIsFlatLayout(newValue); } } } }; fStateModel.addPropertyChangeListener(fLayoutPropertyListener); }
Example #3
Source File: JavaNavigatorContentProvider.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 6 votes |
public void init(ICommonContentExtensionSite commonContentExtensionSite) { IExtensionStateModel stateModel = commonContentExtensionSite .getExtensionStateModel(); IMemento memento = commonContentExtensionSite.getMemento(); fStateModel = stateModel; restoreState(memento); fLayoutPropertyListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (Values.IS_LAYOUT_FLAT.equals(event.getProperty())) { if (event.getNewValue() != null) { boolean newValue = ((Boolean) event.getNewValue()) .booleanValue() ? true : false; setIsFlatLayout(newValue); } } } }; fStateModel.addPropertyChangeListener(fLayoutPropertyListener); IPreferenceStore store = PreferenceConstants.getPreferenceStore(); boolean showCUChildren = store .getBoolean(PreferenceConstants.SHOW_CU_CHILDREN); setProvideMembers(showCUChildren); }
Example #4
Source File: BugContentProvider.java From spotbugs with GNU Lesser General Public License v2.1 | 5 votes |
public static boolean isBugFilterActive(ICommonContentExtensionSite site) { ViewerFilter[] visibleFilters = site.getService().getFilterService().getVisibleFilters(true); for (ViewerFilter filter : visibleFilters) { if (filter instanceof BugByIdFilter) { return true; } } return false; }
Example #5
Source File: TopLevelProjectsOrWorkingSetChoice.java From Pydev with Eclipse Public License 1.0 | 5 votes |
/** * Starts listening to property changes related to which should be the top-level elements to be shown. */ public void init(ICommonContentExtensionSite aConfig, CommonViewer viewer) { //if it had something, dispose of its association! this.dispose(); try { extensionStateModel = viewer.getNavigatorContentService().findStateModel( WorkingSetsContentProvider.EXTENSION_ID); extensionStateModel.addPropertyChangeListener(rootModeListener); } catch (Exception e) { Log.log(e); } updateRootMode(); }
Example #6
Source File: WorkingSetsContentProvider.java From tmxeditor8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonContentExtensionSite aConfig) { NavigatorContentService cs = (NavigatorContentService) aConfig.getService(); viewer = (CommonViewer) cs.getViewer(); projectExplorer = viewer.getCommonNavigator(); extensionStateModel = aConfig.getExtensionStateModel(); extensionStateModel.addPropertyChangeListener(rootModeListener); updateRootMode(); }
Example #7
Source File: WorkingSetsContentProvider.java From translationstudio8 with GNU General Public License v2.0 | 5 votes |
public void init(ICommonContentExtensionSite aConfig) { NavigatorContentService cs = (NavigatorContentService) aConfig.getService(); viewer = (CommonViewer) cs.getViewer(); projectExplorer = viewer.getCommonNavigator(); extensionStateModel = aConfig.getExtensionStateModel(); extensionStateModel.addPropertyChangeListener(rootModeListener); updateRootMode(); }
Example #8
Source File: N4JSProjectExplorerContentProvider.java From n4js with Eclipse Public License 1.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite aConfig) { // Nothing to initialize here. }
Example #9
Source File: NavigationContentProvider.java From olca-app with Mozilla Public License 2.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite aConfig) { }
Example #10
Source File: NavigationLabelProvider.java From olca-app with Mozilla Public License 2.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite aConfig) { }
Example #11
Source File: BonitaExplorerLabelProvider.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite commonContentExtensionSite) { super.init(commonContentExtensionSite); packageExplorerProblemsDecorator = new PackageExplorerProblemsDecorator(); fileStoreFinder = new FileStoreFinder(); }
Example #12
Source File: AbstractNavigatorContentProvider.java From goclipse with Eclipse Public License 1.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite aConfig) { }
Example #13
Source File: PythonBaseModelProvider.java From Pydev with Eclipse Public License 1.0 | 4 votes |
/** * Initializes the viewer and the choice for top-level elements. */ public void init(ICommonContentExtensionSite aConfig) { this.aConfig = aConfig; }
Example #14
Source File: ResourceExtensionLabelProvider.java From tmxeditor8 with GNU General Public License v2.0 | 4 votes |
public void init(ICommonContentExtensionSite aConfig) { //init }
Example #15
Source File: ResourceExtensionLabelProvider.java From translationstudio8 with GNU General Public License v2.0 | 4 votes |
public void init(ICommonContentExtensionSite aConfig) { //init }
Example #16
Source File: StatechartNavigatorLabelProvider.java From statecharts with Eclipse Public License 1.0 | 4 votes |
public void init(ICommonContentExtensionSite aConfig) { }
Example #17
Source File: StatechartNavigatorContentProvider.java From statecharts with Eclipse Public License 1.0 | 4 votes |
public void init(ICommonContentExtensionSite aConfig) { }
Example #18
Source File: TmfNavigatorContentProvider.java From tracecompass with Eclipse Public License 2.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite aConfig) { // Do nothing }
Example #19
Source File: TmfNavigatorLabelProvider.java From tracecompass with Eclipse Public License 2.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite aConfig) { // Do nothing }
Example #20
Source File: BugLabelProvider.java From spotbugs with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void init(ICommonContentExtensionSite config) { provider = BugContentProvider.getProvider(config.getService()); }
Example #21
Source File: BugContentProvider.java From spotbugs with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void init(ICommonContentExtensionSite config) { this.site = config; }
Example #22
Source File: ProjectExplorerContentProvider.java From xds-ide with Eclipse Public License 1.0 | 4 votes |
@Override public void init(ICommonContentExtensionSite commonContentExtensionSite) { this.stateModel = commonContentExtensionSite.getExtensionStateModel(); this.stateModelAccess = new ExtensionStateModelAccessor(stateModel); }
Example #23
Source File: CrossflowDomainNavigatorLabelProvider.java From scava with Eclipse Public License 2.0 | 2 votes |
/** * @generated */ public void init(ICommonContentExtensionSite aConfig) { }
Example #24
Source File: CrossflowNavigatorContentProvider.java From scava with Eclipse Public License 2.0 | 2 votes |
/** * @generated */ public void init(ICommonContentExtensionSite aConfig) { }
Example #25
Source File: EmptyNavigatorLabelProvider.java From developer-studio with Apache License 2.0 | 2 votes |
public void init(ICommonContentExtensionSite arg0) { }
Example #26
Source File: EmptyNavigatorContentProvider.java From developer-studio with Apache License 2.0 | 2 votes |
public void init(ICommonContentExtensionSite arg0) { }
Example #27
Source File: TypeScriptNavigatorLabelProvider.java From typescript.java with MIT License | 2 votes |
@Override public void init(ICommonContentExtensionSite paramICommonContentExtensionSite) { }
Example #28
Source File: ProcessNavigatorLabelProvider.java From bonita-studio with GNU General Public License v2.0 | 2 votes |
/** * @generated */ public void init(ICommonContentExtensionSite aConfig) { }
Example #29
Source File: CrossflowNavigatorLabelProvider.java From scava with Eclipse Public License 2.0 | 2 votes |
/** * @generated */ public void init(ICommonContentExtensionSite aConfig) { }
Example #30
Source File: CrossflowDomainNavigatorContentProvider.java From scava with Eclipse Public License 2.0 | 2 votes |
/** * @generated */ public void init(ICommonContentExtensionSite aConfig) { }