KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > services > IEvaluationService


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.ui.internal.services;
13
14 import org.eclipse.core.expressions.Expression;
15 import org.eclipse.core.expressions.IEvaluationContext;
16 import org.eclipse.jface.util.IPropertyChangeListener;
17 import org.eclipse.ui.services.IServiceWithSources;
18
19 /**
20  * This should be more a more generic way to have your core expressions
21  * evaluated. This is internal in 3.3, and highly experimental.
22  *
23  * @since 3.3
24  */

25 public interface IEvaluationService extends IServiceWithSources {
26     public static final String JavaDoc RESULT = "org.eclipse.ui.services.result"; //$NON-NLS-1$
27
public static final String JavaDoc PROP_NOTIFYING = "org.eclipse.ui.services.notifying"; //$NON-NLS-1$
28

29
30     public void addServiceListener(IPropertyChangeListener listener);
31
32     public void removeServiceListener(IPropertyChangeListener listener);
33
34     public IEvaluationReference addEvaluationListener(Expression expression,
35             IPropertyChangeListener listener, String JavaDoc property, Expression restrictEvaluation);
36
37     public void removeEvaluationListener(IEvaluationReference ref);
38
39     public IEvaluationContext getCurrentState();
40 }
41
Popular Tags