Browse Source

Merge pull request #174 in BA/design from ~XIAXIANG/design1:dev to dev

* commit '89f327f5fa9c19da5151483fea8dc815f67e5588':
  rt
master
superman 9 years ago
parent
commit
7e17e917d6
  1. 10
      designer_form/src/com/fr/design/mainframe/JForm.java

10
designer_form/src/com/fr/design/mainframe/JForm.java

@ -25,7 +25,10 @@ import com.fr.design.mainframe.form.FormECCompositeProvider;
import com.fr.design.mainframe.form.FormECDesignerProvider;
import com.fr.design.mainframe.toolbar.ToolBarMenuDock;
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus;
import com.fr.design.menu.*;
import com.fr.design.menu.KeySetUtils;
import com.fr.design.menu.MenuDef;
import com.fr.design.menu.ShortCut;
import com.fr.design.menu.ToolBarDef;
import com.fr.design.roleAuthority.RolesAlreadyEditedPane;
import com.fr.design.utils.gui.LayoutUtils;
import com.fr.file.FILE;
@ -381,7 +384,9 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
new TemplateParameterAction(this)
}, new ShortCut[0]);
} else {
return this.elementCaseDesign.shortcut4TemplateMenu();
return (ShortCut[]) ArrayUtils.addAll(new ShortCut[]{
new TemplateParameterAction(this)
}, this.elementCaseDesign.shortcut4TemplateMenu());
}
}
@ -750,4 +755,5 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
public boolean acceptToolbarItem(Class clazz) {
return WorkBookSupportable.class.isAssignableFrom(clazz);
}
}
Loading…
Cancel
Save