Package org.springframework.ide.eclipse.quickfix.jdt.processors

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

Related Classes of org.springframework.ide.eclipse.quickfix.jdt.processors.RequestMappingDialog

Copyright © 2018 www.massapicom. 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.