Examples of RequestMappingDialog


Examples of org.springframework.ide.eclipse.quickfix.jdt.processors.RequestMappingDialog

  private void applyChangeForMethod(IDocument document, int offset) throws MalformedTreeException,
      JavaModelException, IllegalArgumentException, BadLocationException {
    MultiTextEdit edit = new MultiTextEdit();
    String methodTypeString = null;

    RequestMappingDialog dialog = new RequestMappingDialog(Display.getDefault().getActiveShell());
    if (dialog.open() == Dialog.OK) {
      TextEdit importEdit = JdtQuickfixUtils.getTextEditForImport(cu, REQUEST_MAPPING_IMPORT);
      if (importEdit != null) {
        edit.addChild(importEdit);
      }

      Method methodType = dialog.getMethodType();
      if (methodType == Method.GET) {
        methodTypeString = "GET";
      }
      else if (methodType == Method.POST) {
        methodTypeString = "POST";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.