Package org.eclipse.php.internal.debug.ui.pathmapper.PathMapperEntryDialog.WorkspaceBrowseDialog

Examples of org.eclipse.php.internal.debug.ui.pathmapper.PathMapperEntryDialog.WorkspaceBrowseDialog.IPFile


              fWorkspacePathText.setText(EnvironmentPathUtils
                  .getLocalPath(includePathEntry.getPath())
                  .toOSString());
            }
          } else if (selectedElement instanceof IPFile) {
            IPFile ipFile = (IPFile) selectedElement;
            IBuildpathEntry includePathEntry = ipFile.includePathEntry;
            fWorkspacePathText.setData(includePathEntry
                .getEntryKind() == IBuildpathEntry.BPE_VARIABLE ? Type.INCLUDE_VAR
                : Type.INCLUDE_FOLDER);
            fWorkspacePathText.setText(ipFile.file
View Full Code Here


      public boolean equals(Object obj) {
        if (!(obj instanceof IPFile)) {
          return false;
        }
        IPFile other = (IPFile) obj;
        return other.file.equals(file)
            && other.includePathEntry.equals(includePathEntry);
      }
View Full Code Here

              if (path != null) {
                file = path.toFile();
              }
            }
            if (file != null) {
              return getChildren(new IPFile(includePathEntry,
                  file));
            }
          } else if (parentElement instanceof IPFile) {
            IPFile ipFile = (IPFile) parentElement;
            File file = ipFile.file;
            if (file.isDirectory()) {
              File dirs[] = file.listFiles(new FileFilter() {
                public boolean accept(File pathname) {
                  return pathname.isDirectory();
                }
              });
              List<Object> r = new ArrayList<Object>(dirs.length);
              for (File dir : dirs) {
                r.add(new IPFile(ipFile.includePathEntry, dir));
              }
              return r.toArray();
            }
          }
        } catch (CoreException e) {
View Full Code Here

      public Object getParent(Object element) {
        if (element instanceof IResource) {
          return ((IResource) element).getParent();
        }
        if (element instanceof IPFile) {
          IPFile ipFile = (IPFile) element;
          return new IPFile(ipFile.includePathEntry,
              ipFile.file.getParentFile());
        }
        return null;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.ui.pathmapper.PathMapperEntryDialog.WorkspaceBrowseDialog.IPFile

Copyright © 2018 www.massapicom. 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.