ResizeContext extends AreaContext instead LocationContext
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/IResizeContext.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/IResizeContext.java
index 54e19ec..0db594a 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/IResizeContext.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/IResizeContext.java
@@ -27,19 +27,5 @@
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*/
-public interface IResizeContext extends ILocationContext {
-
- /**
- * Gets the width.
- *
- * @return the width
- */
- int getWidth();
-
- /**
- * Gets the height.
- *
- * @return the height
- */
- int getHeight();
+public interface IResizeContext extends IAreaContext {
}
\ No newline at end of file
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/ResizeContext.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/ResizeContext.java
index e5d6b3a..3b69496 100644
--- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/ResizeContext.java
+++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/context/impl/ResizeContext.java
@@ -13,9 +13,6 @@
* </copyright>
*
*******************************************************************************/
-/*
- * Created on 20.06.2005
- */
package org.eclipse.graphiti.features.context.impl;
import org.eclipse.graphiti.features.context.IResizeContext;
@@ -23,63 +20,11 @@
/**
* The Class ResizeContext.
*/
-public class ResizeContext extends LocationContext implements IResizeContext {
-
- private int height = -1;
-
- private int width = -1;
+public class ResizeContext extends AreaContext implements IResizeContext {
/**
* Creates a new {@link ResizeContext}.
*/
public ResizeContext() {
}
-
- public int getHeight() {
- return this.height;
- }
-
- public int getWidth() {
- return this.width;
- }
-
- /**
- * Sets the height.
- *
- * @param height
- * The height to set.
- */
- public void setHeight(int height) {
- this.height = height;
- }
-
- /**
- * Sets the size.
- *
- * @param width
- * the width
- * @param height
- * the height
- */
- public void setSize(int width, int height) {
- this.width = width;
- this.height = height;
- }
-
- /**
- * Sets the width.
- *
- * @param width
- * The width to set.
- */
- public void setWidth(int width) {
- this.width = width;
- }
-
- @Override
- public String toString() {
- String ret = super.toString();
- ret = ret + "(width=" + getWidth() + ", height=" + getHeight() + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- return ret;
- }
}