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 217874

Summary: Ability for users of ProcessBuilder to connect via rfs
Product: cnd Reporter: Jaroslav Tulach <jtulach>
Component: RemoteAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: apireviews, phejl
Priority: P1 Keywords: API_REVIEW_FAST
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Proposed patch
I've documented the change in extexecution API

Description Jaroslav Tulach 2012-09-05 09:53:14 UTC
I have an ProcessBuilder (from extexecution backed by NativeProcessBuilder) which has not been connected before. I'd like to initiate the interaction with user to connect to it using stable public APIs.

My idea is to reuse UserQuestionException.
Comment 1 Jaroslav Tulach 2012-09-05 09:56:03 UTC
Created attachment 123936 [details]
Proposed patch

The expected usage would be:

AGAIN: for (;;) {
  try {
    builder.call();
  } catch (UserQuestionException ex) {
    ex.confirm(); // shows a dialog, usually
    continue AGAIN;
  }
  break;
}
Comment 2 Milos Kleint 2012-09-05 10:01:08 UTC
I'm not going to comment the necessity of using the exception as I have no domain knowledge

MK1: apichanges?
MK2: should be documented to throw UserQuestionException
Comment 3 Jaroslav Tulach 2012-09-05 12:44:22 UTC
Re. MK01, I want to add API changes, but there are none for this module! Maybe I could put the change into extexecution API and Javadoc (for MK02) as at the end, that is the API I am using.
Comment 4 Jaroslav Tulach 2012-09-19 14:12:55 UTC
Created attachment 124584 [details]
I've documented the change in extexecution API

I'd like to integrate on Friday, Sep 21, 2012.
Comment 5 Jaroslav Tulach 2012-09-27 09:34:51 UTC
ergonomics#3ef8055d88f4
Comment 6 Quality Engineering 2012-10-01 12:05:19 UTC
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3ef8055d88f4
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #217874: Use UserQuestionException when the remotefs is not connected