*/
private void maybeAddGem() {
if (gemCutter.getGUIState() == GemCutter.GUIState.ADD_GEM) {
ExplorerTree explorerTree = tableTopExplorer.getExplorerTree();
DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) explorerTree.getLastSelectedPathComponent();
Object userObject = treeNode != null ? treeNode.getUserObject() : null;
if (gemCutter.getAddingDisplayedGem() == null) {
// This means we have to invoke Intellicut to add a gem.
if (treeNode == null) {
treeNode = (DefaultMutableTreeNode) explorerTree.getModel().getRoot();
explorerTree.setSelectionPath(new TreePath(treeNode.getPath()));
}
Rectangle location = getIntellicutLocation(treeNode);
DisplayedPartConnectable displayedPart = null;