public void init(ICommonContentExtensionSite aConfig) { mStateModel = aConfig.getExtensionStateModel(); }
private ISynchronizePageConfiguration getConfiguration() { if (this instanceof SynchronizationLabelProvider) { SynchronizationLabelProvider slp = (SynchronizationLabelProvider) this; return (ISynchronizePageConfiguration)slp.getExtensionSite().getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); } return null; }
private ISynchronizePageConfiguration getConfiguration() { return (ISynchronizePageConfiguration)getExtensionSite().getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); }
private ISynchronizePageConfiguration getConfiguration() { return (ISynchronizePageConfiguration)getExtensionSite().getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); }
public void init(ICommonContentExtensionSite aConfig) { mStateModel = aConfig.getExtensionStateModel(); ProfileManager.getInstance().addProfileListener(mProfileListener); }
/** * Return the synchronization context associated with the view to which * this content provider applies. A <code>null</code> is returned if * no context is available. * @return the synchronization context or <code>null</code> */ protected ISynchronizationContext getContext() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) return (ISynchronizationContext) extensionSite .getExtensionStateModel() .getProperty( ITeamContentProviderManager.P_SYNCHRONIZATION_CONTEXT); return null; }
/** * Return the synchronization page configuration associated with the view to which * this content provider applies. A <code>null</code> is returned if * no configuration is available. * @return the synchronization page configuration or <code>null</code> */ protected ISynchronizePageConfiguration getConfiguration() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) return (ISynchronizePageConfiguration) extensionSite .getExtensionStateModel() .getProperty( ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); return null; }
/** * Return the resource mapping scope associated with the view to which * this content provider applies. A <code>null</code> is returned if * no scope is available. * @return the resource mapping scope or <code>null</code> */ protected ISynchronizationScope getScope() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) return (ISynchronizationScope) extensionSite .getExtensionStateModel() .getProperty( ITeamContentProviderManager.P_SYNCHRONIZATION_SCOPE); return null; }
public void init(ICommonContentExtensionSite site) { this.site = site; contentProvider = site.getExtension().getContentProvider(); init((ISynchronizationScope)site.getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_SCOPE), (ISynchronizationContext)site.getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_CONTEXT)); }
/** * Return the synchronization context associated with the view to which * this content provider applies. A <code>null</code> is returned if * no context is available. * @return the synchronization context or <code>null</code> */ protected ISynchronizationContext getContext() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) return (ISynchronizationContext) extensionSite .getExtensionStateModel() .getProperty( ITeamContentProviderManager.P_SYNCHRONIZATION_CONTEXT); return null; }
/** * Return the resource mapping scope associated with the view to which * this content provider applies. A <code>null</code> is returned if * no scope is available. * @return the resource mapping scope or <code>null</code> */ protected ISynchronizationScope getScope() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) return (ISynchronizationScope) extensionSite .getExtensionStateModel() .getProperty( ITeamContentProviderManager.P_SYNCHRONIZATION_SCOPE); return null; }
/** * Return the synchronization page configuration associated with the view to which * this content provider applies. A <code>null</code> is returned if * no configuration is available. * @return the synchronization page configuration or <code>null</code> */ protected ISynchronizePageConfiguration getConfiguration() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) return (ISynchronizePageConfiguration) extensionSite .getExtensionStateModel() .getProperty( ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); return null; }
@Override public void init(ICommonContentExtensionSite site) { this.site = site; contentProvider = site.getExtension().getContentProvider(); init((ISynchronizationScope)site.getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_SCOPE), (ISynchronizationContext)site.getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_CONTEXT)); }
public void dispose() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) { extensionSite.getExtensionStateModel().removePropertyChangeListener(this); } ISynchronizationContext context = getContext(); if (context != null) context.getDiffTree().removeDiffChangeListener(this); ISynchronizePageConfiguration configuration = getConfiguration(); if (configuration != null) configuration.removePropertyChangeListener(this); }
@Override public void dispose() { ICommonContentExtensionSite extensionSite = getExtensionSite(); if (extensionSite != null) { extensionSite.getExtensionStateModel().removePropertyChangeListener(this); } ISynchronizationContext context = getContext(); if (context != null) context.getDiffTree().removeDiffChangeListener(this); ISynchronizePageConfiguration configuration = getConfiguration(); if (configuration != null) configuration.removePropertyChangeListener(this); }
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); }
@Override 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() { @Override 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); }
@Override public void init(ICommonContentExtensionSite aConfig) { NavigatorContentService cs = (NavigatorContentService) aConfig.getService(); viewer = (CommonViewer) cs.getViewer(); projectExplorer = viewer.getCommonNavigator(); extensionStateModel = aConfig.getExtensionStateModel(); extensionStateModel.addPropertyChangeListener(rootModeListener); updateRootMode(); workingSetManager = PlatformUI.getWorkbench().getWorkingSetManager(); workingSetManager.addPropertyChangeListener(workingSetManagerListener); }
public void init(ICommonContentExtensionSite site) { // Set the site this.site = site; // Configure the content provider based on the site and state model site.getExtensionStateModel().addPropertyChangeListener(this); ISynchronizePageConfiguration configuration = getConfiguration(); if (configuration != null) configuration.addPropertyChangeListener(this); ITreeContentProvider provider = getDelegateContentProvider(); if (provider instanceof ICommonContentProvider) { ((ICommonContentProvider) provider).init(site); } ISynchronizationContext context = getContext(); if (context != null) context.getDiffTree().addDiffChangeListener(this); }
@Override public void init(ICommonContentExtensionSite site) { // Set the site this.site = site; // Configure the content provider based on the site and state model site.getExtensionStateModel().addPropertyChangeListener(this); ISynchronizePageConfiguration configuration = getConfiguration(); if (configuration != null) configuration.addPropertyChangeListener(this); ITreeContentProvider provider = getDelegateContentProvider(); if (provider instanceof ICommonContentProvider) { ((ICommonContentProvider) provider).init(site); } ISynchronizationContext context = getContext(); if (context != null) context.getDiffTree().addDiffChangeListener(this); }