/******************************************************************************* | |
* 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: | |
* Deepthi Murugaiyan - Initial contribution and API | |
*******************************************************************************/ | |
package org.eclipse.blockchain.ui.perspective; | |
import org.eclipse.blockchain.ui.console.EtherConsoleFactory; | |
import org.eclipse.ui.IStartup; | |
import org.eclipse.ui.PlatformUI; | |
/** | |
* Blockchain perspective start-up | |
*/ | |
public class PerspectiveStartup implements IStartup { | |
/** | |
* {@inheritDoc} | |
*/ | |
@Override | |
public void earlyStartup() { | |
PlatformUI.getWorkbench().getPerspectiveRegistry() | |
.setDefaultPerspective("org.eclipse.blockchain.ui.perspective"); | |
EtherConsoleFactory.getInstance().openConsole(); | |
} | |
} |