Examples of restore()


Examples of org.flexdock.docking.state.LayoutManager.restore()

     * @see LayoutManager#restore(boolean)
     */
    public static boolean restoreLayout(boolean loadFromStorage)
    throws IOException, PersistenceException {
        LayoutManager mgr = getLayoutManager();
        return mgr == null ? false : mgr.restore(loadFromStorage);
    }

    private static Dockable loadAndRegister(String id) {
        DockableFactory factory = id == null ? null
                                  : getDockingManager().dockableFactory;
View Full Code Here

Examples of org.flexdock.perspective.restore.handlers.RestorationHandler.restore()

        if(dockable != null) {
            DockingState info = PerspectiveManager.getInstance().getDockingState(dockable, true);
            HashMap context = new HashMap();
            for(Iterator it=restorationHandlers.iterator(); it.hasNext();) {
                RestorationHandler handler = (RestorationHandler)it.next();
                if(handler.restore(dockable, info, context))
                    return true;
            }
        }

        return false;
View Full Code Here

Examples of org.glassfish.grizzly.memory.BufferArray.restore()

       
        // Restore buffer state
        for (int i = 0; i < queueRecord.savedBufferStates.size(); i++) {
            final BufferArray savedState = queueRecord.savedBufferStates.get(i);
            if (savedState != null) {
                savedState.restore();
                savedState.recycle();
            }
        }
       
        queueRecord.savedBufferStates.clear();
View Full Code Here

Examples of org.glassfish.grizzly.memory.ByteBufferArray.restore()

        final ByteBuffer byteBuffers[] = array.getArray();
        final int size = array.size();
       
        final int read = (int) socketChannel.read(byteBuffers, 0, size);

        array.restore();
        array.recycle();
       
        if (read > 0) {
            buffer.position(oldPos + read);
        }
View Full Code Here

Examples of org.jboss.arquillian.drone.selenium.server.impl.SystemEnvHolder.restore()

        Assert.assertEquals("http.proxyHost was set", System.getProperty("http.proxyHost"), "localhost");
        Assert.assertEquals("http.proxyPort was set", System.getProperty("http.proxyPort"), "8888");
        Assert.assertEquals("http.nonProxyHosts was set", System.getProperty("http.nonProxyHosts"), "localhost,mymachine");

        env.restore();

        Assert.assertEquals("http.proxyHost was restored", System.getProperty("http.proxyHost"), proxyHost);
        Assert.assertEquals("http.proxyPort was restored", System.getProperty("http.proxyPort"), proxyPort);
        Assert.assertEquals("http.nonProxyHosts was restored", System.getProperty("http.nonProxyHosts"), nonProxyHosts);
    }
View Full Code Here

Examples of org.jboss.jms.util.ThreadContextClassLoaderChanger.restore()

         delegate.setMessageListener(listener);
      }
      finally
      {
         tccc.restore();
      }
   }

   public void run()
   {
View Full Code Here

Examples of org.jfree.layouting.LayoutProcessState.restore()

      // Stage Three: Content generation ..
    for (int i = 0; i < layoutProcessStates.length; i++)
    {
      final LayoutProcessState state = layoutProcessStates[i];
      executeThird(state.restore(gop), i);
    }
  }

  private void executeThird (LayoutProcess lp, int idx)
      throws StateException, InputFeedException
View Full Code Here

Examples of org.jfree.layouting.State.restore()

      textBox.clear();
      final State textFactory = textBox.getTextFactory();
      try
      {
        final RenderableTextFactory rtf =
            (RenderableTextFactory) textFactory.restore(layoutProcess);
        final RenderNode[] text =
            createText(resolvedText, textBox.getLayoutContext(), rtf);

        for (int i = 0; i < text.length; i++)
        {
View Full Code Here

Examples of org.jfree.report.flow.ReportTargetState.restore()

          // This is an assertation that we do not run into invalid states
          // later.
          if (PaginatingReportProcessor.ASSERTATION)
          {
            final ReportTarget reportTarget =
              targetState.restore(outputProcessor);
          }

          target.resetPagebreakFlag();
        }
      }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.ldap.tree.AttributeSelectionModel.restore()

    private void updateTreeModel(SelectedObjectStructures structures) {
        AttributeSelectionModel oldModel = treeModel.get();
        Object memento = oldModel.getMemento();
        AttributeSelectionModel newModel = new AttributeSelectionModel(
                        classes.get().getLdapLocation(), type, structures, ldapStructure, ldapCache);
        newModel.restore(memento);
        treeModel.set(newModel);
    }

    public AttributeSelectionModel getTreeModel() {
        return treeModel.get();
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.