blob: 3b03992f4bac4b7bfaf397eab55ff1eac001cdbe (
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
75
76
77
78
79
|
/*******************************************************************************
* Copyright (c) 2000, 2017 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.team.ui;
import org.eclipse.compare.CompareEditorInput;
import org.eclipse.compare.CompareUI;
import org.eclipse.ui.*;
/**
* This adapter provides default implementations for methods on {@link ISaveableWorkbenchPart} and
* {@link IWorkbenchPart}.
* <p>
* Classes that want to implement a saveable part can simply implement the methods that
* they need while accepting the provided defaults for most of the methods.
* </p>
* @see SaveablePartDialog
* @since 3.0
* @deprecated Clients should use a subclass of {@link CompareEditorInput}
* and {@link CompareUI#openCompareDialog(org.eclipse.compare.CompareEditorInput)}
*/
@Deprecated
public abstract class SaveablePartAdapter implements ISaveableWorkbenchPart {
@Override
public void doSaveAs() {
}
@Override
public boolean isSaveAsAllowed() {
return false;
}
@Override
public boolean isSaveOnCloseNeeded() {
return false;
}
@Override
public void addPropertyListener(IPropertyListener listener) {
}
@Override
public void dispose() {
}
@Override
public IWorkbenchPartSite getSite() {
return null;
}
@Override
public String getTitleToolTip() {
return null;
}
@Override
public void removePropertyListener(IPropertyListener listener) {
}
@Override
public void setFocus() {
}
@Override
public <T> T getAdapter(Class<T> adapter) {
return null;
}
}
|