String type = NewLinkEvent.LINK_TYPE_MOVE; if (evt.getSource().equals(moveMenuItem)) { type = NewLinkEvent.LINK_TYPE_MOVE; } else if (evt.getSource().equals(newLinkMenuItem)) { type = NewLinkEvent.LINK_TYPE_NEW_LINK; } else if (evt.getSource().equals(cloneMenuItem)) { type = NewLinkEvent.LINK_TYPE_CLONE; } else if (evt.getSource().equals(cancelMenuItem)) { return; } fireCreateLink(type, sources, parent, index);
if (evt.getSource().equals(createItem)) fireNewAsset(typeCode, parent, index);
				public void actionPerformed(ActionEvent evt) {					String type = NewLinkEvent.LINK_TYPE_MOVE;					if (evt.getSource().equals(moveMenuItem)) {						type = NewLinkEvent.LINK_TYPE_MOVE;					} else if (evt.getSource().equals(newLinkMenuItem)) {						type = NewLinkEvent.LINK_TYPE_NEW_LINK;					} else if (evt.getSource().equals(cloneMenuItem)) {						type = NewLinkEvent.LINK_TYPE_CLONE;					} else if (evt.getSource().equals(cancelMenuItem)) {						return;					}					fireCreateLink(type, sources, parent, index);				}