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; | |
/** | |
* @author ADG5COB - | |
*/ | |
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()); | |
} | |
} |