/******************************************************************************* | |
* Copyright (c) 2017 SSI Schaefer IT Solutions GmbH and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* SSI Schaefer IT Solutions GmbH | |
*******************************************************************************/ | |
package org.eclipse.tea.core.ui.internal; | |
import org.eclipse.tea.core.TaskExecutionContext; | |
import org.eclipse.tea.core.annotations.TaskChainContextInit; | |
import org.eclipse.tea.core.annotations.TaskChainMenuEntry; | |
import org.eclipse.tea.core.internal.tasks.BuiltinTaskListChains; | |
import org.eclipse.tea.core.services.TaskChain; | |
import org.eclipse.tea.core.services.TaskChain.TaskChainId; | |
import org.eclipse.tea.core.ui.DevelopmentMenuDecoration; | |
import org.osgi.service.component.annotations.Component; | |
@TaskChainId(description = "Print all registered TaskChains") | |
@TaskChainMenuEntry(development = true, path = "Development", icon = "resources/tea.png", groupingId = DevelopmentMenuDecoration.DEV_GROUP_LISTS) | |
@Component | |
public class PrintTaskChains implements TaskChain { | |
@TaskChainContextInit | |
public void init(TaskExecutionContext c) { | |
c.addTask(new BuiltinTaskListChains()); | |
} | |
} |