/*******************************************************************************
- * Copyright (c) 2010 Ericsson
- *
+ * Copyright (c) 2010, 2013 Ericsson
+ *
* 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:
* Francois Chouinard - Initial API and implementation
*******************************************************************************/
* <p>
* @version 1.0
* @author Francois Chouinard
- *
+ *
*/
public class TmfExperimentFolder extends TmfProjectModelElement implements IPropertySource2 {
// ------------------------------------------------------------------------
/**
- * Constructor.
+ * Constructor.
* Creates a TmfExperimentFolder model element.
* @param name The name of the folder
* @param folder The folder reference
public IFolder getResource() {
return (IFolder) fResource;
}
-
+
/*
* (non-Javadoc)
* @see org.eclipse.linuxtools.tmf.ui.project.model.ITmfProjectModelElement#getProject()
public TmfProjectElement getProject() {
return (TmfProjectElement) getParent();
}
-
+
/*
* (non-Javadoc)
* @see org.eclipse.linuxtools.tmf.ui.project.model.TmfProjectModelElement#refresh()
}
// ------------------------------------------------------------------------
- // IPropertySource2\r // ------------------------------------------------------------------------\r
+ // IPropertySource2
+ // ------------------------------------------------------------------------
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource#getEditableValue()
- */\r @Override\r public Object getEditableValue() {\r return null;\r }\r
+ */
+ @Override
+ public Object getEditableValue() {
+ return null;
+ }
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource#getPropertyDescriptors()
- */\r @Override\r public IPropertyDescriptor[] getPropertyDescriptors() {\r return (sfDescriptors != null) ? Arrays.copyOf(sfDescriptors, sfDescriptors.length) : null;\r }\r
+ */
+ @Override
+ public IPropertyDescriptor[] getPropertyDescriptors() {
+ return Arrays.copyOf(sfDescriptors, sfDescriptors.length);
+ }
+
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource#getPropertyValue(java.lang.Object)
- */\r @Override\r public Object getPropertyValue(Object id) {\r\r if (sfName.equals(id))\r return getName();\r\r if (sfPath.equals(id))\r return getPath().toString();\r\r if (sfLocation.equals(id))\r return getLocation().toString();\r\r return null;\r }\r /*
+ */
+ @Override
+ public Object getPropertyValue(Object id) {
+
+ if (sfName.equals(id)) {
+ return getName();
+ }
+
+ if (sfPath.equals(id)) {
+ return getPath().toString();
+ }
+
+ if (sfLocation.equals(id)) {
+ return getLocation().toString();
+ }
+
+ return null;
+ }
+ /*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource#resetPropertyValue(java.lang.Object)
- */\r @Override\r public void resetPropertyValue(Object id) {\r }\r
+ */
+ @Override
+ public void resetPropertyValue(Object id) {
+ }
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource#setPropertyValue(java.lang.Object, java.lang.Object)
- */\r @Override\r public void setPropertyValue(Object id, Object value) {\r }\r
+ */
+ @Override
+ public void setPropertyValue(Object id, Object value) {
+ }
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource2#isPropertyResettable(java.lang.Object)
- */\r @Override\r public boolean isPropertyResettable(Object id) {\r return false;\r }\r
+ */
+ @Override
+ public boolean isPropertyResettable(Object id) {
+ return false;
+ }
/*
* (non-Javadoc)
* @see org.eclipse.ui.views.properties.IPropertySource2#isPropertySet(java.lang.Object)
- */\r @Override\r public boolean isPropertySet(Object id) {\r return false;\r }
+ */
+ @Override
+ public boolean isPropertySet(Object id) {
+ return false;
+ }
+
+}
-}\r\r
\ No newline at end of file