Browse Source

REPORT-3163 合作开发9.0设计器=>代码规范

master
plough 7 years ago
parent
commit
be2ab90314
  1. 12
      designer_base/src/com/fr/design/gui/controlpane/ObjectUIControlPane.java
  2. 2
      designer_base/src/com/fr/design/mainframe/JTemplate.java
  3. 19
      designer_base/src/com/fr/design/widget/EventCreator.java

12
designer_base/src/com/fr/design/gui/controlpane/ObjectUIControlPane.java

@ -30,17 +30,7 @@ public abstract class ObjectUIControlPane extends UIListControlPane {
Constructor<? extends BasicBeanPane> constructor = getConstructor(creator.getUpdatePane(), object.getClass());
return constructor == null ? super.createPaneByCreators(creator) : constructor.newInstance(object);
}
} catch (InstantiationException e) {
throw new RuntimeException(e);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
} catch (IllegalArgumentException e) {
throw new RuntimeException(e);
} catch (SecurityException e) {
throw new RuntimeException(e);
} catch (InvocationTargetException e) {
throw new RuntimeException(e);
} catch (NoSuchMethodException e) {
} catch (Exception e) {
throw new RuntimeException(e);
}
}

2
designer_base/src/com/fr/design/mainframe/JTemplate.java

@ -128,7 +128,7 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex
long saveTime = System.currentTimeMillis(); // 保存模板的时间点
try {
tic.collectInfo(template, this, openTime, saveTime);
} catch (Exception ex) { // 不管收集过程中出现任何异常,都不应该影响模版保存
} catch (Throwable th) { // 不管收集过程中出现任何异常,都不应该影响模版保存
}
openTime = saveTime; // 更新 openTime,准备下一次计算
}

19
designer_base/src/com/fr/design/widget/EventCreator.java

@ -50,25 +50,6 @@ public class EventCreator extends NameableSelfCreator {
public void saveUpdatedBean(ListModelElement wrapper, Object bean) {
((NameObject)wrapper.wrapper).setObject(bean);
}
// public static final EventCreator BEFOREEDIT = new EventCreator(Widget.BEFOREEDIT);
//
// public static final EventCreator AFTEREDIT = new EventCreator(Widget.AFTEREDIT);
//
// public static final EventCreator CHANGE = new EventCreator(Widget.CHANGE);
//
// public static final EventCreator CLICK = new EventCreator(Widget.EVENT_CLICK);
//
// public static final EventCreator SUCCESS = new EventCreator("success");
//
// public static final EventCreator AFTERINIT = new EventCreator(Widget.AFTERINIT);
//
// public static final EventCreator STOPEDIT = new EventCreator(Widget.STOPEDIT);
//
// public static final EventCreator STATECHANGE = new EventCreator(Widget.EVENT_STATECHANGE);
//
// public static final EventCreator CALLBACK = new EventCreator(FileEditor.EVENT_UPLOAD_CALLBACK);
@Override
public String createTooltip() {

Loading…
Cancel
Save