blob: 77106fd29f6efa98cc67ac8f2f519af08fb3529d (
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) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.ui.trees;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.jface.viewers.ITreeContentProvider;
/**
* A data structure to describe a viewer.
*/
public class ViewerDescriptor {
// The style configuration element.
private IConfigurationElement styleConfig;
// The drag support configuration.
private IConfigurationElement dragConfig;
// The drop support configuration.
private IConfigurationElement dropConfig;
// The content provider for the tree viewer.
private ITreeContentProvider contentProvider;
// If the action of the tree viewer is persistent.
private boolean persistent = false;
// The auto expand level.
private int autoExpandLevel = 2;
public IConfigurationElement getStyleConfig() {
return styleConfig;
}
public void setStyleConfig(IConfigurationElement styleConfig) {
this.styleConfig = styleConfig;
}
public IConfigurationElement getDragConfig() {
return dragConfig;
}
public void setDragConfig(IConfigurationElement dragConfig) {
this.dragConfig = dragConfig;
}
public IConfigurationElement getDropConfig() {
return dropConfig;
}
public void setDropConfig(IConfigurationElement dropConfig) {
this.dropConfig = dropConfig;
}
public ITreeContentProvider getContentProvider() {
return contentProvider;
}
public void setContentProvider(ITreeContentProvider contentProvider) {
this.contentProvider = contentProvider;
}
public boolean isPersistent() {
return persistent;
}
public void setPersistent(boolean persistent) {
this.persistent = persistent;
}
public int getAutoExpandLevel() {
return autoExpandLevel;
}
public void setAutoExpandLevel(int autoExpandLevel) {
this.autoExpandLevel = autoExpandLevel;
}
}
|