|
|
|
@ -1,7 +1,5 @@
|
|
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
import com.fr.design.designer.beans.AdapterBus; |
|
|
|
|
import com.fr.design.designer.beans.ComponentAdapter; |
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
import com.fr.design.designer.creator.XCreatorUtils; |
|
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
@ -64,16 +62,13 @@ public class TabDragInner {
|
|
|
|
|
*/ |
|
|
|
|
public void tryDragIn() { |
|
|
|
|
if (belowXLayoutContainer != null && belowXLayoutContainer.isDragInAble()) { |
|
|
|
|
EditingMouseListener editingMouseListener = new EditingMouseListener(designer); |
|
|
|
|
editingMouseListener.refreshTopXCreator(); |
|
|
|
|
belowXLayoutContainer.setEditable(true); |
|
|
|
|
if (editingMouseListener.stopEditing() && belowXLayoutContainer != designer.getRootComponent()) { |
|
|
|
|
ComponentAdapter adapter = AdapterBus.getComponentAdapter(designer, belowXLayoutContainer); |
|
|
|
|
if (adapter != null) { |
|
|
|
|
editingMouseListener.startEditing(belowXLayoutContainer, adapter.getDesignerEditor(), adapter); |
|
|
|
|
belowXLayoutContainer.setDragInAble(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void reset() { |
|
|
|
|
if (belowXLayoutContainer != null) { |
|
|
|
|
belowXLayoutContainer.setDragInAble(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|