putValue( Action.SHORT_DESCRIPTION, "Evaluates this xpath expression against the latest request" );
}
public void actionPerformed( ActionEvent e )
{
WsdlMockResult lastMockResult = getMockOperation().getLastMockResult();
if( lastMockResult == null )
{
UISupport.showErrorMessage( "Missing last request to select from" );
return;
}
try
{
WsdlMockResponse retVal = selectMockResponse( lastMockResult.getMockRequest(), null );
UISupport.showInfoMessage( "XPath Selection returned [" + ( retVal == null ? "null" : retVal.getName() )
+ "]" );
}
catch( Exception e1 )
{