if (evt.getSource() == moveItem) multipleMoveType = NewLinkEvent.LINK_TYPE_MOVE; else if (evt.getSource() == newLinkItem) multipleMoveType = NewLinkEvent.LINK_TYPE_NEW_LINK; else if (evt.getSource() == cloneItem) multipleMoveType = NewLinkEvent.LINK_TYPE_CLONE; startCueMode(getSelectionPaths());
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, prevIndex);
				public void actionPerformed(ActionEvent evt) {					if (evt.getSource() == moveItem)						multipleMoveType = NewLinkEvent.LINK_TYPE_MOVE;					else if (evt.getSource() == newLinkItem)						multipleMoveType = NewLinkEvent.LINK_TYPE_NEW_LINK;					else if (evt.getSource() == cloneItem)						multipleMoveType = NewLinkEvent.LINK_TYPE_CLONE;					startCueMode(getSelectionPaths());				}