Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/AbstractPanelPart.java')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/AbstractPanelPart.java29
1 files changed, 14 insertions, 15 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/AbstractPanelPart.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/AbstractPanelPart.java
index 1f052fa422a..529665bbc69 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/AbstractPanelPart.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/internal/AbstractPanelPart.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.infra.core.sasheditor.internal;
-import org.eclipse.papyrus.infra.core.sasheditor.internal.AbstractPart.GarbageState;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.internal.dnd.IDropTarget;
@@ -49,25 +48,25 @@ public abstract class AbstractPanelPart extends AbstractPart {
*
* @param container
*/
- abstract public void createPartControl(Composite container);
+ public abstract void createPartControl(Composite container);
/**
* Dispose all nested SWT controls.
*/
- abstract public void dispose();
+ public abstract void dispose();
/**
* Dispose this part and all its children.
* The method is called recursively on children of the part.
*/
- abstract public void disposeThisAndChildren();
+ public abstract void disposeThisAndChildren();
/**
* Visit the part.
*
* @param visitor
*/
- abstract public boolean visit(IPartVisitor visitor);
+ public abstract boolean visit(IPartVisitor visitor);
/**
* Synchronize the part and its children with the models in contentProvider.
@@ -75,7 +74,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* @param existingParts
* List of already existing part before the synchronization.
*/
- abstract public void synchronize2(PartLists existingParts);
+ public abstract void synchronize2(PartLists existingParts);
/**
* Return true is the part is for the specified raw model.
@@ -84,7 +83,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* @param rawModel
* @return
*/
- abstract public boolean isPartFor(Object rawModel);
+ public abstract boolean isPartFor(Object rawModel);
/**
* Orphan this node. The parent is set to null, but control is left unchanged.
@@ -114,7 +113,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
} else {
// Bad state, this is an internal error
// TODO : log a warning ?
- throw new IllegalStateException("Try to change state from " + garbageState.toString() + " to UNCHANGED. This is forbidden.");
+ throw new IllegalStateException("Try to change state from " + garbageState.toString() + " to UNCHANGED. This is forbidden."); //$NON-NLS-1$ //$NON-NLS-2$
}
}
@@ -125,7 +124,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* @param newParent
* The new parent to which the part should be attached.
*/
- abstract public void reparent(IPanelParent newParent, Composite swtParent);
+ public abstract void reparent(IPanelParent newParent, Composite swtParent);
/**
* Collect all the parts. The method is called recursively in the tree of parts.
@@ -133,7 +132,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* @param parts
* The list into which parts are added.
*/
- abstract public void fillPartMap(PartLists parts);
+ public abstract void fillPartMap(PartLists parts);
/**
* Traverses the tree to find the part that intersects the given point
@@ -143,7 +142,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* @return the part that intersects the given point
* @throws NotFoundException
*/
- abstract public AbstractPart findPart(Point toFind) throws NotFoundException;
+ public abstract AbstractPart findPart(Point toFind) throws NotFoundException;
/**
* Find the part associated to the provided control.
@@ -151,7 +150,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* @param control
* @return
*/
- abstract public AbstractPart findPart(Object control);
+ public abstract AbstractPart findPart(Object control);
/**
* Locates the part that intersects the given point and that have the expected type
@@ -160,7 +159,7 @@ public abstract class AbstractPanelPart extends AbstractPart {
* Position in Display coordinate.
* @return
*/
- abstract public AbstractPart findPartAt(Point toFind, Class<?> expectedTileType);
+ public abstract AbstractPart findPartAt(Point toFind, Class<?> expectedTileType);
/* ***************************************************** */
/* Drag and Drop methods */
@@ -169,13 +168,13 @@ public abstract class AbstractPanelPart extends AbstractPart {
/**
* Return the swt Control associated to this part.
*/
- abstract public Composite getControl();
+ public abstract Composite getControl();
/**
* Get the drop target.
* Used by the drag tab mechanism.
*/
- abstract public IDropTarget getDropTarget(Object draggedObject, TabFolderPart sourcePart, Point position);
+ public abstract IDropTarget getDropTarget(Object draggedObject, TabFolderPart sourcePart, Point position);
}

Back to the top