Revision 1606

tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/ITXMPartEditor.java (revision 1606)
1
package org.txm.rcp.editors;
2

  
3
import org.txm.core.results.TXMResult;
4

  
5
// FIXME: SJ: no more in use, need to check if its really needed then update it to match the new TXMEditor methods or wipe this class
6
@Deprecated
7
public interface ITXMPartEditor {
8

  
9
	public boolean isDirty();
10

  
11
	/**
12
	 * Returns the result object associated with the editor through its editor input.
13
	 * @return
14
	 */
15
	public TXMResult getResultData();
16

  
17
	/**
18
	 * Synchronizes the editor with the result and refreshes the corpus view. 
19
	 */
20
	public void refresh();
21

  
22
	/**
23
	 * Synchronizes the editor with the result. 
24
	 * Dedicated to dynamically change the editor informations (as the part name) from the stored result.
25
	 */
26
	public void synchronize();
27

  
28
	/**
29
	 * Deletes the linked TXM result.
30
	 * @return
31
	 */
32
	public boolean deleteResult();
33

  
34
	/**
35
	 * Closes the editor from the UI thread and deletes or not the linked result.
36
	 */
37
	public void close(final boolean deleteResult);
38

  
39
	/**
40
	 * Closes the editor from the UI thread.
41
	 */
42
	public boolean usingParent(TXMResult parent);
43

  
44
	/**
45
	 * set the editor part name
46
	 * 
47
	 * @param partName
48
	 */
49
	public void setName(String partName);
50

  
51
}

Also available in: Unified diff