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