blob: 6cfbf3beb47d9def524f615bcd3fb3d93e62c97f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.texteditor;
/**
* Extension interface for {@link org.eclipse.ui.texteditor.ITextEditor}. Adds
* the following functions:
* <ul>
* <li>insert mode management</li>
* </ul>
*
* @since 3.0
*/
public interface ITextEditorExtension3 {
/**
* Constitutes entities to enumerate the editor insert modes.
*/
public static class InsertMode {
private InsertMode() {
}
}
/**
* Represents the non-smart insert mode.
*/
final static InsertMode INSERT= new InsertMode();
/**
* Represents the smart insert mode.
*/
final static InsertMode SMART_INSERT= new InsertMode();
/**
* Returns the current input mode of this editor.
*
* @return the current input mode of this editor
*/
InsertMode getInsertMode();
/**
* Sets the insert mode of this editor.
*
* @param mode the new insert mode
* @exception IllegalArgumentException if <code>mode</code> is not a legal insert mode for this editor
*/
void setInsertMode(InsertMode mode);
/**
* Sets the display of quick diff information.
*
* @param show <code>true</code> if quick diff information should be shown, <code>false</code> otherwise
*/
void showChangeInformation(boolean show);
/**
* Returns the quick diff display state.
*
* @return <code>true</code> if quick diff info is displayed, <code>false</code> otherwise
*/
boolean isChangeInformationShowing();
}
|