Browse Source

REPORT-3163 合作开发9.0设计器=>入口跳转=>单元格属性

master
plough 7 years ago
parent
commit
77743d62e5
  1. 2
      designer/src/com/fr/design/actions/cell/CellAttributeTableAction.java
  2. 2
      designer/src/com/fr/design/actions/cell/NewPresentAction.java

2
designer/src/com/fr/design/actions/cell/CellAttributeTableAction.java

@ -4,6 +4,7 @@ import java.awt.event.ActionEvent;
import com.fr.design.actions.UpdateAction; import com.fr.design.actions.UpdateAction;
import com.fr.design.mainframe.CellElementPropertyPane; import com.fr.design.mainframe.CellElementPropertyPane;
import com.fr.design.mainframe.EastRegionContainerPane;
/** /**
* 所有的CellAttributeTableAction都是指向单元格属性表的,点了就自动跳转到单元格属性表 * 所有的CellAttributeTableAction都是指向单元格属性表的,点了就自动跳转到单元格属性表
@ -17,6 +18,7 @@ public abstract class CellAttributeTableAction extends UpdateAction {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
EastRegionContainerPane.getInstance().switchTabTo(EastRegionContainerPane.KEY_CELL_ATTR);
CellElementPropertyPane.getInstance().GoToPane(getID()); CellElementPropertyPane.getInstance().GoToPane(getID());
} }

2
designer/src/com/fr/design/actions/cell/NewPresentAction.java

@ -3,6 +3,7 @@ package com.fr.design.actions.cell;
import com.fr.base.present.Present; import com.fr.base.present.Present;
import com.fr.design.actions.PresentCheckBoxAction; import com.fr.design.actions.PresentCheckBoxAction;
import com.fr.design.mainframe.CellElementPropertyPane; import com.fr.design.mainframe.CellElementPropertyPane;
import com.fr.design.mainframe.EastRegionContainerPane;
import com.fr.design.mainframe.ElementCasePane; import com.fr.design.mainframe.ElementCasePane;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.general.GeneralUtils; import com.fr.general.GeneralUtils;
@ -25,6 +26,7 @@ public class NewPresentAction extends PresentCheckBoxAction {
@Override @Override
public boolean executeActionReturnUndoRecordNeeded() { public boolean executeActionReturnUndoRecordNeeded() {
EastRegionContainerPane.getInstance().switchTabTo(EastRegionContainerPane.KEY_CELL_ATTR);
if (!ComparatorUtils.equals(this.itemName, "NOPRESENT")) { if (!ComparatorUtils.equals(this.itemName, "NOPRESENT")) {
CellElementPropertyPane.getInstance().GoToPane(Inter.getLocText("FR-Designer_Present"), this.itemName); CellElementPropertyPane.getInstance().GoToPane(Inter.getLocText("FR-Designer_Present"), this.itemName);
} else { } else {

Loading…
Cancel
Save