RCP recommended naming technique not working [message #884820] |
Mon, 11 June 2012 18:37  |
Eclipse User |
|
|
|
I am trying to take advantage of the suggestion on page 206 of the user manual.
Quote:However, you can improve the testability of your application by using the following method in your SWT or RCP code for the current component class: setData(String key, String ComponentName). For the key, use TEST_COMP_NAME.
My code:
public void createPartControl(Composite parent) {
Composite compositeWindingData = new Composite(section, SWT.NONE);
compositeWindingData.setData("TEST_COMP_NAME", "windingComposite");
viewer = new TableViewer(parent, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
viewer.setData("TEST_COMP_NAME", "tv_motor_list");
Table table = this.viewer.getTable();
viewer.setData("TEST_COMP_NAME", "tbl_motor_list");
}
The technical name in the Object Mapper is the same before and after adding the above setData() statements. I even created a new Test Project in the database after adding the setData() statements.
Any suggestions what I can do to get more consistent names?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04294 seconds