Examples of Perspective


Examples of org.drools.guvnor.client.perspectives.Perspective

    public static Map<String, List<ModuleEditorConfiguration>> loadModuleEditorMetaData() {
        Map<String, List<ModuleEditorConfiguration>> moduleEditorConfigurations = new HashMap<String, List<ModuleEditorConfiguration>>();
        String[] registeredPerspectiveTypes = getRegisteredPerspectiveTypes();
        for(String perspectiveType : registeredPerspectiveTypes) {
            Perspective p = getPerspective(perspectiveType);
            InputStream in = p.getClass().getResourceAsStream("perspective.xml");
            //REVISIT: can a perspective have no perspective configuration file, eg, the runtime perspective?
            if(in != null) {
                PerspectiveConfigurationParser parser = new PerspectiveConfigurationParser(in);
                List<ModuleEditorConfiguration> moduleEditors = parser.getModuleEditors();
                moduleEditorConfigurations.put(perspectiveType, moduleEditors);
View Full Code Here

Examples of org.eclipse.ui.internal.Perspective

      return;
    }

        if (makeFast) {
            WorkbenchPage wp = (WorkbenchPage) activePage;
          Perspective persp = wp.getActivePerspective();

            // If we're making a fast view then use the new mechanism directly
            boolean useNewMinMax = Perspective.useNewMinMax(persp);
            if (useNewMinMax) {
              IViewReference ref = persp.getViewReference(viewId, null);
              if (ref == null)
                return;

              persp.getFastViewManager().addViewReference(FastViewBar.FASTVIEWBAR_ID, -1, ref, true);
            wp.activate(ref.getPart(true));
           
            return;
            }
           
View Full Code Here

Examples of org.flexdock.perspective.Perspective

    /**
     * {@inheritDoc}
     */
    public Element serialize(Document document, Object object) {
        Perspective perspective = (Perspective) object;

        Element perspectiveElement = document.createElement(PersistenceConstants.PERSPECTIVE_ELEMENT_NAME);
        perspectiveElement.setAttribute(PersistenceConstants.PERSPECTIVE_ATTRIBUTE_ID, perspective.getPersistentId());
        perspectiveElement.setAttribute(PersistenceConstants.PERSPECTIVE_ATTRIBUTE_NAME, perspective.getName());

        ISerializer layoutSerializer = SerializerRegistry.getSerializer(Layout.class);
        Element layoutElement = layoutSerializer.serialize(document, perspective.getLayout());

        perspectiveElement.appendChild(layoutElement);

        ISerializer layoutSequenceSerializer = SerializerRegistry.getSerializer(LayoutSequence.class);
        if (perspective.getInitialSequence() != null) {
            Element layoutSequenceElement = layoutSequenceSerializer.serialize(document, perspective.getInitialSequence());
            perspectiveElement.appendChild(layoutSequenceElement);
        }

        return perspectiveElement;
    }
View Full Code Here

Examples of org.gephi.desktop.perspective.spi.Perspective

                    tpg.open();

                    PerspectiveMember[] members = Lookup.getDefault().lookupAll(PerspectiveMember.class).toArray(new PerspectiveMember[0]);

                    //Close members
                    Perspective closingPerspective = getPerspective(selectedPerspective);
                    for (PerspectiveMember member : members) {
                        if (member.close(closingPerspective)) {
                            if (member instanceof TopComponent) {
                                boolean closed = ((TopComponent) member).close();
                                //System.out.println("Close "+member+" : "+closed);
View Full Code Here

Examples of org.gephi.perspective.spi.Perspective

        }

        //Store selected in prefs
        NbPreferences.root().put(SELECTED_PERSPECTIVE_PREFERENCE, selectedPerspective);

        Perspective selectedPerspectiveInstance = getSelectedPerspective();

        openAndCloseMembers(selectedPerspectiveInstance);

        WindowManager.getDefault().addWindowSystemListener(new WindowSystemListener() {
            private Dimension lastDimension = null;
View Full Code Here

Examples of org.nlogo.api.Perspective

    //

    gl.glLoadIdentity();

    synchronized (world) {
      Perspective perspective = world.observer().perspective();
      Agent targetAgent = world.observer().targetAgent();

      worldRenderer.observePerspective(gl);

      worldRenderer.renderCrossHairs(gl);
View Full Code Here

Examples of org.openquark.cal.services.Perspective

            if (typeConsApp == null || typeConsApp.isFunctionType()) {
                return null;
            }
           
            // Check visibility of the type.. (should we do this?)
            Perspective perspective = getValueNodeBuilderHelper().getPerspective();
            if (perspective.getTypeConstructor(typeConsApp.getName()) == null) {
                return null;
            }
           
            if (dataConstructor == null) {
                // No data constructor provided - we have to pick one, and create a default value.
               
                // If the perspective's working module has changed, the typeExprToNodeMap is no longer valid.
                if (perspective.getWorkingModule() != workingModule) {
                    workingModule = perspective.getWorkingModule();
                    typeExprToNodeMap.clear();
                }
               
                // TODOEL: ~HACK - we use the string-ified value as a key because we want it equals() in the map.
                String typeExprString = typeExpr.toString();
           
                // First, check if we've previously created a value node for this expression.
                if (typeExprToNodeMap.containsKey(typeExprString)) {

                    // We've already found a value node for this type, so just return it.
                    // If we're currently in the process of finding a value node for it, then this
                    // will end up returning null. That's ok since it indicates to the caller that
                    // there is a cycle.
                    DataConstructorValueNode valueNode = typeExprToNodeMap.get(typeExprString);
                    return valueNode != null ? valueNode.copyValueNode(typeExpr) : null;
               
                } else {
                    // Add a signal that we are building a value node for this type.
                    typeExprToNodeMap.put(typeExprString, null);
                }
               
                // Iterate over the visible data constructors.
                DataConstructor[] dataConsArray = perspective.getDataConstructorsForType(typeConsApp.getName());
               
                if (dataConsArray != null) {

                    for (final DataConstructor element : dataConsArray) {
View Full Code Here

Examples of org.sonar.api.component.Perspective

    GraphPerspectiveLoader perspectiveLoader = mock(GraphPerspectiveLoader.class);

    GraphPerspectiveBuilder perspectiveBuilder =
            new GraphPerspectiveBuilder(graph, MutablePerspective.class, null, perspectiveLoader) {};

    Perspective loadedPerspective = perspectiveBuilder.loadPerspective(MutablePerspective.class, component);

    assertThat(loadedPerspective).isNull();
  }
View Full Code Here

Examples of org.springframework.richclient.application.docking.jide.perspective.Perspective

  /*
   * Logic: if the current perspective is either the null on (first time
   *     use) or the layout is invalid then use the default perspective.
   */
    PerspectiveManager perspectiveManager = ((JideApplicationPage)getPage()).getPerspectiveManager();
    Perspective perspective = perspectiveManager.getCurrentPerspective();
    if(perspective == NullPerspective.NULL_PERSPECTIVE ||
        !LayoutManager.isValidLayout(dockableHolder.getDockingManager(), pageId, perspective)){
      perspective = perspectiveManager.getDefaultPerspective();
    }
    perspective.switchPerspective(this, pageId, false);
  }
View Full Code Here

Examples of org.springframework.richclient.application.docking.jide.perspective.Perspective

    this.saveLayoutOnClose = saveLayoutOnClose;
  }
 
  public void windowClosing(WindowEvent event) {
    if(saveLayoutOnClose){
      Perspective perspective = ((JideApplicationPage)window.getPage()).getPerspectiveManager().getCurrentPerspective();
      LayoutManager.savePageLayoutData(manager, window.getPage().getId(), perspective.getId());
      if(log.isDebugEnabled()){
        log.debug("Saving page layout for page "+window.getPage().getId()+" and perspective "+perspective.getId());
      }
    }
    window.close();
  }
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.