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 160657 - Local elements not displayed in POM Model
Summary: Local elements not displayed in POM Model
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 15:18 UTC by Jaroslav Pospisil
Modified: 2009-03-23 20:38 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 Jaroslav Pospisil 2009-03-19 15:18:49 UTC
First time you open pom.xml file, there's no local elements displayed (normal and bold font), only inherited (italic).If
you switch to POM inheritance view and back,there's all elements displayed correctly now.
Comment 1 Milos Kleint 2009-03-20 14:37:24 UTC
it seems the problem lies in the fact that POMModel's isInDocumentModel() method returns false for the current document.
I guess the model gets somehow reset if the document gets opened in the editor
Comment 2 Milos Kleint 2009-03-22 11:54:18 UTC
http://hg.netbeans.org/main/rev/d286c52c9e19
Comment 3 Jaroslav Pospisil 2009-03-23 14:04:07 UTC
v.
Comment 4 Quality Engineering 2009-03-23 20:38:58 UTC
Integrated into 'main-golden', will be available in build *200903231401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d286c52c9e19
User: Milos Kleint <mkleint@netbeans.org>
Log: #160657 replace an non current root object with the current one.