Package com.dubture.symfony.index.model

Examples of com.dubture.symfony.index.model.Route


  public String getInfo(IProgressMonitor monitor) {
    try {
     
      RouteSource routeSource = (RouteSource) getModelElement();
      Route route = routeSource.getRoute();
      return HTMLUtils.route2Html(route);
     
     
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here


      String source = sm.getSource();     
      String selection = source.substring(hoverRegion.getOffset(), hoverRegion.getOffset() +  hoverRegion.getLength());

      if (selection != null && selection.length() > 0) {
       
        Route route = SymfonyModelAccess.getDefault().findRoute(selection, sm.getScriptProject());
       
        if (route != null) {
         
          RouteBrowserInformationControlInput info = new RouteBrowserInformationControlInput(null, route);
          return info;
View Full Code Here

        String name = result.getString(++columnIndex);
        String pattern = result.getString(++columnIndex);
        String controller = result.getString(++columnIndex);
        String bundle = result.getString(++columnIndex);
        String action = result.getString(++columnIndex);
        routes.add(new Route(bundle, controller, action, name, pattern));
      }
    } catch (Exception e) {
      Logger.logException(e);
    }
View Full Code Here

        String name = result.getString(++columnIndex);
        String pattern = result.getString(++columnIndex);
        String controller = result.getString(++columnIndex);
        String bundle = result.getString(++columnIndex);
        String action = result.getString(++columnIndex);
        routes.add(new Route(bundle, controller, action, name, pattern));
      }
    } catch (Exception e) {
      Logger.logException(e);
    }
View Full Code Here

        Object _default = expr.evaluate(node, XPathConstants.NODESET);
        NodeList defaults = (NodeList) _default;

        if (defaults.getLength() == 1) {
          Node controllerNode = defaults.item(0);     
          routes.push(new Route(name, pattern, controllerNode.getTextContent()));         
        }

      }

    } catch (Exception e) {
View Full Code Here

           
            if(defaults == null)
              continue;
           
            String viewPath = (String) defaults.get("_controller");
            routes.push(new Route(name, pattern, viewPath));
           
          }

        } catch (Exception e) {
          Logger.logException(e);
View Full Code Here

            String className = annotation.getClassName();

            if (className.startsWith(SymfonyCoreConstants.TEMPLATE_ANNOTATION)) {
                currentAnnotationPath = AnnotationUtils.extractTemplate(annotation, bundle, controller, action);
            } else if (className.startsWith(SymfonyCoreConstants.ROUTE_ANNOTATION)) {
                Route route = AnnotationUtils.extractRoute(annotation, bundle, controller, action);
                routes.push(route);
            }
        }

        for (Object argument : currentMethod.getArguments()) {
View Full Code Here

     
      Stack<Route> routes = parser.getRoutes();
     
      assertEquals(1, routes.size());
     
      Route route = routes.pop();
     
      assertEquals("blog", route.name);
      assertEquals("/blog", route.pattern);
      assertEquals("Blog", route.controller);
      assertEquals("index", route.action);
View Full Code Here

            ILaunchConfigurationType configType) {
        int entries = search == null ? 0 : search.length;

       
//        EditorUtility utility = new EditorUtility();
        Route route = new Route("foo", "bar");

        for (int i = 0; i < entries; i++) {
            try {
                String phpPathString = null;
                IProject project = null;
View Full Code Here

//                    return new IModelElement[] { template };
//                }
//            }

            // nope, not a viewpath, check for a route
            Route route = model.findRoute(literal, project);

            if (route != null) {

                IMethod method = model.findAction(route, project);
View Full Code Here

TOP

Related Classes of com.dubture.symfony.index.model.Route

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.