| 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 | **********************************************************************/ |
| 12 | package org.eclipse.linuxtools.internal.lttng.ui.views.control.property; |
| 13 | |
| 14 | import org.eclipse.ui.views.properties.IPropertyDescriptor; |
| 15 | import org.eclipse.ui.views.properties.IPropertySource; |
| 16 | |
| 17 | /** |
| 18 | * <b><u>BaseEventPropertySource</u></b> |
| 19 | * <p> |
| 20 | * Base property source implementation. |
| 21 | * </p> |
| 22 | */ |
| 23 | abstract public class BasePropertySource implements IPropertySource { |
| 24 | |
| 25 | // ------------------------------------------------------------------------ |
| 26 | // Operations |
| 27 | // ------------------------------------------------------------------------ |
| 28 | /* |
| 29 | * (non-Javadoc) |
| 30 | * @see org.eclipse.ui.views.properties.IPropertySource#getEditableValue() |
| 31 | */ |
| 32 | @Override |
| 33 | public Object getEditableValue() { |
| 34 | return null; |
| 35 | } |
| 36 | |
| 37 | /* |
| 38 | * (non-Javadoc) |
| 39 | * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors() |
| 40 | */ |
| 41 | @Override |
| 42 | abstract public IPropertyDescriptor[] getPropertyDescriptors(); |
| 43 | |
| 44 | /* |
| 45 | * (non-Javadoc) |
| 46 | * @see org.eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object) |
| 47 | */ |
| 48 | @Override |
| 49 | abstract public Object getPropertyValue(Object id); |
| 50 | |
| 51 | /* |
| 52 | * (non-Javadoc) |
| 53 | * @see org.eclipse.ui.views.properties.IPropertySource#isPropertySet(java.lang.Object) |
| 54 | */ |
| 55 | @Override |
| 56 | public boolean isPropertySet(Object id) { |
| 57 | return false; |
| 58 | } |
| 59 | |
| 60 | /* |
| 61 | * (non-Javadoc) |
| 62 | * @see org.eclipse.ui.views.properties.IPropertySource#resetPropertyValue(java.lang.Object) |
| 63 | */ |
| 64 | @Override |
| 65 | public void resetPropertyValue(Object id) { |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * (non-Javadoc) |
| 70 | * @see org.eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object) |
| 71 | */ |
| 72 | @Override |
| 73 | public void setPropertyValue(Object id, Object value) { |
| 74 | } |
| 75 | } |