blob: 7176697ba58e6bdb7ca040b9dbe5c62cfb850aa8 [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2011, 2019 SAP SE
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* mwenz - Bug 341224: Allow to hide the selection and marquee tools in the palette
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti.bot.tests;
import org.eclipse.graphiti.dt.AbstractDiagramTypeProvider;
import org.eclipse.graphiti.tb.IToolBehaviorProvider;
import org.eclipse.graphiti.ui.features.DefaultFeatureProvider;
public class DTPwithHiddenSelectionAndMarqueeTool extends AbstractDiagramTypeProvider {
private IToolBehaviorProvider[] toolBehaviorProviders;
public DTPwithHiddenSelectionAndMarqueeTool() {
super();
setFeatureProvider(new DefaultFeatureProvider(this));
}
@Override
public IToolBehaviorProvider[] getAvailableToolBehaviorProviders() {
if (toolBehaviorProviders == null) {
toolBehaviorProviders = new IToolBehaviorProvider[] { new TBPwithHiddenSelectionAndMarqueeTool(this) };
}
return toolBehaviorProviders;
}
}