| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2009, 2013 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 | * Francois Chouinard - Initial API and implementation |
| 11 | *******************************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.tmf.core; |
| 14 | |
| 15 | import org.eclipse.core.resources.IProject; |
| 16 | import org.eclipse.core.resources.IProjectNature; |
| 17 | import org.eclipse.core.runtime.CoreException; |
| 18 | |
| 19 | /** |
| 20 | * The TMF basic tracing project nature. |
| 21 | * |
| 22 | * @version 1.0 |
| 23 | * @author Francois Chouinard |
| 24 | */ |
| 25 | public class TmfProjectNature implements IProjectNature { |
| 26 | |
| 27 | // ------------------------------------------------------------------------ |
| 28 | // Constants |
| 29 | // ------------------------------------------------------------------------ |
| 30 | |
| 31 | /** |
| 32 | * The nature ID |
| 33 | */ |
| 34 | public static final String ID = "org.eclipse.linuxtools.tmf.project.nature"; //$NON-NLS-1$ |
| 35 | |
| 36 | // ------------------------------------------------------------------------ |
| 37 | // Attributes |
| 38 | // ------------------------------------------------------------------------ |
| 39 | |
| 40 | private IProject fProject; |
| 41 | |
| 42 | // ------------------------------------------------------------------------ |
| 43 | // Operations |
| 44 | // ------------------------------------------------------------------------ |
| 45 | |
| 46 | @Override |
| 47 | public void configure() throws CoreException { |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public void deconfigure() throws CoreException { |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public IProject getProject() { |
| 56 | return fProject; |
| 57 | } |
| 58 | |
| 59 | @Override |
| 60 | public void setProject(IProject project) { |
| 61 | fProject = project; |
| 62 | } |
| 63 | |
| 64 | } |