本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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;
}
示例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);
}
}
}
示例6: evaluate
import org.eclipse.ui.services.IEvaluationService; //导入方法依赖的package包/类
public void evaluate() {
IEvaluationService evaluationService = getEvaluationService();
if( evaluationService != null ) {
evaluationService.requestEvaluation( PreferencePropertyTester.PROP_IS_TRUE );
}
}