本文整理汇总了Java中org.eclipse.ui.activities.IWorkbenchActivitySupport类的典型用法代码示例。如果您正苦于以下问题:Java IWorkbenchActivitySupport类的具体用法?Java IWorkbenchActivitySupport怎么用?Java IWorkbenchActivitySupport使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IWorkbenchActivitySupport类属于org.eclipse.ui.activities包,在下文中一共展示了IWorkbenchActivitySupport类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: showHideViews
import org.eclipse.ui.activities.IWorkbenchActivitySupport; //导入依赖的package包/类
/**
* Show / Hide views according to the current connected team project In case
* there is no current team project, all views are visible
*
* @param flags
*/
public static void showHideViews(final SourceControlCapabilityFlags flags) {
final IWorkbenchActivitySupport workbenchActivitySupport = PlatformUI.getWorkbench().getActivitySupport();
final IActivityManager activityManager = workbenchActivitySupport.getActivityManager();
final Set enabledActivityIds = new HashSet(activityManager.getEnabledActivityIds());
if (flags != null && flags.contains(SourceControlCapabilityFlags.GIT)) {
if (enabledActivityIds.remove("com.microsoft.tfs.git.hidden")) //$NON-NLS-1$
{
workbenchActivitySupport.setEnabledActivityIds(enabledActivityIds);
}
} else {
if (enabledActivityIds.add("com.microsoft.tfs.git.hidden")) //$NON-NLS-1$
{
workbenchActivitySupport.setEnabledActivityIds(enabledActivityIds);
}
}
}
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:24,代码来源:ConnectHelpers.java
示例2: run
import org.eclipse.ui.activities.IWorkbenchActivitySupport; //导入依赖的package包/类
static void run() {
final IWorkbenchActivitySupport was = PlatformUI.getWorkbench().getActivitySupport();
was.setEnabledActivityIds(new HashSet<>());
}
开发者ID:gama-platform,项目名称:gama,代码行数:5,代码来源:CleanupHelper.java
示例3: getActivitySupport
import org.eclipse.ui.activities.IWorkbenchActivitySupport; //导入依赖的package包/类
@Override
public IWorkbenchActivitySupport getActivitySupport() {
// TODO Auto-generated method stub
return null;
}
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:6,代码来源:Workbench.java
示例4: getActivitySupport
import org.eclipse.ui.activities.IWorkbenchActivitySupport; //导入依赖的package包/类
/**
* Returns an interface to manage activities at the workbench level.
*
* @return an interface to manage activities at the workbench level.
* Guaranteed not to be <code>null</code>.
* @since 3.0
*/
IWorkbenchActivitySupport getActivitySupport();
开发者ID:ghillairet,项目名称:gef-gwt,代码行数:9,代码来源:IWorkbench.java
注:本文中的org.eclipse.ui.activities.IWorkbenchActivitySupport类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论