Browse Source

Pull request #1678: REPORT-29815 && REPORT-29815 之前添加到final的同步到release

Merge in DESIGN/design from ~KERRY/design_10.0:release/10.0 to release/10.0

* commit '444d7093f6fb58f41fd5e9fc7526803a46739dd1':
  REPORT-29815 && REPORT-29815 之前添加到final的同步到release
feature/big-screen
kerry 5 years ago
parent
commit
e89820a884
  1. 23
      designer-base/src/main/java/com/fr/design/unit/UnitConvertUtil.java
  2. 2
      designer-form/src/main/java/com/fr/design/actions/FormMobileAttrAction.java

23
designer-base/src/main/java/com/fr/design/unit/UnitConvertUtil.java

@ -6,7 +6,11 @@ import com.fr.design.unit.impl.CMReportLengthUNIT;
import com.fr.design.unit.impl.INCHReportLengthUNIT; import com.fr.design.unit.impl.INCHReportLengthUNIT;
import com.fr.design.unit.impl.MMReportLengthUNIT; import com.fr.design.unit.impl.MMReportLengthUNIT;
import com.fr.design.unit.impl.PTReportLengthUNIT; import com.fr.design.unit.impl.PTReportLengthUNIT;
import com.fr.general.GeneralContext;
import com.fr.plugin.context.PluginContext;
import com.fr.plugin.manage.PluginFilter;
import com.fr.plugin.observer.PluginEvent;
import com.fr.plugin.observer.PluginEventListener;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
@ -18,6 +22,23 @@ public class UnitConvertUtil {
private static List<ReportLengthUNITProvider> lengthUNITList = new ArrayList<ReportLengthUNITProvider>(); private static List<ReportLengthUNITProvider> lengthUNITList = new ArrayList<ReportLengthUNITProvider>();
static { static {
GeneralContext.listenPluginRunningChanged(new PluginEventListener() {
@Override
public void on(PluginEvent pluginEvent) {
initSupportedReportLengthUNIT();
}
}, new PluginFilter() {
@Override
public boolean accept(PluginContext pluginContext) {
return pluginContext.contain(ReportLengthUNITProvider.MARK_STRING);
}
});
initSupportedReportLengthUNIT();
}
private static void initSupportedReportLengthUNIT(){
lengthUNITList.clear();
lengthUNITList.add(new MMReportLengthUNIT()); lengthUNITList.add(new MMReportLengthUNIT());
lengthUNITList.add(new CMReportLengthUNIT()); lengthUNITList.add(new CMReportLengthUNIT());
lengthUNITList.add(new INCHReportLengthUNIT()); lengthUNITList.add(new INCHReportLengthUNIT());

2
designer-form/src/main/java/com/fr/design/actions/FormMobileAttrAction.java

@ -112,7 +112,7 @@ public class FormMobileAttrAction extends JTemplateAction<JForm> {
private static final MenuKeySet REPORT_APP_ATTR = new MenuKeySet() { private static final MenuKeySet REPORT_APP_ATTR = new MenuKeySet() {
@Override @Override
public char getMnemonic() { public char getMnemonic() {
return 'T'; return 'P';
} }
@Override @Override

Loading…
Cancel
Save