Package org.eclipse.ui.wizards.datatransfer

Examples of org.eclipse.ui.wizards.datatransfer.IImportStructureProvider


    }

    @Override
    public boolean performFinish()
    {
      IImportStructureProvider importProvider = new DocumentImportStructureProvider();

      ImportOperation operation = new ImportOperation(mMainPage.getImportDestinationPath(),
              importProvider, null, mMainPage.getFilesToImport());

      operation.setContext(getShell());
View Full Code Here


    }
   
    store.setValue(CasEditorIdePreferenceConstants.CAS_IMPORT_WIZARD_LAST_USED_ENCODINGS,
            updatedLastUsedEncodingsString.toString());
   
    IImportStructureProvider importProvider = new DocumentImportStructureProvider(mMainPage.getLanguage(),
        mMainPage.getTextEncoding(), mMainPage.getCasFormat());
   
    // BUG: We cannot pass null here for the overwrite query
    ImportOperation operation =
            new ImportOperation(mMainPage.getImportDestinationPath(), importProvider, new OverwriteQuery(getShell()),
View Full Code Here

    addPage(mMainPage);
  }

  @Override
  public boolean performFinish() {
    IImportStructureProvider importProvider = new DocumentImportStructureProvider();

    ImportOperation operation =
            new ImportOperation(mMainPage.getImportDestinationPath(), importProvider, null,
            mMainPage.getFilesToImport());
View Full Code Here

   * @throws InvocationTargetException
   * @throws IOException
   */
  public static void importFilesFromDirectory(File rootDir, IPath destPath)
      throws InvocationTargetException, IOException {
    IImportStructureProvider structureProvider = FileSystemStructureProvider.INSTANCE;
    IProgressMonitor monitor = new NullProgressMonitor();

    List<File> files = new ArrayList<File>(100);
    addFiles(rootDir, files);

View Full Code Here

    addPage(mMainPage);
  }

  @Override
  public boolean performFinish() {
    IImportStructureProvider importProvider = new DocumentImportStructureProvider(
        mMainPage.getTextEncoding(), mMainPage.getCasFormat());

    ImportOperation operation =
            new ImportOperation(mMainPage.getImportDestinationPath(), importProvider, null,
            mMainPage.getFilesToImport());
View Full Code Here

   * @param monitor
   * @throws InvocationTargetException
   * @throws IOException
   */
  public static void importFilesFromDirectory(File rootDir, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException, IOException {   
    IImportStructureProvider structureProvider = FileSystemStructureProvider.INSTANCE;
    List<File> files = new ArrayList<File>(100);
    addJavaFiles(rootDir, files);
    try {
      ImportOperation op= new ImportOperation(destPath, rootDir, structureProvider, new ImportOverwriteQuery(), files);
      op.setCreateContainerStructure(false);
View Full Code Here

   * @param destPath
   * @param monitor
   * @throws InvocationTargetException
   */
  public static void importFile(File file, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException {   
    IImportStructureProvider structureProvider = FileSystemStructureProvider.INSTANCE;
    List<File> files = new ArrayList<File>(1);
    files.add(file);
    try {
      ImportOperation op= new ImportOperation(destPath, file.getParentFile(), structureProvider, new ImportOverwriteQuery(), files);
      op.setCreateContainerStructure(false);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.wizards.datatransfer.IImportStructureProvider

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.