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 105231 - Navigator and bpel-source are not synchronized. Strange behavio of Navigator after delete expression
Summary: Navigator and bpel-source are not synchronized. Strange behavio of Navigator ...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vitaly Bychkov
URL:
Keywords:
Depends on: 108071
Blocks:
  Show dependency tree
 
Reported: 2007-05-31 10:03 UTC by Victoria Zhukovskaya
Modified: 2007-09-03 14:24 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 Victoria Zhukovskaya 2007-05-31 10:03:26 UTC
Navigator and bpel-source are not synchronized. Strange behavio of Navigator

1. Create synchronouse sample
2. Add to bpel

        <bpws:variable name="Variable2" type="xsd:byte"/>
        <bpws:variable name="Variable1" type="xsd:byte"/>

and
       <assign name="Assign1">
            <bpws:copy>
                <bpws:from>current-date()</bpws:from>
                <bpws:to>$outputVar.resultType/ns0:paramA</bpws:to>
            </bpws:copy>
            <bpws:copy>
                <bpws:from> ( $Variable1 + $Variable2 ) </bpws:from>
                <bpws:to>$outputVar.resultType/ns0:paramA</bpws:to>
            </bpws:copy>
        </assign>

these expressions have not logic but

Navigator has for these expressions two nodes in tree:
(query)=current-date()
(query)=(exp)

3. Go to source for bpel
and delete 
            <bpws:copy>
                <bpws:from>current-date()</bpws:from>
                <bpws:to>$outputVar.resultType/ns0:paramA</bpws:to>
            </bpws:copy>

Expected result:
Navigator should has (query)=(exp)
but result 
(query)=current-date()

4. Press Ctrl+Z
Navigator has
(query)=current-date()
(query)=(exp)

But source has only 
            <bpws:copy>
                <bpws:from> ( $Variable1 + $Variable2 ) </bpws:from>
                <bpws:to>$outputVar.resultType/ns0:paramA</bpws:to>
            </bpws:copy>
Comment 1 Victoria Zhukovskaya 2007-05-31 10:04:51 UTC
NetBeans IDE Dev (Build 200705300000)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_US (nb); Cp1252
Comment 2 Victoria Zhukovskaya 2007-05-31 15:15:13 UTC
step 5
press Ctrl+Z one more time - source will have both expression 
Comment 3 Vitaly Bychkov 2007-06-25 20:37:16 UTC
There are two different issues:
   first - non synchronized navigator's copy nodes
   second - unexected UndoRedo manager behaviour from the bpel source editor (see  108071)

The first one was fixed.
Comment 4 Vitaly Bychkov 2007-06-26 08:59:01 UTC
commited into trunk and release60-m10
Comment 5 Victoria Zhukovskaya 2007-09-03 14:24:01 UTC
After deleting copy - Navigator shows correct expression.

Product Version: NetBeans IDE Dev (Build 200709021200) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06