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 235038 - Select in Projects wants to open the file from a different project
Summary: Select in Projects wants to open the file from a different project
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 14:19 UTC by samkar
Modified: 2013-08-29 14:17 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 samkar 2013-08-26 14:19:09 UTC
Given two projects (A and B) which share the same sources, but have different configurations.

Opened project A and did some work.
Closed A, opened B.
No editors open yet in B.
Opened a class using 'Go to Type'.
Used 'Select in Projects'.

Now netbeans wants to open project A instead of selecting the file in 
project B where i opened if from (at least I think that this is what I did).

I would expect that netbeans only works with currently opened projects if I use 'Go to Type' or 'Select in Projects' (at least primarily).

After closing the project all editors remain open as if netbeans lost the connection between opened files and the project they were opened from.

Filesystem structure of (all) my projects:

basedir
+ bin
+ dist
+ nb_project_A
  + nbproject
+ nb_project_B
  + nbproject
+ src
+ test

BTW:
If there is not any open project, there is no way to use 'Go to Type', 
so why have the opened files been associated to a different project?

If I open a completely different project I'm not able to use 'Go to Type' to navigate to any 'outside source' (e.g. a source of project A or B), and that is expectance compliant.
Comment 1 Tomas Zezula 2013-08-29 14:17:11 UTC
NetBeans project system does not allow shared source roots.
Every file can be a part at most of 1 project.