Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358425 - IRUtils.getReferencedPartsFor(part) do not contain the dynamically created part
Summary: IRUtils.getReferencedPartsFor(part) do not contain the dynamically created part
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 358912 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-21 10:21 EDT by Huang Ji Yong CLA
Modified: 2017-02-23 14:19 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Huang Ji Yong CLA 2011-09-21 10:21:04 EDT
Steps to reproduce:
Create a new Web Client Project.
Create a new RUI Handler in that project with the following source.
package client;

// RUI Handler
import org.eclipse.edt.rui.history.HistoryHelper;

//
//

handler testRef type RUIhandler{ onConstructionFunction = start, cssFile = "css/testIR.css", title = "testRef"}
	
    function start()
    	if( new HistoryHelper{}.isIE()) // The HistoryHelper is not included in the ref parts
    		syslib.writeStdout("In IE");
    	end
    end
end

The handler use new HistoryHelper{} to reference HistoryHelper, but historyHelper does not contained in the IRUtils.getReferencedPartsFor(part) list.
If we define HistoryHelper as a field, it it included in the list.
Comment 1 Huang Ji Yong CLA 2011-09-28 23:30:13 EDT
*** Bug 358912 has been marked as a duplicate of this bug. ***
Comment 2 Paul Harmon CLA 2011-10-24 12:16:14 EDT
This was fixed with a change to IRUtils.PartsReferenceResolver to fix bug 357247 (on 9/26/2011).
Comment 3 Huang Ji Yong CLA 2011-10-31 04:53:21 EDT
Verified in Build 201110302101