Browse Source

REPORT-30557 fix name

feature/big-screen
hades 5 years ago
parent
commit
ebebf3673d
  1. 4
      designer-base/src/main/java/com/fr/design/fun/DesignerProcessor.java
  2. 6
      designer-base/src/main/java/com/fr/design/fun/impl/AbstractDesignerProcessor.java
  3. 8
      designer-realize/src/main/java/com/fr/start/DesignerInitial.java

4
designer-base/src/main/java/com/fr/design/fun/DesignerTransform.java → designer-base/src/main/java/com/fr/design/fun/DesignerProcessor.java

@ -11,9 +11,9 @@ import com.fr.start.BaseDesigner;
* Created by hades on 2020/5/7
*/
public interface DesignerTransform extends Mutable {
public interface DesignerProcessor extends Mutable {
String MARK_STRING = "DesignerTransform";
String MARK_STRING = "DesignerProcessor";
int CURRENT_LEVEL = 1;

6
designer-base/src/main/java/com/fr/design/fun/impl/AbstractDesignerTransform.java → designer-base/src/main/java/com/fr/design/fun/impl/AbstractDesignerProcessor.java

@ -1,6 +1,6 @@
package com.fr.design.fun.impl;
import com.fr.design.fun.DesignerTransform;
import com.fr.design.fun.DesignerProcessor;
import com.fr.stable.fun.mark.API;
/**
@ -8,8 +8,8 @@ import com.fr.stable.fun.mark.API;
* @version 10.0
* Created by hades on 2020/5/7
*/
@API(level = DesignerTransform.CURRENT_LEVEL)
public abstract class AbstractDesignerTransform implements DesignerTransform {
@API(level = DesignerProcessor.CURRENT_LEVEL)
public abstract class AbstractDesignerProcessor implements DesignerProcessor {
@Override
public String mark4Provider() {

8
designer-realize/src/main/java/com/fr/start/DesignerInitial.java

@ -1,7 +1,7 @@
package com.fr.start;
import com.fr.design.constants.DesignerLaunchStatus;
import com.fr.design.fun.DesignerTransform;
import com.fr.design.fun.DesignerProcessor;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.ui.util.UIUtil;
import com.fr.event.Event;
@ -23,9 +23,9 @@ public class DesignerInitial {
UIUtil.invokeLaterIfNeeded(new Runnable() {
@Override
public void run() {
DesignerTransform transform = StableFactory.getMarkedInstanceObjectFromClass(DesignerTransform.MARK_STRING, DesignerTransform.class);
if (transform != null) {
designer = Reflect.on(transform.transform()).create(args).get();
DesignerProcessor processor = StableFactory.getMarkedInstanceObjectFromClass(DesignerProcessor.MARK_STRING, DesignerProcessor.class);
if (processor != null) {
designer = Reflect.on(processor.transform()).create(args).get();
} else {
designer = new MainDesigner(args);
}

Loading…
Cancel
Save