/** * Return the synchronization context to which the actions of this provider * apply. * @return the synchronization context to which the actions of this provider * apply */ protected final ISynchronizationContext getSynchronizationContext() { return (ISynchronizationContext)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_CONTEXT); }
/** * Return the synchronization context to which the actions of this provider * apply. * @return the synchronization context to which the actions of this provider * apply */ protected final ISynchronizationContext getSynchronizationContext() { return (ISynchronizationContext)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_CONTEXT); }
/** * Return the configuration from the synchronize page that contains * the common viewer. * @return the configuration from the synchronize page that contains * the common viewer */ protected final ISynchronizePageConfiguration getSynchronizePageConfiguration() { return (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); }
/** * Return the configuration from the synchronize page that contains * the common viewer. * @return the configuration from the synchronize page that contains * the common viewer */ protected final ISynchronizePageConfiguration getSynchronizePageConfiguration() { return (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION); }
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); }
/** * 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 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 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)); }
protected void initialize() { super.initialize(); // Register the merge, overwrite and mark-as-merged handlers ResourceMergeHandler mergeHandler = new ResourceMergeHandler( (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION), false /* overwrite */); registerHandler(MERGE_ACTION_ID, mergeHandler); ResourceMergeHandler overwriteHandler = new ResourceMergeHandler( (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION), true /* overwrite */); registerHandler(OVERWRITE_ACTION_ID, overwriteHandler); ResourceMarkAsMergedHandler markAsMergedHandler = new ResourceMarkAsMergedHandler( (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION)); registerHandler(MARK_AS_MERGE_ACTION_ID, markAsMergedHandler); ICommonViewerSite cvs = getActionSite().getViewSite(); ISynchronizePageConfiguration configuration = getSynchronizePageConfiguration(); if (cvs instanceof ICommonViewerWorkbenchSite && configuration != null) { ICommonViewerWorkbenchSite cvws = (ICommonViewerWorkbenchSite) cvs; final IWorkbenchPartSite wps = cvws.getSite(); if (wps instanceof IViewSite) { refactorActions = new RefactorActionGroup(configuration.getSite(), getNavigatorContentService(configuration)); } } }
@Override protected void initialize() { super.initialize(); // Register the merge, overwrite and mark-as-merged handlers ResourceMergeHandler mergeHandler = new ResourceMergeHandler( (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION), false /* overwrite */); registerHandler(MERGE_ACTION_ID, mergeHandler); ResourceMergeHandler overwriteHandler = new ResourceMergeHandler( (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION), true /* overwrite */); registerHandler(OVERWRITE_ACTION_ID, overwriteHandler); ResourceMarkAsMergedHandler markAsMergedHandler = new ResourceMarkAsMergedHandler( (ISynchronizePageConfiguration)getExtensionStateModel().getProperty(ITeamContentProviderManager.P_SYNCHRONIZATION_PAGE_CONFIGURATION)); registerHandler(MARK_AS_MERGE_ACTION_ID, markAsMergedHandler); ICommonViewerSite cvs = getActionSite().getViewSite(); ISynchronizePageConfiguration configuration = getSynchronizePageConfiguration(); if (cvs instanceof ICommonViewerWorkbenchSite && configuration != null) { ICommonViewerWorkbenchSite cvws = (ICommonViewerWorkbenchSite) cvs; final IWorkbenchPartSite wps = cvws.getSite(); if (wps instanceof IViewSite) { refactorActions = new RefactorActionGroup(configuration.getSite(), getNavigatorContentService(configuration)); } } }