Examples of FileElement


Examples of com.github.stephenc.javaisotools.iso9660.impl.FileElement

    public void startElement(Element element) throws HandlerException {
        if (element instanceof ISO9660Element) {
            String id = (String) element.getId();
            process(id);
        } else if (element instanceof FileElement) {
            FileElement fileElement = (FileElement) element;
            factory.doFileFixup(fileElement.getFile());
        }
        super.startElement(element);
    }
View Full Code Here

Examples of com.google.devtools.depan.filesystem.graph.FileElement

  private void processRoot(String treePath) throws IOException {
    File treeFile = new File(treePath);

    // If it is just a file, it's pretty uninteresting - one node
    if (treeFile.isFile()) {
      FileElement fileNode = visitFile(treeFile);
      getBuilder().newNode(fileNode);
      return;
    }

    // If it's a directory, traverse the full tree
View Full Code Here

Examples of com.google.devtools.depan.filesystem.graph.FileElement

    return new DirectoryElement(dirPath);
  }

  private FileElement createFile(File file) throws IOException {
    String filePath = getElementPath(file);
    return new FileElement(filePath);
  }
View Full Code Here

Examples of com.google.devtools.depan.filesystem.graph.FileElement

    super(path);
  }

  @Override
  public GraphNode createNode() {
    return new FileElement(getFilePath().getPath());
  }
View Full Code Here

Examples of com.google.devtools.depan.filesystem.graph.FileElement

    return super.visitDirectory(treeFile);
  }

  @Override
  protected FileElement visitFile(File treeFile) throws IOException {
    FileElement fileNode = super.visitFile(treeFile);

    if (treeFile.getName().endsWith(".class")) {
      FileInputStream content = new FileInputStream(treeFile);
      reader.readClassFile(getBuilder(), fileNode, content);
    }
View Full Code Here

Examples of com.google.devtools.depan.filesystem.graph.FileElement

    if (entry.isDirectory()) {
      // Ensure directory name is in canonical form
      String dirName = new File(entry.getName()).getPath();
      return new DirectoryElement(dirName);
    }
    return new FileElement(entry.getName());
  }
View Full Code Here

Examples of com.intellij.openapi.fileChooser.FileElement

          if (nodeContainsRenamedFile) {
            final DefaultMutableTreeNode finalNode = node;
            SwingUtilities.invokeLater(new Runnable() {
              @Override public void run() {
                FileNodeDescriptor nodeDescriptor = (FileNodeDescriptor) userObject;
                FileElement fileElement = new FileElement(file, newFileName);
                fileElement.setParent(nodeDescriptor.getElement().getParent());
                finalNode.setUserObject(new FileNodeDescriptor(
                    nodeDescriptor.getProject(),
                    fileElement,
                    nodeDescriptor.getParentDescriptor(),
                    nodeDescriptor.getIcon(),
View Full Code Here

Examples of com.intellij.psi.impl.source.tree.FileElement

*/
public class GherkinFormattingModelBuilder implements FormattingModelBuilder {
  @NotNull
  public FormattingModel createModel(PsiElement element, CodeStyleSettings settings) {
    final PsiFile file = element.getContainingFile();
    final FileElement fileElement = TreeUtil.getFileElement((TreeElement)SourceTreeToPsiMap.psiElementToTree(element));
    final GherkinBlock rootBlock = new GherkinBlock(fileElement);
    //FormattingModelDumper.dumpFormattingModel(rootBlock, 0, System.out);
    return new PsiBasedFormattingModel(file, rootBlock, FormattingDocumentModelImpl.createOn(file));
  }
View Full Code Here

Examples of com.intellij.psi.impl.source.tree.FileElement

    @NotNull
    public FormattingModel createModel(PsiElement element,
                                       CodeStyleSettings settings) {

        final FileElement fileElement = TreeUtil.getFileElement(
            (TreeElement) SourceTreeToPsiMap.psiElementToTree(element));

        CommonCodeStyleSettings goSettings =
            settings.getCommonSettings(GoLanguage.INSTANCE);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.FileElement

   * @param i18nKey
   * @param formLayout
   * @return
   */
  public FileElement addFileElement(String name, String i18nLabel, FormItemContainer formLayout) {
    FileElement fileElement = new FileElementImpl(name);
    setLabelIfNotNull(i18nLabel, fileElement);
    formLayout.add(fileElement);
    return fileElement;
  }
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.