Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370395 - Reorganize & Optimize the source code structure generated by new service/library
Summary: Reorganize & Optimize the source code structure generated by new service/library
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Song Fan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 367261
  Show dependency tree
 
Reported: 2012-02-02 01:19 EST by Song Fan CLA
Modified: 2017-02-23 14:16 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Song Fan CLA 2012-02-02 01:19:13 EST
Build Identifier: 

Where should the following 3 EGL parts be saved when a new service/library is created?
 * Records
 * ConditionHandlingLib
 * ListSpecification

For example:
Wizard Config: 
    Package: mypkg
    Service Name: EmployeeService
Output:
    Package: mypkg
    EGL Source: EmployeeService.egl
    Package: common (where?? A sub-package of “mypkg”?)
        EmployeeRecords.egl (m, compiler setting(low p)..)
        ConditionHandlingLib.egl (investigate)
        ListSpecification.egl (in)

Todo List:
1. Some new input fields need to be added in the wizard UI so that developer can specify the where the 3 files should be saved. Default value should be provided by the wizard UI.
2. Need to investigate how to optimize the source code structure generated. Is it really necessary to create ConditionHandingLib and ListSpecification?  Maybe some of the functions in them could be moved into the service file.


Reproducible: Always
Comment 1 Song Fan CLA 2012-02-13 01:12:26 EST
=== Comment from Brian ===
* We need to review the content of the templates, which currently have commented lines in them:

//	const DuplicateKey				int = 5;		//Tried to Insert a row with a duplicate primary key
//	const AttemptChangePK			int = 6;		//Tried to Update a column that is part of a primary key
//	const ReferentialIntegrityViolation int = 7;	//Tried to delete a parent with dependent rows (on Delete Restrict)
//	const TableNotFound				int = 8;		//Dynamic SQL run-time SQL error.  Tablename not found (probably misspelled)
//	const ColumnNotFound			int = 9;		//Dynamic SQL run-time SQL error.  Column name not found (probably misspelled)
//	const InvaldSQLKeyWord			int = 10;		//Dynamic SQL run-time SQL error.  Misspelled SQL keyword
//	const InvalidSELECTInto			int = 11;		//A SELECT INTO or sub-select returned more than one row (-811)
	//END status codes
Comment 2 Song Fan CLA 2012-03-05 10:14:27 EST
fixed
Comment 3 Lisa Lasher CLA 2012-03-30 18:29:01 EDT
close