|
|
|
@ -18,6 +18,7 @@ import com.fr.base.theme.migrator.FormThemeConfigMigrator;
|
|
|
|
|
import com.fr.base.theme.migrator.ReportThemeConfigMigrator; |
|
|
|
|
import com.fr.chart.chartattr.ChartCollection; |
|
|
|
|
import com.fr.config.ServerPreferenceConfig; |
|
|
|
|
import com.fr.data.core.db.dml.Update; |
|
|
|
|
import com.fr.decision.update.backup.RecoverManager; |
|
|
|
|
import com.fr.decision.webservice.v10.plugin.helper.category.impl.PluginResourceLoader; |
|
|
|
|
import com.fr.decision.webservice.v10.plugin.helper.category.impl.UpmResourceLoader; |
|
|
|
@ -25,6 +26,7 @@ import com.fr.design.DesignerEnvManager;
|
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.RPCConnectHandlerCenter; |
|
|
|
|
import com.fr.design.actions.NewFormAction; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.actions.core.ActionFactory; |
|
|
|
|
import com.fr.design.actions.insert.cell.BiasCellAction; |
|
|
|
|
import com.fr.design.actions.insert.cell.ChartCellAction; |
|
|
|
@ -285,14 +287,14 @@ public class DesignComponent {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static Class<?>[] actionsForInsertCellElement() { |
|
|
|
|
List<Class<?>> classes = new ArrayList<>(); |
|
|
|
|
private static Class<? extends UpdateAction>[] actionsForInsertCellElement() { |
|
|
|
|
List<Class<? extends UpdateAction>> classes = new ArrayList<>(); |
|
|
|
|
Set<ElementUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ElementUIProvider.MARK_STRING); |
|
|
|
|
for (ElementUIProvider provider : providers) { |
|
|
|
|
classes.add(provider.actionForInsertCellElement()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ArrayUtils.addAll(new Class<?>[]{ |
|
|
|
|
Class<? extends UpdateAction>[] fixedActions = new Class[]{ |
|
|
|
|
DSColumnCellAction.class, |
|
|
|
|
GeneralCellAction.class, |
|
|
|
|
RichTextCellAction.class, |
|
|
|
@ -301,22 +303,33 @@ public class DesignComponent {
|
|
|
|
|
ImageCellAction.class, |
|
|
|
|
BiasCellAction.class, |
|
|
|
|
SubReportCellAction.class |
|
|
|
|
}, classes.toArray(new Class<?>[classes.size()])); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Class<?>[] resultArray = ArrayUtils.addAll(fixedActions, classes.toArray(new Class[0])); |
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
|
Class<? extends UpdateAction>[] castedResultArray = (Class<? extends UpdateAction>[]) resultArray; |
|
|
|
|
return castedResultArray; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static Class<?>[] actionsForInsertFloatElement() { |
|
|
|
|
List<Class<?>> classes = new ArrayList<>(); |
|
|
|
|
private static Class<? extends UpdateAction>[] actionsForInsertFloatElement() { |
|
|
|
|
List<Class<? extends UpdateAction>> classes = new ArrayList<>(); |
|
|
|
|
Set<ElementUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ElementUIProvider.MARK_STRING); |
|
|
|
|
for (ElementUIProvider provider : providers) { |
|
|
|
|
classes.add(provider.actionForInsertFloatElement()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ArrayUtils.addAll(new Class<?>[]{ |
|
|
|
|
Class<? extends UpdateAction>[] fixedActions = new Class[]{ |
|
|
|
|
TextBoxFloatAction.class, |
|
|
|
|
FormulaFloatAction.class, |
|
|
|
|
ChartFloatAction.class, |
|
|
|
|
ImageFloatAction.class |
|
|
|
|
}, classes.toArray(new Class<?>[classes.size()])); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Class<?>[] resultArray = ArrayUtils.addAll(fixedActions, classes.toArray(new Class[0])); |
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
|
Class<? extends UpdateAction>[] castedResultArray = (Class<? extends UpdateAction>[]) resultArray; |
|
|
|
|
|
|
|
|
|
return castedResultArray; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static NameableCreator[] hyperlinkTypes() { |
|
|
|
|