|
|
|
@ -9,6 +9,7 @@ import com.fr.design.DesignerEnvManager;
|
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.actions.core.ActionFactory; |
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
|
import com.fr.design.base.mode.DesignerMode; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.data.DesignTableDataManager; |
|
|
|
|
import com.fr.design.data.datapane.TableDataTreePane; |
|
|
|
@ -219,7 +220,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
@Override |
|
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
closeAuthorityEditing(); |
|
|
|
|
DesignModeContext.switchTo(DesignerMode.NORMAL); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -299,8 +300,12 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().doResize(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Deprecated |
|
|
|
|
public void closeAuthorityEditing() { |
|
|
|
|
DesignModeContext.switchTo(com.fr.design.base.mode.DesignerMode.NORMAL); |
|
|
|
|
DesignModeContext.switchTo(DesignerMode.NORMAL); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void closeAuthorityMode() { |
|
|
|
|
WestRegionContainerPane.getInstance().replaceDownPane( |
|
|
|
|
TableDataTreePane.getInstance(DesignModelAdapter.getCurrentModelAdapter())); |
|
|
|
|
HistoryTemplateListCache.getInstance().getCurrentEditingTemplate().refreshEastPropertiesPane(); |
|
|
|
@ -312,6 +317,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
EventDispatcher.fire(DesignAuthorityEventType.StopEdit, DesignerFrame.this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 注册app. |
|
|
|
|
* |
|
|
|
@ -982,6 +988,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
* @date 2014-10-14-下午6:31:05 |
|
|
|
|
*/ |
|
|
|
|
private void openFile(FILE tplFile) { |
|
|
|
|
DesignModeContext.switchTo(DesignerMode.NORMAL); |
|
|
|
|
//切换文件后清空FixedPopupPane面板
|
|
|
|
|
EastRegionContainerPane.getInstance().clearCurrentPopupPane(); |
|
|
|
|
if (tplFile != null) { |
|
|
|
@ -1038,7 +1045,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JTemplate jt = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
if (jt != null) { |
|
|
|
|
if (jt != null) { |
|
|
|
|
DesignerEnvManager.getEnvManager().setLastOpenFile(jt.getEditingFILE().getPath()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|