Examples of loadState()


Examples of com.intellij.coldFusion.UI.config.CfmlProjectConfiguration.loadState()

                    "  </mapps>\n" +
                    "</State>";
    CfmlProjectConfiguration.State configState =
      XmlSerializer.deserialize(JDOMUtil.loadDocument(xml).getRootElement().getChild("component"), CfmlProjectConfiguration.State.class);
    try {
      def.loadState(configState);
      Element resSer = XmlSerializer.serialize(def.getState());
      String resxml = JDOMUtil.writeElement(resSer, "\n");
      assertEquals(result, resxml);
    }
    finally {
View Full Code Here

Examples of com.intellij.usages.UsageViewSettings.loadState()

      @NotNull final FindUsagesOptions options) {
    ApplicationManager.getApplication().assertIsDispatchThread();
    final UsageViewSettings usageViewSettings = UsageViewSettings.getInstance();
    final UsageViewSettings savedGlobalSettings = new UsageViewSettings();

    savedGlobalSettings.loadState(usageViewSettings);
    usageViewSettings.loadState(myUsageViewSettings);

    final Project project = handler.getProject();
    UsageViewManager manager = UsageViewManager.getInstance(project);
    FindUsagesManager findUsagesManager =
View Full Code Here

Examples of com.intellij.usages.UsageViewSettings.loadState()

      @NotNull final FindUsagesOptions options) {
    ApplicationManager.getApplication().assertIsDispatchThread();
    final UsageViewSettings usageViewSettings = UsageViewSettings.getInstance();
    final UsageViewSettings savedGlobalSettings = new UsageViewSettings();

    savedGlobalSettings.loadState(usageViewSettings);
    usageViewSettings.loadState(myUsageViewSettings);

    final Project project = handler.getProject();
    UsageViewManager manager = UsageViewManager.getInstance(project);
    FindUsagesManager findUsagesManager = ((FindManagerImpl)FindManager.getInstance(project)).getFindUsagesManager();
View Full Code Here

Examples of edu.mit.blocks.codeblocks.Block.loadState()

        if (memento instanceof WorkspaceState) {
            WorkspaceState state = (WorkspaceState) memento;
            //Load the blocks state
            for (Long blockID : state.blockStates.keySet()) {
                Block toBeUpdated = getEnv().getBlock(blockID);
                toBeUpdated.loadState(state.blockStates.get(blockID));
            }
            //Load the canvas state
            blockCanvas.loadState(state.blockCanvasState);
        }
    }
View Full Code Here

Examples of edu.mit.blocks.renderable.RenderableBlock.loadState()

            }
            //Finally, add all the remaining blocks that weren't there before
            ArrayList<RenderableBlock> blocksToAdd = new ArrayList<RenderableBlock>();
            for (Long newBlockID : unloadedRenderableBlockStates) {
                RenderableBlock newBlock = new RenderableBlock(workspace, this, newBlockID);
                newBlock.loadState(renderableBlockStates.get(newBlockID));
                blocksToAdd.add(newBlock);
            }
            this.addBlocks(blocksToAdd);
            this.pageJComponent.repaint();
        }
View Full Code Here

Examples of krasa.formatter.plugin.ProjectSettingsComponent.loadState()

    private void changeFormatter(Project project, Settings.Formatter lf) {
        ProjectSettingsComponent instance = ProjectSettingsComponent.getInstance(project);
        final Settings state = instance.getState();
        state.setFormatter(lf);
        instance.loadState(state);
    }

    protected boolean isEnabled() {
        return true;
    }
View Full Code Here

Examples of krasa.formatter.plugin.ProjectSettingsComponent.loadState()

  private void changeFormatter( Project project, Settings.Formatter lf )
  {
    ProjectSettingsComponent instance = ProjectSettingsComponent.getInstance( project );
    final Settings state = instance.getState();
    state.setFormatter(lf);
    instance.loadState(state);
  }

  protected boolean isEnabled() {
        return true;
    }
View Full Code Here

Examples of krasa.formatter.settings.ProjectSettingsComponent.loadState()

        for (Project openProject : openProjects) {
            ProjectSettingsComponent component = openProject.getComponent(ProjectSettingsComponent.class);
            if (component != null) {
                Settings state = component.getSettings();
                if (deletedSettings.getId().equals(state.getId())) {
                    component.loadState(defaultSettings);
                    if (project != openProject) {
                        Notifier.notifyDeletedSettings(component.getProject());
                    }
                }
            }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.loadState()

    // need events to move to further states.
    rmStore.start();

    if(recoveryEnabled) {
      try {
        RMState state = rmStore.loadState();
        recover(state);
      } catch (Exception e) {
        // the Exception from loadState() needs to be handled for
        // HA and we need to give up master status if we got fenced
        LOG.error("Failed to load/recover state", e);
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore.loadState()

        try {
          rmStore.checkVersion();
          if (rmContext.isWorkPreservingRecoveryEnabled()) {
            rmContext.setEpoch(rmStore.getAndIncrementEpoch());
          }
          RMState state = rmStore.loadState();
          recover(state);
        } catch (Exception e) {
          // the Exception from loadState() needs to be handled for
          // HA and we need to give up master status if we got fenced
          LOG.error("Failed to load/recover state", e);
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.