aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsprigogin2014-03-19 00:02:34 (EDT)
committerEric Moffatt2014-03-24 15:12:09 (EDT)
commite65963bf5ab77d2568e1c5fbf92e0a09ab253e4e (patch)
treef5126dc06395e1ff2e5a4f74cc2715916119d5b9
parent836a2eac5fe37a461a724f7a1ad7e2b380b06543 (diff)
downloadeclipse.platform.ui-e65963bf5ab77d2568e1c5fbf92e0a09ab253e4e.zip
eclipse.platform.ui-e65963bf5ab77d2568e1c5fbf92e0a09ab253e4e.tar.gz
eclipse.platform.ui-e65963bf5ab77d2568e1c5fbf92e0a09ab253e4e.tar.bz2
Bug 430662 - Editor area splits when dragging an editor without Ctrl keyrefs/changes/25/23625/2
pressed Don't allow editor area splitting when Ctrl key is not pressed. Change-Id: Ibe5fa5426b4435b29b5fc8cdc6d29f087a885afb Signed-off-by: eclipse.sprigogin@gmail.com
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/SplitDropAgent.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/SplitDropAgent.java b/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/SplitDropAgent.java
index 3f841e0..7f7d086 100644
--- a/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/SplitDropAgent.java
+++ b/bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/dndaddon/SplitDropAgent.java
@@ -352,13 +352,8 @@ public class SplitDropAgent extends DropAgent {
if (!dndManager.isModified) {
relTo = (MPartSashContainerElement) outerRelTo;
}
- } else if (onEdge) {
+ } else if (getModified()) {
relTo = (MPartSashContainerElement) outerRelTo;
- if (outerRelTo instanceof MPerspectiveStack) {
- if (!getModified())
- relTo = (MPartSashContainerElement) ((MPerspectiveStack) outerRelTo)
- .getSelectedElement().getChildren().get(0);
- }
}
if (dragElement instanceof MPartStack) {