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 142333 - AutoLayout operator positions are not saved with iep process
Summary: AutoLayout operator positions are not saved with iep process
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: IEP editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: pvarghese
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 22:42 UTC by kdoizaki
Modified: 2008-09-16 18:04 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 kdoizaki 2008-07-30 22:42:51 UTC
Applied IEP NBM files from build080720 to JavaCAPS R6.

Steps to reproduce:
1. open an existing .iep file in IEP editor
2. click AutoLayout icon
* notice that icons on iep canvas are re-aligned; however, NB toolbar Save and Save All icons are not enabled.
3. move one operator slightly to see Save/Save All icons enabled, then click Save
4. close IEP editor
5. open the same .iep file again
* notice that operator positions reverted back to prior to clicking AutoLayout, except for the one operator that was 
slightly moved.

Workaround:
click AutoLayout, then select all operators on the canvas and move them all slightly, then click Save icon.
Comment 1 pvarghese 2008-08-25 23:15:39 UTC
Autolayout action was not settting the newly changed EntitiyNode positions on the underlying model. Doing this will
trigger the model events that enable the Save/Save All button .

Fixed by:
changeset:   85174:91b35778b6aa
tag:         tip
user:        <pvarghese@netbeans.org>
date:        Mon Aug 25 15:13:44 2008 -0700
files:       
iep.editor/src/org/netbeans/modules/iep/editor/designer/PlanCanvas.java 
iep.editor/src/org/netbeans/modules/iep/editor/designer/actions/AutoLayoutAction.java
description:
bug 142333 Autolayout action does not enable SaveCookie
Comment 2 kdoizaki 2008-09-16 18:04:16 UTC
Verified using IEP nbm files from build080915 with JavaCAPS R6.

After clicking AutoLayout icon, icons are re-aligned in iep canvas and Save All icon is enabled.
If all icons are already aligned, hitting AutoLayout icon will not change any icon positions, thus Save All icon is not
unnecessarily enabled.