Browse Source

Merge pull request #37 in PF/design from ~JU/co-pf-9.0-design:9.0 to 9.0

* commit 'ed2289f4203c4118433337031129f327563eda03':
  bug fix:getName有可能是null
master
superman 8 years ago
parent
commit
e78dbdbfed
  1. 7
      designer_base/src/com/fr/design/actions/UpdateAction.java

7
designer_base/src/com/fr/design/actions/UpdateAction.java

@ -6,19 +6,19 @@ package com.fr.design.actions;
import com.fr.base.NameStyle; import com.fr.base.NameStyle;
import com.fr.base.ScreenResolution; import com.fr.base.ScreenResolution;
import com.fr.base.Style; import com.fr.base.Style;
import com.fr.design.constants.UIConstants;
import com.fr.design.actions.core.ActionFactory; import com.fr.design.actions.core.ActionFactory;
import com.fr.design.constants.UIConstants;
import com.fr.design.gui.ibutton.UIButton; import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.gui.imenu.UICheckBoxMenuItem; import com.fr.design.gui.imenu.UICheckBoxMenuItem;
import com.fr.design.gui.imenu.UIMenuItem; import com.fr.design.gui.imenu.UIMenuItem;
import com.fr.design.menu.ShortCut; import com.fr.design.menu.ShortCut;
import com.fr.design.selection.SelectionListener; import com.fr.design.selection.SelectionListener;
import com.fr.general.ComparatorUtils;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
import java.awt.event.ComponentEvent; import java.awt.event.ComponentEvent;
import java.awt.event.ContainerEvent;
import java.beans.PropertyChangeListener; import java.beans.PropertyChangeListener;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
@ -293,8 +293,7 @@ public abstract class UpdateAction extends ShortCut implements Action {
if (!(object instanceof UpdateAction)) { if (!(object instanceof UpdateAction)) {
return false; return false;
} }
return ComparatorUtils.equals(((UpdateAction) object).getName(), this.getName());
return ((UpdateAction) object).getName().equals(this.getName());
} }
@Override @Override

Loading…
Cancel
Save