Commit | Line | Data |
---|---|---|
06b9339e BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2012 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Bernd Hufmann - Initial API and implementation | |
11 | **********************************************************************/ | |
115b4a01 | 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.property; |
06b9339e BH |
13 | |
14 | import org.eclipse.ui.views.properties.IPropertyDescriptor; | |
15 | import org.eclipse.ui.views.properties.IPropertySource; | |
16 | ||
17 | /** | |
06b9339e BH |
18 | * <p> |
19 | * Base property source implementation. | |
20 | * </p> | |
dbd4432d BH |
21 | * |
22 | * @author Bernd Hufmann | |
06b9339e BH |
23 | */ |
24 | abstract public class BasePropertySource implements IPropertySource { | |
25 | ||
26 | // ------------------------------------------------------------------------ | |
27 | // Operations | |
28 | // ------------------------------------------------------------------------ | |
29 | /* | |
30 | * (non-Javadoc) | |
31 | * @see org.eclipse.ui.views.properties.IPropertySource#getEditableValue() | |
32 | */ | |
33 | @Override | |
34 | public Object getEditableValue() { | |
35 | return null; | |
36 | } | |
37 | ||
38 | /* | |
39 | * (non-Javadoc) | |
40 | * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors() | |
41 | */ | |
42 | @Override | |
43 | abstract public IPropertyDescriptor[] getPropertyDescriptors(); | |
44 | ||
45 | /* | |
46 | * (non-Javadoc) | |
47 | * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object) | |
48 | */ | |
49 | @Override | |
50 | abstract public Object getPropertyValue(Object id); | |
51 | ||
52 | /* | |
53 | * (non-Javadoc) | |
54 | * @see org.eclipse.ui.views.properties.IPropertySource#isPropertySet(java.lang.Object) | |
55 | */ | |
56 | @Override | |
57 | public boolean isPropertySet(Object id) { | |
58 | return false; | |
59 | } | |
60 | ||
61 | /* | |
62 | * (non-Javadoc) | |
63 | * @see org.eclipse.ui.views.properties.IPropertySource#resetPropertyValue(java.lang.Object) | |
64 | */ | |
65 | @Override | |
66 | public void resetPropertyValue(Object id) { | |
67 | } | |
68 | ||
69 | /* | |
70 | * (non-Javadoc) | |
71 | * @see org.eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object) | |
72 | */ | |
73 | @Override | |
74 | public void setPropertyValue(Object id, Object value) { | |
75 | } | |
76 | } |