KickJava   Java API By Example, From Geeks To Geeks.

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


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.jface.util.IPropertyChangeListener;
15
16 /**
17  * This is not meant to be implemented or extended by clients.
18  *
19  * @since 3.3
20  *
21  */

22 public interface IEvaluationReference extends IEvaluationResultCache {
23     public IPropertyChangeListener getListener();
24
25     public String JavaDoc getProperty();
26
27     /**
28      * Sets whether or not the property change listener should be notified on
29      * changes to the expression held by this result cache. Setting this to
30      * <code>false</code> is useful for times in which you want to prevent flopping of the UI
31      * on variable changes (ie: shell activation).
32      *
33      * @param evaluationEnabled
34      */

35     public void setPostingChanges(boolean evaluationEnabled);
36
37     /**
38      * Returns whether or not the property change listener should be notified on
39      * changes to the expression held by this result cache. Setting this to
40      * <code>false</code> is useful for times in which you want to prevent flopping of the UI
41      * on variable changes (ie: shell activation).
42      *
43      * @return whether or not listeners should be notified at this time.
44      */

45     public boolean isPostingChanges();
46     
47     /**
48      * Return an evaluation reference that could be impacted by changes to this
49      * evaluation reference.
50      *
51      * @return the reference. May be <code>null</code>.
52      */

53     public IEvaluationReference getTargetReference();
54     
55     /**
56      * Set an evaluation reference that could be impacted by changes to this
57      * evaluation reference.
58      *
59      * @param ref the reference. May be <code>null</code>.
60      */

61     public void setTargetReference(IEvaluationReference ref);
62 }
63
Popular Tags