|
|
|
@ -63,6 +63,7 @@ import com.fr.design.update.actions.RecoverForDesigner;
|
|
|
|
|
import com.fr.design.update.push.DesignerPushUpdateManager; |
|
|
|
|
import com.fr.design.widget.ui.btn.FormSubmitButtonDetailPane; |
|
|
|
|
import com.fr.form.stable.ElementCaseThumbnailProcessor; |
|
|
|
|
import com.fr.general.GeneralContext; |
|
|
|
|
import com.fr.general.xml.GeneralXMLTools; |
|
|
|
|
import com.fr.js.EmailJavaScript; |
|
|
|
|
import com.fr.js.JavaScriptImpl; |
|
|
|
@ -75,6 +76,11 @@ import com.fr.locale.LocaleScope;
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.log.LogHandler; |
|
|
|
|
import com.fr.module.Activator; |
|
|
|
|
import com.fr.plugin.context.PluginContext; |
|
|
|
|
import com.fr.plugin.injectable.PluginModule; |
|
|
|
|
import com.fr.plugin.manage.PluginFilter; |
|
|
|
|
import com.fr.plugin.observer.PluginEvent; |
|
|
|
|
import com.fr.plugin.observer.PluginEventListener; |
|
|
|
|
import com.fr.quickeditor.cellquick.CellBiasTextPainterEditor; |
|
|
|
|
import com.fr.quickeditor.cellquick.CellDSColumnEditor; |
|
|
|
|
import com.fr.quickeditor.cellquick.CellFormulaQuickEditor; |
|
|
|
@ -181,6 +187,7 @@ public class DesignerActivator extends Activator {
|
|
|
|
|
ActionFactory.registerFloatInsertActionClass(actionsForInsertFloatElement()); |
|
|
|
|
DesignModuleFactory.registerCreators4Hyperlink(hyperlinkTypes()); |
|
|
|
|
|
|
|
|
|
createPluginListener(); |
|
|
|
|
justStartModules4Designer(); |
|
|
|
|
|
|
|
|
|
CalculatorProviderContext.setValueConverter(valueConverter()); |
|
|
|
@ -193,6 +200,21 @@ public class DesignerActivator extends Activator {
|
|
|
|
|
InformationCollector.getInstance().collectStartTime(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void createPluginListener() { |
|
|
|
|
GeneralContext.listenPluginRunningChanged(new PluginEventListener() { |
|
|
|
|
@Override |
|
|
|
|
public void on(PluginEvent event) { |
|
|
|
|
ActionFactory.referCellInsertActionClass(actionsForInsertCellElement()); |
|
|
|
|
ActionFactory.referFloatInsertActionClass(actionsForInsertFloatElement()); |
|
|
|
|
} |
|
|
|
|
}, new PluginFilter() { |
|
|
|
|
@Override |
|
|
|
|
public boolean accept(PluginContext context) { |
|
|
|
|
return context.contain(PluginModule.ExtraDesign, ElementUIProvider.MARK_STRING); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static Class<?>[] actionsForInsertCellElement() { |
|
|
|
|
List<Class<?>> classes = new ArrayList<>(); |
|
|
|
|
Set<ElementUIProvider> providers = ExtraDesignClassManager.getInstance().getArray(ElementUIProvider.MARK_STRING); |
|
|
|
|