In this task, instead of editing the Java that we are generating,
we are taking a shortcut by importing the Java implementation. Follow these
steps to implement the CreditCheck Java™ component:
- Switch to the Assembly Diagram: LoanApplicationModule editor.
- Click the Selection Tool icon
on the palette.
- Right-click the CreditCheck node
.
- From the pop-up menu, select Generate Implementation.The Generate Implementation window opens.
- Click OK.The editor opens for CreditCheckImpl.java.
- Switch to the CreditCheckImpl.java editor.
- From the menu, select File > Close (or press Ctrl+F4).The editor closes for CreditCheckImpl.java.
- Switch to the Assembly Diagram: LoanApplicationModule editor.
- From the menu, select File > Import.The Import window opens.
- Click File system.The Select field is set to Import resources from the local file system
.
- Click Next.
- In the From directory list, type WSInstallDir\eclipse\plugins\com.ibm.wbit.samples.content\scenarioparts\loanapplication.
- In the navigation tree, click loanapplication.
- Select the check box next to CreditCheckImpl.java.
- In the Into folder field, type LoanApplicationModule\sca\component\java\impl.The Select field is set to Import resources from the local file system.
.
- Click Create selected folders only.
- Click Finish.