int row = rowAtPoint(p);
int col = columnAtPoint(p);
SpreadSheetPopupMenu popup=getPopup();
if (SwingUtilities.isLeftMouseButton(e)) {
SpreadSheetColumnModel columnModel = (SpreadSheetColumnModel) getColumnModel();
Field field = ((SpreadSheetModel) getModel()).getFieldInNonTranslatedColumn(col + 1);
SpreadSheetModel model = (SpreadSheetModel) getModel();
if (field.isNameField()) {
// if (col == columnModel.getNameIndex()) {
GraphicNode node = model.getNode(row);
if (isOnIcon(e)) {
if (model.getCellProperties(node).isCompositeIcon()) {
finishCurrentOperations();
selection.getRowSelection().clearSelection();
boolean change = true;
if (!node.isFetched()) // for subprojects
change = node.fetch();
if (change)
model.changeCollapsedState(row);
e.consume(); // prevent dbl click treatment below
// because editor may have already been
// installed we
// have to update its collapsed state
// updateNameCellEditor(node);
// editCellAt(row,model.findGraphicNodeRow(node));
}
}
} else if (field != null && field.isHyperlink()) {
Hyperlink link = (Hyperlink) model.getValueAt(row, col+1);
if (link != null) {
BrowserControl.displayURL(link.getAddress());
e.consume(); // prevent dbl click treatment below
}