// Set default descriptions for every interface.
for ( int intIndexInterface = 0;
intIndexInterface < vectorInterfaces.size();
intIndexInterface++ ) {
// Get the interface.
IDLInterface idlinterface = ( IDLInterface )
vectorInterfaces.elementAt( intIndexInterface );
// Get the method vector.
vectorMethods = idlinterface.getVectorMethods();
// Set default descriptions for every method.
for ( int intIndexMethod = 0;
intIndexMethod < vectorMethods.size();
intIndexMethod++ ) {
// Get the method.
IDLMethod idlmethod =
( IDLMethod ) vectorMethods.elementAt( intIndexMethod );
// Set the default display function name.
idlmethod.setDisplayFunctionName(
idlmethod.getMethodElement().getName().getName() );
// Set the default function desription.
idlmethod.setFunctionDescription( "Without description." );
// Set the default category.
idlmethod.setCategory( "Add-in" );
// Get the method element.
MethodElement methodelement = idlmethod.getMethodElement();
// Get the parameters from the method.
MethodParameter[] methodparameter =
methodelement.getParameters();
// Create an array for the parameter description.
IDLParameter[] idlparameter =
new IDLParameter[ methodparameter.length ];
// Set default descriptions for every parameter.
for ( int intIndexParameter = 0;
intIndexParameter < methodparameter.length;
intIndexParameter++ ) {
// Create a new parameter.
idlparameter[ intIndexParameter ] = new IDLParameter();
// Set default display parameter name.
idlparameter[ intIndexParameter ].setDisplayArgumentName(
methodparameter[ intIndexParameter ].getName() );
// Set default display parameter description.
idlparameter[ intIndexParameter ].setArgumentDescription(
"Without description." );
}
// Set parameter description.
idlmethod.setArgumentDescription( idlparameter );
}
// Fill in the interface combo box.
jcomboboxInterfaces.addItem(
idlinterface.getIdentifierName().getName() );
}
if ( vectorInterfaces.size() > 0 ) {
// Enable text fields and combo box.
jcomboboxCategory.enable();