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 23341 - Openfile should check for -Dnetbeans.openfile= during startup
Summary: Openfile should check for -Dnetbeans.openfile= during startup
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ lkramolis
URL:
Keywords:
Depends on:
Blocks: 5790
  Show dependency tree
 
Reported: 2002-05-10 15:25 UTC by _ ttran
Modified: 2002-05-14 19:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed fix. (4.21 KB, patch)
2002-05-14 18:56 UTC, _ lkramolis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ ttran 2002-05-10 15:25:11 UTC
As a part of implementing issue 5790 new
functionallity must be added to openfile.

runide.{sh,exe} -openfile <file> will try to
connect with a running IDE via TCP/IP.  If the
connection fails indicating no IDE is running,  a
new instance of NB will be launched with a system
property ${netbeans.openfile} set to <file>. 
Openfile submodule should check this property
during startup, probably in its
ModuleInstall.restored() method and open the file.
Comment 1 _ lkramolis 2002-05-14 18:56:26 UTC
Created attachment 5736 [details]
Proposed fix.
Comment 2 _ lkramolis 2002-05-14 19:01:32 UTC
It is implemented but it is not nice, especially:

  RequestProcessor.postRequest (..., 10000);

when I am waiting for IDE initialization. I am not sure if it is
possible to listen on start-up. I have to wait for at least filesystem
initialization.

Please, try it and let me know.