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 93505 - BPEL code completion shows up in all XML files
Summary: BPEL code completion shows up in all XML files
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 05:28 UTC by Samaresh Panda
Modified: 2007-02-06 17:59 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 Samaresh Panda 2007-01-30 05:28:14 UTC
BPEL code completion items show up in all XML files. BPELCompletionModelProvider
should prevent this.

The idea behind passing a CompletionContext to various CompletionModelProvider
implementation is that, they determine whether or not to return a list of
CompletionModels.

As an example, you can check the extension of the file

 if(!context.getPrimaryFile().getExt().equals("bpel"))
    return null;

Or, you may want to check something else and determine whether or not to return
a list of CompletionModels.
Comment 1 Samaresh Panda 2007-01-30 05:37:57 UTC
I meant all XML files where schema aware code completion is active, for example
WSDL file.
Comment 2 Denis Anisimov 2007-01-30 13:34:53 UTC
OK, I have added additional logic for preventing enabling BPEL CC 
for non-bpel XMLs.
Comment 3 Samaresh Panda 2007-02-06 17:59:21 UTC
Verified.