Examples of ViewPath


Examples of com.dubture.symfony.core.model.ViewPath

     
      if (wordRegion == null)
        return null;

      String path = document.get(wordRegion.getOffset(), wordRegion.getLength());
      ViewPath viewPath = new ViewPath(path);
     
      //   "AcmeDemoBundle::layout.html.twig" 2 part viewpath
      // link the whole thing to the template
      if (path.contains("::")) {
View Full Code Here

Examples of com.dubture.symfony.core.model.ViewPath

            // We found at least of annotation with class Template, create a view path
            String bundle = namespaceDeclaration.getName().replace("\\Controller", "").replace("\\", "");
            String controller = classDeclaration.getName().replace("Controller", "");
            String action = methodDeclaration.getName().replace("Action", "");

            ViewPath path = new ViewPath(String.format("%s:%s:%s", bundle, controller, action));
           
            if (!path.isValid()) {
                return false;
            }

            IModelElement[] templates = SymfonyModelAccess.getDefault().findTemplates(bundle, controller, project);
            this.template = null;
View Full Code Here

Examples of com.dubture.symfony.core.model.ViewPath

          }
          else path = "";
        }

        if (path != null) {               
          viewPath = new ViewPath(path);
          return true;
        }

      } catch (Exception e) {
View Full Code Here

Examples of com.dubture.symfony.core.model.ViewPath

    {
        if (path == null || !path.contains(".")) {
            return null;
        }
       
        IModelElement template = SymfonyModelAccess.getDefault().findTemplate(new ViewPath(path), project);
        if (template != null && template instanceof SourceModule) {
            try {
                SourceModule module = (SourceModule) template;
                return module;
            } catch (Exception e) {
View Full Code Here

Examples of com.dubture.symfony.core.model.ViewPath

                @Override
                public void proposalAccepted(IContentProposal proposal)
                {
                    parent = proposal.getContent();
                    IModelElement template = model.findTemplate(new ViewPath(parent), scriptProject);

                    if (template != null && template instanceof SourceModule) {

                        try {
View Full Code Here

Examples of com.dubture.symfony.core.model.ViewPath

         }
         int startOffset = SymfonyTextSequenceUtilities.readViewPathStartIndex(statement);
         String path = getDocument().getText().substring(statement.getOriginalOffset(startOffset), offset);
        
         if (path != null) {               
           viewPath = new ViewPath(path);
           return true;
         }
        
      } catch (Exception e) {
        Logger.logException(e);
View Full Code Here

Examples of com.pcmsolutions.system.paths.ViewPath

    }

    public static DeviceDesktopElement[] getDeviceDesktopElements(final DeviceContext device) throws Exception {
        DesktopElement[] e = (DesktopElement[]) executeViewTask(new CallbackTaskRunnable() {
            public Object run() throws Exception {
                return ZoeosFrame.getInstance().getZDesktopManager().getDesktopElementTree(new ViewPath(ZDesktopManager.dockWORKSPACE, ViewFactory.provideDefaultDesktopNames(device)));
            }
        });
        DeviceDesktopElement[] de = new DeviceDesktopElement[e.length];
        System.arraycopy(e, 0, de, 0, e.length);
View Full Code Here

Examples of com.pcmsolutions.system.paths.ViewPath

* Time: 11:04:26
*/
public class SystemViewFactory {
    public static ViewInstance providePropertiesView() {
        final DesktopName name = new DesktopName(PropertiesPanel.class, SystemPathFactory.providePropertiesPath());
        final ViewPath vp = new ViewPath(ZDesktopManager.dockPROPERTIES, name);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    PropertiesPanel pp = new PropertiesPanel(ZoeosPreferences.getPropertyList(), Zoeos.getInstance());
                    return pp;
View Full Code Here

Examples of com.pcmsolutions.system.paths.ViewPath

    }

    // DEVICE
    public static ViewInstance provideDefaultView(final DeviceContext device) {
        final DesktopName[] names = ViewFactory.provideDefaultDesktopNames(device);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);

        // final DesktopName name = new DesktopName(Object.class, PathFactory.provideDevicePath(device));
        return new ViewInstance() {
           // private transient DefaultDeviceEnclosurePanel view;
View Full Code Here

Examples of com.pcmsolutions.system.paths.ViewPath

        return join(provideDefaultDesktopNames(p.getDeviceContext()), new DesktopName(DefaultPresetViewerPanel.class, PathFactory.providePresetPath(p)));
    }

    public static ViewInstance provideDefaultView(final ReadablePreset p) {
        final DesktopName[] names = provideDefaultDesktopNames(p);
        final ViewPath vp = new ViewPath(ZDesktopManager.dockWORKSPACE, names);
        return new ViewInstance() {
            public JComponent getView() throws ComponentGenerationException {
                try {
                    DeviceWorkspaceEnclosurePanel dep = new DeviceWorkspaceEnclosurePanel();
                    dep.init(p.getDeviceContext(), new DefaultPresetViewerPanel(p));
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.