|
|
@ -358,8 +358,8 @@ public abstract class UIListControlPane extends UIControlPane { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void popupEditPane() { |
|
|
|
private void popupEditPane(Point mousePos) { |
|
|
|
if (editingIndex < 0) { |
|
|
|
if (editingIndex < 0 || !nameableList.getCellBounds(editingIndex, editingIndex).contains(mousePos)) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
GUICoreUtils.showPopupMenu(popupEditPane, this, |
|
|
|
GUICoreUtils.showPopupMenu(popupEditPane, this, |
|
|
@ -669,7 +669,7 @@ public abstract class UIListControlPane extends UIControlPane { |
|
|
|
nameableList.editItemAt(nameableList.getSelectedIndex()); |
|
|
|
nameableList.editItemAt(nameableList.getSelectedIndex()); |
|
|
|
} else if (SwingUtilities.isLeftMouseButton(evt) && evt.getX() <= EDIT_RANGE) { |
|
|
|
} else if (SwingUtilities.isLeftMouseButton(evt) && evt.getX() <= EDIT_RANGE) { |
|
|
|
editingIndex = nameableList.getSelectedIndex(); |
|
|
|
editingIndex = nameableList.getSelectedIndex(); |
|
|
|
popupEditPane(); |
|
|
|
popupEditPane(evt.getPoint()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// peter:处理右键的弹出菜单
|
|
|
|
// peter:处理右键的弹出菜单
|
|
|
|