|
|
|
@ -23,6 +23,7 @@ import com.fr.design.mainframe.EditingMouseListener;
|
|
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
|
import com.fr.design.mainframe.NoSupportAuthorityEdit; |
|
|
|
|
import com.fr.design.mainframe.WidgetPropertyPane; |
|
|
|
|
import com.fr.design.plugin.DesignerPluginContext; |
|
|
|
|
import com.fr.design.utils.gui.LayoutUtils; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fr.form.ui.container.WTitleLayout; |
|
|
|
@ -783,12 +784,19 @@ public abstract class XCreator extends JPanel implements XComponent, XCreatorToo
|
|
|
|
|
public void run() { |
|
|
|
|
popup.setLocation(designer.getLocationOnScreen().x + designer.getPaintX() + extraX, designer.getLocationOnScreen().y + designer.getPaintY() + extraY); |
|
|
|
|
popup.updatePane(designer); |
|
|
|
|
popup.setVisible(selected && accept && popup.hasVisibleButtons() && popup.isCanVisible()); |
|
|
|
|
popup.setVisible(selected && accept && popup.hasVisibleButtons() && popup.isCanVisible() && !isShowPluginDialog()); |
|
|
|
|
popup.setRelativeBounds(bounds); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean isShowPluginDialog() { |
|
|
|
|
if (DesignerPluginContext.getPluginDialog() == null) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return DesignerPluginContext.getPluginDialog().isVisible(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建右击弹出菜单 |
|
|
|
|
* |
|
|
|
|