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 223235 - wrong project groups behaviour
Summary: wrong project groups behaviour
Status: RESOLVED DUPLICATE of bug 168578
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 10:13 UTC by lesar
Modified: 2012-12-17 14:45 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 lesar 2012-12-04 10:13:56 UTC
My version:
Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_09; OpenJDK 64-Bit Server VM 23.2-b09
System: Linux version 3.2.0-34-generic running on amd64; UTF-8; it_IT (nb)

If I use in ide file/project groups/<group name: pippo>
all work well and all actual open tabs are closed and are reopen all tabs that was opened when the group pippo was closed last time.

but if I close netbeans and make a bash script like that:
...
ANS="pippo"
exec /home/user/netbeans-7.2/bin/netbeans --userdir "/home/user/.netbeans/7.2" --open-group $ANS
...

when I use the script to open netbeans all the last tabs in last groups are open and no tabs in group pippo are open.

I think that open netbeans using --open-group pippo have to stop load the last tabs session end have to load only the group pippo last tabs session.

Am I wrong?

best regards

P.S. when I say 'tab' I means:
the text editor can have more windows, all window can dock several tabs, all tab display a single file.
if I click on tabs header I can switch to display the tab content file on current editor window.
Comment 1 Stanislav Aubrecht 2012-12-04 10:49:25 UTC
Looks like a problem in project group implementation - correct document set should be restored after window system has been loaded.
Please evaluate, thanks.
Comment 2 Milos Kleint 2012-12-17 14:45:26 UTC
opened files for projects are stored in non-group aware location, in project specific space. That effectively means that one needs a Project instance in order to get the list of opened files, which
 1. won't work well if 2 groups share the same projects but have different files opened.
 2. to get the list of editor tabs to close, one need to load all previous projects (along with the new ones)

--opengroup will only change the open_project_urls and main_project_url preference values (as it's called fairly early in the initialization of the IDE). Then regular project initialization sequence gets started later.

related to issue 168578. or more likely a duplicate as the ideal fix for the issue is what issue 168578 suggests, have a list of opened files saved in project group settings, not per project.

*** This bug has been marked as a duplicate of bug 168578 ***