/******************************************************************************* | |
* 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 contribution and API | |
*******************************************************************************/ | |
package org.eclipse.blockchain.ui; | |
import org.eclipse.blockchain.core.BlockchainViewsRegistry; | |
import org.eclipse.blockchain.ui.views.TransactionHistoryView; | |
import org.eclipse.swt.SWT; | |
import org.eclipse.ui.PlatformUI; | |
import org.eclipse.ui.plugin.AbstractUIPlugin; | |
import org.osgi.framework.BundleContext; | |
import javafx.embed.swt.FXCanvas; | |
/** | |
* Blockchain UI Plugin activator | |
*/ | |
public class Activator extends AbstractUIPlugin { | |
/** | |
* The plugin id | |
*/ | |
public static final String PLUGIN_ID = "org.eclipse.blockchain.ui"; | |
/** | |
* {@inheritDoc} | |
*/ | |
@Override | |
public void start(final BundleContext context) throws Exception { | |
super.start(context); | |
new FXCanvas(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), SWT.NONE); | |
BlockchainViewsRegistry.registerBlockchainView(new TransactionHistoryView()); | |
} | |
} |