/******************************************************************************* * Copyright (c) 2010 protos software gmbh (http://www.protos.de). * 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: * Thomas Schuetz and Henrik Rentz-Reichert (initial contribution) * *******************************************************************************/ package org.eclipse.etrice.ui.common.support; import org.eclipse.graphiti.features.IFeatureProvider; import org.eclipse.graphiti.features.IResizeConfiguration; import org.eclipse.graphiti.features.context.IResizeShapeContext; import org.eclipse.graphiti.features.impl.DefaultResizeShapeFeature; public class NoResizeFeature extends DefaultResizeShapeFeature { public NoResizeFeature(IFeatureProvider fp) { super(fp); } @Override public boolean canResizeShape(IResizeShapeContext context) { return false; } @Override public IResizeConfiguration getResizeConfiguration() { return new IResizeConfiguration() { @Override public boolean isVerticalResizeAllowed() { return false; } @Override public boolean isHorizantalResizeAllowed() { return false; } }; } }