Examples of collapsePath()


Examples of com.intellij.openapi.components.PathMacroManager.collapsePath()

  }


  public static String collapsePathMacro(final ComponentManager project, @NotNull final String path) {
    final PathMacroManager macroManager = PathMacroManager.getInstance(project);
    return macroManager.collapsePath(path);
  }


  public static String expandPathMacro(final ComponentManager project, @NotNull final String path) {
    final PathMacroManager macroManager = PathMacroManager.getInstance(project);
View Full Code Here

Examples of com.intellij.openapi.components.PathMacroManager.collapsePath()

            source = source.substring(1);
          }

          // so we now got the source path and can replace it

          String collapsedSource = macroManager.collapsePath(source);
          value = StringUtil.replace(value, source, collapsedSource);
        }
      }
      prop.setAttribute(VALUE, value);
      props.addContent(prop);
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                        {
                            JTree tree = (JTree)getSource();
                            TreePath path = getPath();
                            tree.setSelectionPath(path);
                            if (tree.isExpanded(path)){
                                tree.collapsePath(path);
                            } else {
                                tree.expandPath(path);
                            }                       
                            MouseListener[] listeners = tree.getMouseListeners();
                            Rectangle rec = tree.getPathBounds(path);
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                            if (value) {
                                tree.expandPath(path);
                                tree.scrollPathToVisible(path);
                            }
                            else {
                                tree.collapsePath(path);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                        TreePath path = new TreePath(pChild);
                        if (pChild.isOpened()) {
                            tree.expandPath(path);
                        }
                        else {
                            tree.collapsePath(path);
                        }
                    }
                    if (pParent.isOpened()) {
                      // CraigM:12/06/2008 - Don't scroll (as Forte didn't), just make visible.
                        // tree.scrollPathToVisible(new TreePath(pChild.getPath()));
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                            if (value) {
                                tree.expandPath(path);
                                tree.scrollPathToVisible(path);
                            }
                            else {
                                tree.collapsePath(path);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                            if (value) {
                                tree.expandPath(path);
                                tree.scrollPathToVisible(path);
                            }
                            else {
                                tree.collapsePath(path);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                        TreePath path = new TreePath(pChild);
                        if (pChild.isOpened()) {
                            tree.expandPath(path);
                        }
                        else {
                            tree.collapsePath(path);
                        }
                    }
                    if (pParent.isOpened()) {
                      // CraigM:12/06/2008 - Don't scroll (as Forte didn't), just make visible.
                        // tree.scrollPathToVisible(new TreePath(pChild.getPath()));
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                        TreePath path = new TreePath(pChild);
                        if (pChild.isOpened()) {
                            tree.expandPath(path);
                        }
                        else {
                            tree.collapsePath(path);
                        }
                    }
                    if (pParent.isOpened()) {
                      // CraigM:12/06/2008 - Don't scroll (as Forte didn't), just make visible.
                        // tree.scrollPathToVisible(new TreePath(pChild.getPath()));
View Full Code Here

Examples of javax.swing.JTree.collapsePath()

                    if (tree.getLastSelectedPathComponent() != null) {
                        DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                        if (node.getUserObject() instanceof ObjectInfo) {
                            ObjectInfo oj = (ObjectInfo)node.getUserObject();
                            if ( (oj.flag.equals("object")) || (oj.flag.equals("favorites")) || (oj.flag.equals("book")) || (oj.flag.equals("bookSettings")) )
                                tree.collapsePath(tree.getSelectionPath());
                            else if (oj.flag.equals("layout"))
                                tree.collapsePath(tree.getSelectionPath().getParentPath());
                        }
                    }               
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.