This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250964 - IDE can't copy&paste file from external folder
Summary: IDE can't copy&paste file from external folder
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-06 09:58 UTC by soldatov
Modified: 2015-08-19 17:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-03-06 09:58:54 UTC
Prepare project:
- Some folder contains source files
bash-4.1$ ls src_Quote/src/
cpu.cc  cpu.h  customer.cc  customer.h  disk.cc  disk.h  memory.cc  memory.h  module.cc  module.h  quote.cc  system.cc  system.h
- Create C/C++ Application project without main.cpp
- Call context menu on "Source Files" folder and select "Add Existing Items from Folders..." menu item
- Add 'src_Quote' folder
==> ok

Scenario:
- Select cpu.cc file and call Copy in context menu
- Select src folder and call Paste in context menu
==> new file doesn't appear
Comment 1 ilia 2015-08-12 15:40:37 UTC
Here is a decision tree for current Paste action implementation:

FROM is always a disk folder (not logical)
Copy
  FROM an TO are in the same project
    FROM is absolute || (FROM starts with .. && FROM is logical)
      do nothing
    else
      TO is a disk folder
        copy file
        copy configuration
      TO is a logical folder
        copy file to the FROM folder
        add to the logical folder TO
        copy configuration
  Different project
    TO is a disk folder
      copy file
    TO is logical
      TO and FROM has the same filesystem
        FROM path is absolute || starts with ..
          FROM path is absolute
            add item to the logical folder TO
          FROM path is relative
            compute the relative path
            add item to the logical folder TO
        else 
          copy file
          add to logical folder TO
Comment 2 Quality Engineering 2015-08-13 01:20:00 UTC
Integrated into 'main-silver', will be available in build *201508130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2b84b1fa2eb6
User: Ilia Gromov <ilia@netbeans.org>
Log: fixed Bug #250964 - IDE can't copy&paste file from external folder