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 83576 - Select in Projects command does not work for BPEL documents
Summary: Select in Projects command does not work for BPEL documents
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 11:49 UTC by Maksim Khramov
Modified: 2006-09-13 09:43 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 Maksim Khramov 2006-08-28 11:49:16 UTC
Create new BPEL project
Create BPEL process. (Or XML schema and WSDL)
Switch to source view and invoke Select in Projects command.
Nothing happen. The selection in Projects tree remains on last selected node
Comment 1 Michael Frisino 2006-08-29 02:49:24 UTC
sorry ... did not mean to change assign. 
Comment 2 Michael Frisino 2006-08-29 03:02:54 UTC
I just tested on windows and it seems to be working fine at least for BPEL
source editor. If I activate the select in project | files | favorites ... they
all work as expected.
Comment 3 Maksim Khramov 2006-08-29 12:19:12 UTC
If document just opened, the focus switched to editor, but document node is
still selected.
When I invoke Select in Project, the projects window becomes active and its look
like the document is hilited. But I see "The document node could not be found in
the projects tab" message in statusbar.
Comment 4 Michael Frisino 2006-08-29 16:49:06 UTC
Denis, probably not "your" bug, but can you investigate. I do not fully
understand description. Maybe you can go to mkhramov and see bug on his machine.
Comment 5 Denis Anisimov 2006-08-30 08:09:16 UTC
I see the problem.
When you invoke "Select in Projects" via popup menu in editor then Projects tab 
is activated. Nothing more happened.
So if you have selected bpel file node before you put focus into editor then 
you will get selected this node. And this looks fine.
But if you change node in project to something else and change focus into editor 
and call this command then you will  get selected this node.
So feature doesn't work.

Need to fix this.
Comment 6 Denis Anisimov 2006-08-30 14:11:24 UTC
This is defenitely not OM bug.
I see the same problem for Schema file.

But this action for Java file and for jsp file works fine.
Possibly the problem in project impl.
Calling of "Select in ...." action trying to ask ExplorerManager root node for
corresponding FileObject. As result it should find selected node .
Message "The document node could not be found in the projects tab"
appears in status bar when result selected node is null .

So one need to find why searching for fileobject returns null for BPEL, Schema
and it works fine f.e. in Java.
Comment 7 Denis Anisimov 2006-08-30 14:25:54 UTC
The problem is inside
org.netbeans.modules.bpel.project.ui.IcanproLogicalViewProvider class.

Below method should return Node that correspond to FileObject node:

    public Node findPath( Node root, Object target ) {
        // XXX implement
        return null;
    }

But this method is not implemented.
Need to implement it.
Comment 8 Denis Anisimov 2006-08-30 16:30:51 UTC
Fixed.
Comment 9 Maksim Khramov 2006-09-13 09:43:14 UTC
Verified in build 06.09.12