Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • af3/kernel
  • diewald/kernel
2 results
Show changes
Commits on Source (102)
Showing
with 48 additions and 999 deletions
......@@ -25,3 +25,12 @@
[submodule "org.fortiss.tooling.spiderchart.ui/.settings"]
path = org.fortiss.tooling.spiderchart.ui/.settings
url = https://git.fortiss.org/af3/plugin-settings.git
[submodule "org.fortiss.tooling.variability/.settings"]
path = org.fortiss.tooling.variability/.settings
url = https://git.fortiss.org/af3/plugin-settings.git
[submodule "org.fortiss.tooling.variability.ui/.settings"]
path = org.fortiss.tooling.variability.ui/.settings
url = https://git.fortiss.org/af3/plugin-settings.git
[submodule "org.fortiss.variability/.settings"]
path = org.fortiss.variability/.settings
url = https://git.fortiss.org/af3/plugin-settings.git
......@@ -17,31 +17,20 @@ Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-Vendor: fortiss GmbH
Export-Package: org.fortiss.tooling.base.ui,
org.fortiss.tooling.base.ui.annotation.view,
org.fortiss.tooling.base.ui.annotation.view.fx,
org.fortiss.tooling.base.ui.contentprovider,
org.fortiss.tooling.base.ui.dialog,
org.fortiss.tooling.base.ui.dnd.gef,
org.fortiss.tooling.base.ui.dnd.jface,
org.fortiss.tooling.base.ui.editor,
org.fortiss.tooling.base.ui.editor.annotations,
org.fortiss.tooling.base.ui.editor.fx.controller,
org.fortiss.tooling.base.ui.editor.fx.model,
org.fortiss.tooling.base.ui.editor.fx.visual,
org.fortiss.tooling.base.ui.editpart,
org.fortiss.tooling.base.ui.editpart.allocation,
org.fortiss.tooling.base.ui.editpart.command,
org.fortiss.tooling.base.ui.editpart.command.bendpoint,
org.fortiss.tooling.base.ui.editpart.figure,
org.fortiss.tooling.base.ui.editpart.policy,
org.fortiss.tooling.base.ui.editpart.request,
org.fortiss.tooling.base.ui.extension.base,
org.fortiss.tooling.base.ui.fieldassist,
org.fortiss.tooling.base.ui.internal.command,
org.fortiss.tooling.base.ui.javafx.control.contentprovider,
org.fortiss.tooling.base.ui.javafx.control.treetableview,
org.fortiss.tooling.base.ui.layout,
org.fortiss.tooling.base.ui.layout.auto,
org.fortiss.tooling.base.ui.library,
org.fortiss.tooling.base.ui.preferences,
org.fortiss.tooling.base.ui.properties.view,
org.fortiss.tooling.base.ui.utils,
......
......@@ -14,7 +14,7 @@
<!-- Keep ID constant in sync with org.fortiss.tooling.base.ui.annotation.view.IAnnotationViewPart.ANNOTATION_VIEW_ID -->
<extension point="org.eclipse.ui.views">
<view
class="org.fortiss.tooling.base.ui.annotation.view.fx.AnnotationFxViewPart"
class="org.fortiss.tooling.base.ui.annotation.view.AnnotationViewPart"
icon="icons/annotation.gif"
id="org.fortiss.tooling.base.ui.annotationView"
name="Annotations"
......
AnnotationFilterContentProvider.java 4cfc9452781fe151bc63faf7dff330d6e39942d4 GREEN
AnnotationTreeTableUIProvider.java 24ccf734fc3ecd1ba600ccc7f1e9e019c20be3e1 GREEN
AnnotationViewController.java a6eb15d93112434d2e1ecd84b476ad5edf51c6f7 GREEN
AnnotationViewPart.java 2442d3a048559fd6297e7be37567aec9178dc415 GREEN
AnnotationViewUtils.java 11b65e75fcbe7f91503793b9ca0354e25b8364cc GREEN
ColumnHandle.java cc21d5eb1d3d5c81f00c7b4eb95958dff1a034d2 GREEN
IAnnotationViewPart.java 5f267d95a19962637259c7478c48fe9c71c77864 GREEN
......@@ -13,7 +13,7 @@
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation.view.fx;
package org.fortiss.tooling.base.ui.annotation.view;
import static java.util.Collections.emptyList;
import static java.util.regex.Pattern.CASE_INSENSITIVE;
......@@ -29,18 +29,18 @@ import org.eclipse.emf.ecore.EObject;
import org.fortiss.tooling.base.annotation.AnnotationEntry;
import org.fortiss.tooling.base.model.element.IAnnotatedSpecification;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.base.ui.annotation.view.fx.AnnotationViewFXController.ArtificialRoot;
import org.fortiss.tooling.base.ui.annotation.view.AnnotationViewController.ArtificialRoot;
import org.fortiss.tooling.common.ui.javafx.control.treetableview.DynamicTreeContentProviderBase;
import org.fortiss.tooling.kernel.model.INamedElement;
import org.fortiss.tooling.kernel.model.IProjectRootElement;
/**
* Content provider with row and column filter for the {@link AnnotationViewFXController}.
* Content provider with row and column filter for the {@link AnnotationViewController}.
*
* @author barner
* @author bayha
*/
public class FXAnnotationFilterContentProvider
public class AnnotationFilterContentProvider
extends DynamicTreeContentProviderBase<AnnotationEntry> {
/** Filter hint text. */
static final String FILTER_HINT_TEXT = "type filter text (regex)";
......@@ -87,7 +87,7 @@ public class FXAnnotationFilterContentProvider
private Class<? extends IAnnotatedSpecification> annotationTypeFilter;
/** Constructor */
public FXAnnotationFilterContentProvider() {
public AnnotationFilterContentProvider() {
// Initialize filter expression to enable filtering also for empty patterns.
// (i.e. if only columns hall be filtered).
setFilterExpression("*");
......
......@@ -13,12 +13,12 @@
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation.view.fx;
package org.fortiss.tooling.base.ui.annotation.view;
import static java.util.stream.Collectors.joining;
import static org.fortiss.tooling.base.ui.annotation.view.fx.AnnotationsFXUtils.SELECTED_ANNOTATION_BACKGROUND_COLOR;
import static org.fortiss.tooling.base.ui.annotation.view.fx.AnnotationsFXUtils.getBackgroundColorForEntry;
import static org.fortiss.tooling.base.ui.annotation.view.fx.AnnotationsFXUtils.getValueLabel;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationViewUtils.SELECTED_ANNOTATION_BACKGROUND_COLOR;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationViewUtils.getBackgroundColorForEntry;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationViewUtils.getValueLabel;
import java.util.Collection;
......@@ -40,13 +40,13 @@ import javafx.scene.paint.Color;
/* package */ final class AnnotationTreeTableUIProvider
extends DynamicTreeTableUIProviderBase<AnnotationEntry> {
/** The {@link AnnotationViewFXController} this UI provider was created for. */
private final AnnotationViewFXController viewController;
/** The {@link AnnotationViewController} this UI provider was created for. */
private final AnnotationViewController viewController;
/**
* Constructor.
*/
AnnotationTreeTableUIProvider(AnnotationViewFXController annotationViewFXController) {
AnnotationTreeTableUIProvider(AnnotationViewController annotationViewFXController) {
this.viewController = annotationViewFXController;
}
......
......@@ -13,15 +13,15 @@
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation.view.fx;
package org.fortiss.tooling.base.ui.annotation.view;
import static java.util.Collections.emptyMap;
import static java.util.Collections.sort;
import static java.util.stream.Collectors.toList;
import static org.fortiss.tooling.base.ui.annotation.view.fx.AnnotationsFXUtils.getValueLabel;
import static org.fortiss.tooling.base.ui.annotation.view.fx.FXAnnotationFilterContentProvider.HIERARCHY_LEVELS_ALL;
import static org.fortiss.tooling.base.ui.annotation.view.fx.FXAnnotationFilterContentProvider.HIERARCHY_LEVELS_CURRENT;
import static org.fortiss.tooling.base.ui.annotation.view.fx.FXAnnotationFilterContentProvider.HIERARCHY_LEVELS_SELECTED_SUBMODEL;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationFilterContentProvider.HIERARCHY_LEVELS_ALL;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationFilterContentProvider.HIERARCHY_LEVELS_CURRENT;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationFilterContentProvider.HIERARCHY_LEVELS_SELECTED_SUBMODEL;
import static org.fortiss.tooling.base.ui.annotation.view.AnnotationViewUtils.getValueLabel;
import static org.fortiss.tooling.kernel.ui.util.SelectionUtils.checkAndPickFirst;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.getChildrenWithType;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.getFirstParentWithType;
......@@ -85,7 +85,7 @@ import javafx.scene.control.TreeTableView;
* @author bayha
*/
@SuppressWarnings("unchecked")
public class AnnotationViewFXController extends CompositeFXControllerBase<SplitPane, Node>
public class AnnotationViewController extends CompositeFXControllerBase<SplitPane, Node>
implements ISelectionListener {
/** Option text for the annotation type filter combo box. */
......@@ -147,8 +147,8 @@ public class AnnotationViewFXController extends CompositeFXControllerBase<SplitP
new HashMap<String, IAnnotatedSpecification>();
/** Content provider for the annotation table with all filtering functionality. */
private final FXAnnotationFilterContentProvider filterContentProvider =
new FXAnnotationFilterContentProvider();
private final AnnotationFilterContentProvider filterContentProvider =
new AnnotationFilterContentProvider();
/**
* Associates the handles of the annotations with their ordered column indexes.
......@@ -169,7 +169,7 @@ public class AnnotationViewFXController extends CompositeFXControllerBase<SplitP
/** {@inheritDoc} */
@Override
public String getFXMLLocation() {
return "AnnotationViewFx.fxml";
return "AnnotationView.fxml";
}
/** {@inheritDoc} */
......
......@@ -13,9 +13,8 @@
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation.view.fx;
package org.fortiss.tooling.base.ui.annotation.view;
import org.fortiss.tooling.base.ui.annotation.view.IAnnotationViewPart;
import org.fortiss.tooling.common.ui.javafx.AF3FXViewPart;
import javafx.scene.Scene;
......@@ -25,14 +24,14 @@ import javafx.scene.Scene;
*
* @author bayha
*/
public class AnnotationFxViewPart extends AF3FXViewPart implements IAnnotationViewPart {
public class AnnotationViewPart extends AF3FXViewPart implements IAnnotationViewPart {
/** The FX Controller for this view. */
private static final AnnotationViewFXController VIEW_CONTROLLER =
new AnnotationViewFXController();
private static final AnnotationViewController VIEW_CONTROLLER =
new AnnotationViewController();
/** Constructor. */
public AnnotationFxViewPart() throws Exception {
public AnnotationViewPart() throws Exception {
super(VIEW_CONTROLLER, null);
}
......
......@@ -13,7 +13,7 @@
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation.view.fx;
package org.fortiss.tooling.base.ui.annotation.view;
import static javafx.scene.paint.Color.BISQUE;
import static javafx.scene.paint.Color.LIGHTGREY;
......@@ -37,7 +37,7 @@ import javafx.scene.paint.Color;
*
* @author bayha
*/
public class AnnotationsFXUtils {
public class AnnotationViewUtils {
/** Background color for table cells, which are not editable and empty. */
public static final Color READ_ONLY_EMPTY_ANNOTATION_BACKGROUND_COLOR = LIGHTGREY;
......
......@@ -13,7 +13,7 @@
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation.view.fx;
package org.fortiss.tooling.base.ui.annotation.view;
import org.fortiss.tooling.base.annotation.AnnotationEntry;
import org.fortiss.tooling.base.annotation.valueprovider.AnnotationInstSpec;
......@@ -21,7 +21,7 @@ import org.fortiss.tooling.base.model.element.IAnnotatedSpecification;
/**
* Data required to identify a column displaying a particular {@link IAnnotatedSpecification} in
* a column of the {@link AnnotationViewFXController}. Used to sort columns (see
* a column of the {@link AnnotationViewController}. Used to sort columns (see
* {@link #compareTo(ColumnHandle)}).
*
* @author barner
......
AnnotationFxViewPart.java ca1548c49aa3842a9436262531464ba345b83688 GREEN
AnnotationTreeTableUIProvider.java 9efdeb7261cafe9dfe763daf20af186c906c3ec3 GREEN
AnnotationViewFXController.java 7017eb40e9511b6bdc40fcc5a95fd9f79247dfee GREEN
AnnotationsFXUtils.java e180d593b69b1e4b90adf83ba47753b29f9d6ff8 GREEN
ColumnHandle.java 7b0fe536d4eb9faa63c4d812f0c078cf83d0fd42 GREEN
FXAnnotationFilterContentProvider.java ca4587ef5dce1288ee4d7bf3bea5bd544ce6b89e GREEN
ConnectionCompositionDropTargetListener.java 4b7e08ad36ea432ef82f3185830c70d955da916b GREEN
ElementCompositionDropTargetListener.java 8941932b4cfe889c7b50de5ed88135a81166666d GREEN
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.dnd.gef;
import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.Request;
import org.eclipse.gef.dnd.AbstractTransferDropTargetListener;
import org.eclipse.swt.dnd.DND;
import org.fortiss.tooling.base.ui.editpart.policy.RelayCreateCommandEditPolicyBase;
import org.fortiss.tooling.base.ui.editpart.request.CreateConnectionCompositionRequest;
import org.fortiss.tooling.kernel.service.IConnectionCompositorService;
import org.fortiss.tooling.kernel.ui.dnd.CompositionServiceLocalDNDTransfer;
import org.fortiss.tooling.kernel.ui.dnd.ConnectionCompositionSource;
/**
* This class implements a drop target listener for {@link EditPartViewer}s,
* which creates {@link CreateConnectionCompositionRequest}s. The request
* contains an {@link ConnectionCompositionSource}. The request is usually
* handled by the target edit part's {@link RelayCreateCommandEditPolicyBase},
* which completes the DND operation with the target information. It then relays
* the completed DND operation to the {@link IConnectionCompositorService}.
*
* @author hoelzl
*/
public class ConnectionCompositionDropTargetListener extends AbstractTransferDropTargetListener {
/** Constructor. */
public ConnectionCompositionDropTargetListener(EditPartViewer viewer) {
super(viewer, CompositionServiceLocalDNDTransfer.getInstance());
setEnablementDeterminedByCommand(true);
}
/** {@inheritDoc} */
@Override
protected Request createTargetRequest() {
return new CreateConnectionCompositionRequest();
}
/** {@inheritDoc} */
@Override
protected void updateTargetRequest() {
CreateConnectionCompositionRequest req =
(CreateConnectionCompositionRequest)getTargetRequest();
req.setLocation(getDropLocation());
ConnectionCompositionSource sourceData = null;
if(getCurrentEvent().data instanceof ConnectionCompositionSource) {
sourceData = (ConnectionCompositionSource)getCurrentEvent().data;
} else {
Object object = CompositionServiceLocalDNDTransfer.getInstance().getObject();
if(object instanceof ConnectionCompositionSource) {
// There have been reports about SWT platform inconsistencies:
// on OSX getCurrentEvent().data might be null during dragging
// while it is not null on other platforms. Therefore, we use this
// fallback.
sourceData = (ConnectionCompositionSource)object;
}
}
req.setDragSource(sourceData);
}
/** {@inheritDoc} */
@Override
protected void handleDragOver() {
getCurrentEvent().detail = DND.DROP_LINK;
super.handleDragOver();
}
}
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.dnd.gef;
import org.eclipse.gef.EditPartViewer;
import org.eclipse.gef.Request;
import org.eclipse.gef.dnd.AbstractTransferDropTargetListener;
import org.eclipse.swt.dnd.DND;
import org.fortiss.tooling.base.ui.editpart.policy.RelayCreateCommandEditPolicyBase;
import org.fortiss.tooling.base.ui.editpart.request.CreateElementCompositionRequest;
import org.fortiss.tooling.kernel.service.IElementCompositorService;
import org.fortiss.tooling.kernel.ui.dnd.CompositionServiceLocalDNDTransfer;
import org.fortiss.tooling.kernel.ui.dnd.ElementCompositionSource;
/**
* This class implements a drop target listener for {@link EditPartViewer}s,
* which creates {@link CreateElementCompositionRequest}s. The request contains
* an {@link ElementCompositionSource}. The request is usually handled by the
* target edit part's {@link RelayCreateCommandEditPolicyBase}, which completes
* the DND operation with the target information. It then relays the completed
* DND operation to the {@link IElementCompositorService}.
*
* @author hoelzl
*/
public class ElementCompositionDropTargetListener extends AbstractTransferDropTargetListener {
/** Constructor. */
public ElementCompositionDropTargetListener(EditPartViewer viewer) {
super(viewer, CompositionServiceLocalDNDTransfer.getInstance());
setEnablementDeterminedByCommand(true);
}
/** {@inheritDoc} */
@Override
protected Request createTargetRequest() {
return new CreateElementCompositionRequest();
}
/** {@inheritDoc} */
@Override
protected void updateTargetRequest() {
CreateElementCompositionRequest req = (CreateElementCompositionRequest)getTargetRequest();
req.setLocation(getDropLocation());
ElementCompositionSource sourceData = null;
if(getCurrentEvent().data instanceof ElementCompositionSource) {
sourceData = (ElementCompositionSource)getCurrentEvent().data;
} else {
Object object = CompositionServiceLocalDNDTransfer.getInstance().getObject();
if(object instanceof ElementCompositionSource) {
// There have been reports about SWT platform inconsistencies:
// on OSX getCurrentEvent().data might be null during dragging
// while it is not null on other platforms. Therefore, we use this
// fallback.
sourceData = (ElementCompositionSource)object;
}
}
req.setDragSource(sourceData);
}
/** {@inheritDoc} */
@Override
protected void handleDragOver() {
getCurrentEvent().detail = DND.DROP_COPY;
super.handleDragOver();
}
}
<!-- (c) 2017 fortiss GmbH -->
<body>
Package for DND classes.
</body>
AdvancedTreeViewerEditorBase.java 9d9eded6848ee78991d1416592d1136efd71d2b7 GREEN
AllocationDiagramEditorBase.java fa544546f73eea1150d90b7257b0e6bce82c288c GREEN
CommonDiagramEditorBase.java 3a3a0137561c13403c8d731434e4fd5f00d9c86f GREEN
ConstraintBasedProcessEditor.java 155a5a7ac41c668ae7ef978e8be13b83f5abd67d GREEN
ConstraintBasedProcessEditorHelper.java 11d48e8a2aecd48eea259a42ef1192c4b292a334 GREEN
DiagramEditorBase.java 09663ce095074d1a8eef086284eea0a7776e0431 GREEN
DiagramKeyHandler.java cfd15ac8f9fc933739cef5e7039960e19826d1ce GREEN
FormsEditorBase.java 4046d340913d951340084ae7240d79f8e75cb8d4 GREEN
FormsEditorBase.java b113501b98ffffcac362ca9f474ad02a42bde186 GREEN
GEFEditorBase.java e668f596f45f07215994cbbd3929a9438331718f GREEN
SourceEditorBase.java 662b921019fed964cd47838e8758194b66fa3a63 GREEN
SourceEditorBase.java 47e69e2e6788b9897339c384cd03f9a22755037c GREEN
SourceEditorConfigurationBase.java e8b810c0d974c475f0a8e6f21aa5b6fd9e17c33a GREEN
SourceEditorUndoRedo.java 08127a8e0afb4f9c2f4c21294ca3220282c25bf0 GREEN
TreeViewerEditorBase.java 1c59689ff57c4f3cc180d85f13021fc03461ecb0 GREEN
/*-------------------------------------------------------------------------+
| Copyright 2015 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.editor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditDomain;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.CommandStack;
import org.eclipse.gef.ui.parts.ScrollingGraphicalViewer;
import org.fortiss.tooling.base.ui.editpart.allocation.AllocationConnectionEditPartBase;
import org.fortiss.tooling.kernel.ui.service.IAllocationEditPartFactoryService;
/**
* <p>
* GEF editor base implementation for linking two GEF based graphical viewer editors.
* </p>
* <p>
* It provides {@link EditDomain} and thus a {@link CommandStack}.
* </p>
*
* @author eder
*/
public class AllocationDiagramEditorBase<T extends EObject> extends CommonDiagramEditorBase<T> {
/** Constructor. */
public AllocationDiagramEditorBase() {
super(new ScrollingGraphicalViewer() {
@Override
public void select(EditPart editpart) {
if(editpart instanceof AllocationConnectionEditPartBase<?>) {
super.select(editpart);
}
}
}, IAllocationEditPartFactoryService.getInstance());
}
}
/*-------------------------------------------------------------------------+
| Copyright 2011 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.editor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditDomain;
import org.eclipse.gef.commands.CommandStack;
import org.eclipse.gef.ui.parts.ScrollingGraphicalViewer;
import org.fortiss.tooling.kernel.ui.service.IEditPartFactoryService;
/**
* <p>
* GEF editor base implementation for graphical viewer editors.
* </p>
* <p>
* It provides {@link EditDomain} and thus a {@link CommandStack}.
* </p>
*
* @author hoelzl
*/
public class DiagramEditorBase<T extends EObject> extends CommonDiagramEditorBase<T> {
/** Constructor. */
public DiagramEditorBase() {
super(new ScrollingGraphicalViewer(), IEditPartFactoryService.getInstance());
}
}