Class StandalonePageRoot

All Implemented Interfaces:
IPropDesigner, IPropUndoContext, EventListener, IGProp<GProp<?>[]>, IPropCnr, IPropRoot, Cloneable, IAdaptable

public class StandalonePageRoot extends EditorServerProps
The root of a stand-alone property page that edits a file of a Module project outside the project's own tree (the PWA page: its .iiziPWA container is loaded into a dummy root for verification and undo/redo). A reference to another property, <Project>:/assets/... among them, is resolved by asking the root of the tree for the project named before the colon (GProp.getPropFromReference); the dummy root of CC-PUSH-PWA-PAGES was an EditorServerProps, whose getRootFromName answers null for every project name, so every asset reference on the PWA page was "not found" although the file was in the module's assets (CC-FIX-PWA-PAGE-PORTS, ruling PW-6). This root resolves a project name the way the Module project root does (ProjectRootPropCnr.getRootFromName): the loaded Module project of that name, else a registered root.
Author:
Christopher Mindus
  • Constructor Details

    • StandalonePageRoot

      public StandalonePageRoot()
      Creates the root.
  • Method Details

    • getRootFromName

      public PropCnr getRootFromName(GProp<?> requestor, String module)
      Gets the root property container of a module, as the Module project root does: the loaded Module project of that name, else a registered root (e.g. Terminal Sessions).
      Overrides:
      getRootFromName in class ServerProps
      Parameters:
      requestor - The requestor property.
      module - The module name (without colon), i.e. the project name in the Designer.
      Returns:
      The root property container, or null if the module name is not found.