// generate new model, only if model changed.
if (propertyModel.isDirty()) {
propertyModel.save(monitor);
}
// create custom srcpf
Properties srcpfProperties =
ISeriesNativeObjectBasicUtil.getSourceFileProperties(
37,
112,
false,
"custom description,
with ccsid=37, rl=112, igcdata=false");
ISeriesNativeObjectUtil.createSRCPF(
"CUSTOMSRCP",
selectedProject.getBaseIProject(),
srcpfProperties,
null,
null);
ISeriesNativeMemberUtil.createMember(
"CUSTOM.rpg",
(IFolder) selectedNativeObject.getBaseIContainer(),
memberProperties,
null,
null);
The above snippet is taken from one of the samples included with the iSeries Project perspective. You can check the Installing and Running the Samples section for details about this sample. Also you can check the Java documentation for the iSeries Projects for details.