| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2009 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 | /* (non-Javadoc) |
| 47 | * @see org.eclipse.core.resources.IProjectNature#configure() |
| 48 | */ |
| 49 | @Override |
| 50 | public void configure() throws CoreException { |
| 51 | } |
| 52 | |
| 53 | /* (non-Javadoc) |
| 54 | * @see org.eclipse.core.resources.IProjectNature#deconfigure() |
| 55 | */ |
| 56 | @Override |
| 57 | public void deconfigure() throws CoreException { |
| 58 | } |
| 59 | |
| 60 | @Override |
| 61 | public IProject getProject() { |
| 62 | return fProject; |
| 63 | } |
| 64 | |
| 65 | /* (non-Javadoc) |
| 66 | * @see org.eclipse.core.resources.IProjectNature#setProject(org.eclipse.core.resources.IProject) |
| 67 | */ |
| 68 | @Override |
| 69 | public void setProject(IProject project) { |
| 70 | fProject = project; |
| 71 | } |
| 72 | |
| 73 | } |