Examples of saveState()


Examples of org.eclipse.ui.IViewPart.saveState()

                    (String) entry.getKey());
                p.putTextData((String) entry.getValue());
              }
            }
          }
                    view.saveState(viewMemento
                            .createChild(IWorkbenchConstants.TAG_VIEW_STATE));
                }

                public void handleException(Throwable e) {
                    result
View Full Code Here

Examples of org.eclipse.ui.internal.provisional.cheatsheets.TaskEditor.saveState()

    // If this is an editable task that has been started, completed or skipped save the editor state
    if (task instanceof IEditableTask && task.getState() != ICompositeCheatSheetTask.NOT_STARTED) {
      TaskEditor editor = getEditor(task);
      if (editor != null) {
        IMemento taskDataMemento = childMemento.createChild(ICompositeCheatsheetTags.TASK_DATA);
        editor.saveState(taskDataMemento);
      } else {
        // The editor has not been started so save its previously loaded state
        IMemento taskData = getTaskMemento(task.getId());
        if (taskData != null) {
          IMemento previousDataMemento = childMemento.createChild(ICompositeCheatsheetTags.TASK_DATA);
View Full Code Here

Examples of org.eclipse.ui.intro.config.IStandbyContentPart.saveState()

                .createChild(MEMENTO_STANDBY_CONTENT_PART_TAG);
            // pass new memento to correct standby part.
            IStandbyContentPart standbyContentpart = cachedControlKey
                .getContentPart();
            if (standbyContentpart != null)
                standbyContentpart.saveState(standbyContentPartMemento);
        }
    }


    /*
 
View Full Code Here

Examples of org.gudy.azureus2.core3.disk.DiskManager.saveState()

    {
      DiskManager disk_manager = controller.getDiskManager();
   
      if ( disk_manager != null ){
     
        disk_manager.saveState();
      }
   
      download_manager_state.save();
    }
 
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1.saveState()

        
         byte[] raw = new byte[ buffer.limit() ];
         System.arraycopy( buffer.array(), 0, raw, 0, raw.length );

         sha1Gudy.update( buffer );
         sha1Gudy.saveState();
         ByteBuffer bb = ByteBuffer.wrap( new byte[56081] );
         sha1Gudy.digest( bb );
         sha1Gudy.restoreState();
        
         sha1Sun.update( raw );
View Full Code Here

Examples of org.jfree.layouting.renderer.text.RenderableTextFactory.saveState()

      {
        getInsertationPoint().addChilds(textFactory.finishText());
        try
        {
          final RenderableTextBox token = new RenderableTextBox
              (textFactory.saveState(), resolvedToken, context);
          token.appyStyle(context, getLayoutProcess().getOutputMetaData());
          getInsertationPoint().addChild(token);
          token.close();
          tryValidateOutput(null);
          return;
View Full Code Here

Examples of org.jfree.report.flow.LibLayoutReportTarget.saveState()

      if (target.isPagebreakEncountered())
      {
        // So we hit a pagebreak. Store the state for later reuse.
        // A single state can refer to more than one physical page.
        final PageState state = new PageState
            (target.saveState(), position, outputProcessor.getPageCursor());
        target.resetPagebreakFlag();
        return state;
      }

    }
View Full Code Here

Examples of org.richfaces.component.state.TreeState.saveState()

    ListRowKey key = new ListRowKey(list);
    TreeState ts = (TreeState) tree.getComponentState();

    ts.setSelected(key);
    ts.setSelected(null);
    ts.saveState(FacesContext.getCurrentInstance());
  }

  public UIComponent getTree() {
    return tree;
  }
View Full Code Here

Examples of org.rssowl.ui.internal.views.explorer.BookMarkExplorer.saveState()

      /* Enforce that Explorer Settings are up to date if necessary */
      if (fExportOptionsPage.getExportOptions() != null && fExportOptionsPage.getExportOptions().contains(Options.EXPORT_PREFERENCES)) {
        BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
        if (explorer != null)
          explorer.saveState();
      }

      /* Export */
      File file = new File(string);
      try {
View Full Code Here

Examples of org.springframework.richclient.settings.support.Memento.saveState()

        Memento memento = new JFileChooserMemento(jfc);
        memento.restoreState(settings);

        int result = jfc.showOpenDialog(getParentWindowControl());
        if (JFileChooser.APPROVE_OPTION == result) {
            memento.saveState(settings);
            XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
            appmodel.setSchemaFile(jfc.getSelectedFile());
            appmodel.setSchemaModel(XsModelFactory.createXsModel(appmodel.getSchemaFile()));
            Application.instance().getApplicationContext().publishEvent(new XsAnalyzerApplicationEvent(EventType.OPEN, this));
        }
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.