当前位置: 首页>>代码示例>>Java>>正文


Java IEvaluationService.requestEvaluation方法代码示例

本文整理汇总了Java中org.eclipse.ui.services.IEvaluationService.requestEvaluation方法的典型用法代码示例。如果您正苦于以下问题:Java IEvaluationService.requestEvaluation方法的具体用法?Java IEvaluationService.requestEvaluation怎么用?Java IEvaluationService.requestEvaluation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.services.IEvaluationService的用法示例。


在下文中一共展示了IEvaluationService.requestEvaluation方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: refreshEvaluationService

import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
/***************************************************************************
 * 
 **************************************************************************/
private void refreshEvaluationService()
{
	IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
	if (window != null)
	{
		IEvaluationService svc = (IEvaluationService) window.getService(IEvaluationService.class);
		if (svc != null)
		{
			Logger.debug("Refresh evaluation service", Level.PROC, this);
			svc.requestEvaluation(ProcedurePausedTester.ID);
			svc.requestEvaluation(ProcedureConfigurableTester.ID);
			svc.requestEvaluation(AsRunOpenTester.ID);
			svc.requestEvaluation(ProcedureOpenTester.ID);
		}
	}
}
 
开发者ID:Spacecraft-Code,项目名称:SPELL,代码行数:20,代码来源:GuiListeners.java

示例2: refreshCommands

import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
protected void refreshCommands(String... properties) {
IEvaluationService evalService = (IEvaluationService) getEditorSite().getService(IEvaluationService.class);
if (evalService != null) {
	for (String property: properties) {
		evalService.requestEvaluation(property);
	}
}        
  }
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:9,代码来源:AvroSchemaEditorPart.java

示例3: refreshCommands

import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
protected void refreshCommands(IEditorPart editorPart, String... properties) {
IEvaluationService evalService = (IEvaluationService) editorPart.getEditorSite().getService(IEvaluationService.class);
if (evalService != null) {
	for (String property: properties) {
		evalService.requestEvaluation(property);
	}
}        
  }
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:9,代码来源:SearchNodeControl.java

示例4: eventOccured

import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
public boolean eventOccured(SpecEvent event) {
	if (event.getType() == SpecEvent.TYPE_PARSE) {
		final IEvaluationService evalService = (IEvaluationService) PlatformUI.getWorkbench().getService(
				IEvaluationService.class);
		evalService.requestEvaluation(ParseErrorTester.PROPERTY_ID);
	}
	return false;
}
 
开发者ID:tlaplus,项目名称:tlaplus,代码行数:9,代码来源:OpenParseErrorViewHandler.java

示例5: refreshCommand

import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
/**
 * 刷新 Command 的可用状态
 * @param nameSpace
 * @param properties
 *            ;
 */
public static void refreshCommand(String nameSpace, String properties) {
	if (nameSpace != null && properties != null) {
		IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
		IEvaluationService evaluationService = (IEvaluationService) window.getService(IEvaluationService.class);
		if (evaluationService != null) {
			evaluationService.requestEvaluation(nameSpace + "." + properties);
		}
	}
}
 
开发者ID:heartsome,项目名称:translationstudio8,代码行数:16,代码来源:NattableUtil.java

示例6: evaluate

import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
public void evaluate() {
  IEvaluationService evaluationService = getEvaluationService();
  if( evaluationService != null ) {
    evaluationService.requestEvaluation( PreferencePropertyTester.PROP_IS_TRUE );
  }
}
 
开发者ID:rherrmann,项目名称:eclipse-extras,代码行数:7,代码来源:ExpressionEvaluator.java


注:本文中的org.eclipse.ui.services.IEvaluationService.requestEvaluation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。