Issue Details (XML | Word | Printable)

Key: FDT-1465
Type: Improvement Improvement
Status: Confirmed Confirmed
Priority: Minor Minor
Assignee: FDT Team
Reporter: Francis Varga
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FDT

Quck Fix add Event Const

Created: 26/Oct/10 02:43 PM   Updated: 22/Jun/12 06:42 PM
Component/s: Quick Fix / Assist
Affects Version/s: FDT 4.5.2
Fix Version/s: FDT
Security Level: public

Time Tracking:
Not Specified

Review Type: Review by Product Owner


 Description  « Hide
Currently we have create CONST

new => create Event Const

This will generate a const in the Event class with the complete class path like =>
"${enclosing_package_and_type}.${Event_Type}"



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Francis Varga added a comment - 27/Oct/10 06:53 PM
right

Panel added a comment - 14/Dec/11 11:40 AM - edited
We all know event name is now enough to create unique event type.
${enclosing_package_and_type} may be useful if there are few events classes with the same Name, but located in different packages (it's time to think about refactoring).

Personally I would just add ${enclosing_type}, because I believe it's enough to create unique event type and it's just more useful than ${enclosing_package_and_type}
ex. adding ${enclosing_package_and_type} will be problematic when you do the refactor - each move your class to another package you'll have to manually updated event types.

so my proposal is:
public static const ${name}:String = "${enclosing_type}.${name}";


Alan K (Deprecated) added a comment - 15/Dec/11 03:36 AM
Nice info Panel. Thanks