jaxb-workshop
  1. jaxb-workshop
  2. JAXB_WORKSHOP-9

Automatically open schema after completing xjc run

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: Release 1.0
    • Component/s: xjc explorer
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      9

      Description

      After completing an xjc run, you should automatically open or focus
      on the main schema that was just processed.

        Activity

        Hide
        kirillcool added a comment -

        The following code has been added to ExplorerPanel.updateHistory (called after
        XJC is done and all the files have been compiled and processed):

        HistorySchemaNode newNode = historyTreeModel.addRun(schemaFileName,
        generationMillis, errors);
        this.historyTree.getSelectionModel().addSelectionPath(
        new TreePath(newNode.getPath()));

        The HistoryTreeModel.addRun function was changed to return the newly added node.
        This node is then marked as selected. This causes the
        HistoryTreeSelectionListener.valueChanged() to be called. Thus, the main schema
        is automatically opened and focused on in the tabbed pane.

        Show
        kirillcool added a comment - The following code has been added to ExplorerPanel.updateHistory (called after XJC is done and all the files have been compiled and processed): HistorySchemaNode newNode = historyTreeModel.addRun(schemaFileName, generationMillis, errors); this.historyTree.getSelectionModel().addSelectionPath( new TreePath(newNode.getPath())); The HistoryTreeModel.addRun function was changed to return the newly added node. This node is then marked as selected. This causes the HistoryTreeSelectionListener.valueChanged() to be called. Thus, the main schema is automatically opened and focused on in the tabbed pane.

          People

          • Assignee:
            kirillcool
            Reporter:
            ryan_shoemaker
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: