Package qwickie.hyperlink

Examples of qwickie.hyperlink.WicketHyperlink


            return null;
          }
          String wicketId;
          try {
            wicketId = document.get(wicketIdRegion.getOffset(), wicketIdRegion.getLength());
            WicketHyperlink wh = new WicketHyperlink(wicketIdRegion, wicketId, isHtmlFile ? "java" : "html");
            wh.openJavaFileOnly(isHtmlFile);
            wh.open();
          } catch (BadLocationException e) {
          }

        }
      }
View Full Code Here


            final IJavaElement[] jes = cu.codeSelect(javaRegion.getOffset(), javaRegion.getLength());
            if (jes.length == 1 && TypeHelper.isWicketJavaElement(jes[0])) {

              final IResource resource = cu.getResource();
              final String openKind = jes[0].getElementName().equals(DocumentHelper.GET_STRING) ? WicketHyperlink.PROPERTIES : WicketHyperlink.HTML;
              final WicketHyperlink wh = new WicketHyperlink(new Region(0, 0), "", openKind);
              final List<String> filenamesToOpen = wh.getFilenamesToOpen(resource, openKind);

              for (final String filename : filenamesToOpen) {
                final IFile file = WicketHyperlink.getFile(filename);
                try {
                  final InputStream contents = file.getContents();
View Full Code Here

      final IResource openedResource = (IResource) editor.getEditorInput().getAdapter(IResource.class);
      String extension = "";
      if (!QWickieActivator.getDefault().openHTMLFiles() && QWickieActivator.getDefault().openPropertiesFiles()) {
        extension = WicketHyperlink.PROPERTIES;
      }
      final List<String> filenamesToOpen = new WicketHyperlink(new Region(1, 1), "", WicketHyperlink.JAVA).getFilenamesToOpen(openedResource, extension);
      for (String fileName : filenamesToOpen) {
        try {
          final IFile file = WicketHyperlink.getFile(fileName);
          if (file != null && file.exists()) {
            if ((QWickieActivator.getDefault().openHTMLFiles() && WicketHyperlink.HTML.equals(file.getFileExtension())) || (QWickieActivator.getDefault().openPropertiesFiles() && WicketHyperlink.PROPERTIES.equals(file.getFileExtension()))) {
View Full Code Here

TOP

Related Classes of qwickie.hyperlink.WicketHyperlink

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.