diff --git a/designer_base/src/com/fr/design/gui/controlpane/ObjectUIControlPane.java b/designer_base/src/com/fr/design/gui/controlpane/ObjectUIControlPane.java index 46b41d020..3b2a1b071 100644 --- a/designer_base/src/com/fr/design/gui/controlpane/ObjectUIControlPane.java +++ b/designer_base/src/com/fr/design/gui/controlpane/ObjectUIControlPane.java @@ -30,17 +30,7 @@ public abstract class ObjectUIControlPane extends UIListControlPane { Constructor 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); } } diff --git a/designer_base/src/com/fr/design/mainframe/JTemplate.java b/designer_base/src/com/fr/design/mainframe/JTemplate.java index b5d1f4cab..aa42804db 100644 --- a/designer_base/src/com/fr/design/mainframe/JTemplate.java +++ b/designer_base/src/com/fr/design/mainframe/JTemplate.java @@ -128,7 +128,7 @@ public abstract class JTemplate> ex long saveTime = System.currentTimeMillis(); // 保存模板的时间点 try { tic.collectInfo(template, this, openTime, saveTime); - } catch (Exception ex) { // 不管收集过程中出现任何异常,都不应该影响模版保存 + } catch (Throwable th) { // 不管收集过程中出现任何异常,都不应该影响模版保存 } openTime = saveTime; // 更新 openTime,准备下一次计算 } diff --git a/designer_base/src/com/fr/design/widget/EventCreator.java b/designer_base/src/com/fr/design/widget/EventCreator.java index 530bd34aa..84f6120a7 100644 --- a/designer_base/src/com/fr/design/widget/EventCreator.java +++ b/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() {