blob: 0e0653c8fe12d2df725dee7328910a1f371fe94e (
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
|
/*******************************************************************************
* Copyright (c) 2011, 2014 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;
/**
* The persistable filter action used by TreeViewerState to save and restore the tree viewer's filter
* action.
*/
class FilterState {
// The filter's id.
private String filterId;
// If the filter is enabled.
private boolean enabled;
/**
* Get the filter's id.
*
* @return The filter's id.
*/
public String getFilterId() {
return filterId;
}
/**
* Set the filter's id.
*
* @param filterId The new filter id.
*/
public void setFilterId(String filterId) {
this.filterId = filterId;
}
/**
* Return if the filter is enabled.
*
* @return If the filter is enabled.
*/
public boolean isEnabled() {
return enabled;
}
/**
* Set the filer's enabled action.
*
* @param enabled true if the filter is enabled.
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
|