use of org.eclipse.wst.internet.monitor.core.internal.http.ResendHTTPRequest in project webtools.servertools by eclipse.
the class SendModifiedMessageAction method run.
/* (non-Javadoc)
* @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
*/
public void run(IAction action) {
if (selection != null) {
Object element = ((StructuredSelection) selection).getFirstElement();
if (element != null && element instanceof ResendHTTPRequest) {
ResendHTTPRequest req = (ResendHTTPRequest) element;
ContentViewer curViewer = MonitorView.view.vm.getCurrentRequestViewer();
HeaderViewer curHeaderViewer = MonitorView.view.vm.getCurrentRequestHeaderViewer();
req.setRequest(curViewer.getContent(), Request.CONTENT);
if (curHeaderViewer != null)
req.setRequest(curHeaderViewer.getContent(), Request.TRANSPORT);
req.sendRequest();
}
}
}
Aggregations