/******************************************************************************* | |
* <copyright> | |
* | |
* Copyright (c) 2011, 2011 SAP AG. | |
* 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: | |
* mwenz - Bug 341224: Allow to hide the selection and marquee tools in the palette | |
* | |
* </copyright> | |
* | |
*******************************************************************************/ | |
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; | |
} | |
} |