| /******************************************************************************* |
| * Copyright (c) 2020 RBEI and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v. 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Adhith Gopal - Initial API and Implementation |
| *******************************************************************************/ |
| package org.eclipse.blockchain.core; |
| |
| import org.eclipse.core.resources.IProject; |
| import org.eclipse.core.resources.IProjectNature; |
| import org.eclipse.core.runtime.CoreException; |
| |
| /** |
| * Ethereum Project Nature class |
| */ |
| public class EthereumNature implements IProjectNature { |
| |
| private IProject project; |
| /** |
| * Ethereum Project nature |
| */ |
| public static final String ETHEREUM_NATURE = "org.eclipse.blockchain.core.ethereum.nature"; |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public void configure() throws CoreException { |
| // TODO Auto-generated method stub |
| |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public void deconfigure() throws CoreException { |
| // TODO Auto-generated method stub |
| |
| } |
| |
| /** |
| * {@inheritDoc} Do not use this to get the Ethereum project instance |
| */ |
| @Override |
| public IProject getProject() { |
| return this.project; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public void setProject(final IProject project) { |
| this.project = project; |
| } |
| } |