Edit DataGrid columns and dock layout declarations in the designer

This commit is contained in:
2026-11-24 15:59:08 +01:00
parent 43267824d7
commit b04bd9d7ef
14 changed files with 1148 additions and 17 deletions
+10
View File
@@ -20,7 +20,10 @@ p.add_argument("--check", action="store_true", help="Install the disposable IDE
p.add_argument("--mode", choices=["classpath","modulepath"], default="classpath")
p.add_argument("--archiver", type=Path, help="Use a disposable copy of the Archiver project")
p.add_argument("--connection-form", action="store_true", help="Open and qualify the Archiver connection form")
p.add_argument("--grid-docking", type=Path, metavar="REFERENCE_FXML", help="Qualify the Archiver grid, dock layout and the supplied reference workspace")
args = p.parse_args()
if args.grid_docking and (not args.archiver or args.connection_form):
p.error("--grid-docking requires --archiver and a separate run from --connection-form")
if args.connection_form and not args.archiver:
p.error("--connection-form requires --archiver")
base = Path(tempfile.mkdtemp(prefix="neitzel-designer-host-")).resolve()
@@ -32,6 +35,9 @@ if args.archiver:
subprocess.run([sys.executable, ROOT / "scripts/configure-library-example.py", "--project", project,
"--target-java-home", args.target_java_home], check=True)
view = "ConnectionForm" if args.connection_form else "ArchiveWindow"
if args.grid_docking:
view = "FolderTab"
shutil.copyfile(args.grid_docking, project / "src/main/resources/ReferenceWorkspace.fxml")
file = project / f"src/main/resources/de/neitzel/archiver/ui/{view}.fxml"
else:
subprocess.run([sys.executable, ROOT / "scripts/prepare-fixture-host.py", "--destination", project,
@@ -61,10 +67,14 @@ else:
probe = "ArchiveWorkflowProbe" if args.archiver else "WorkflowProbe"
if args.connection_form:
probe = "ConnectionWorkflowProbe"
if args.grid_docking:
probe = "GridDockWorkflowProbe"
files = [sources / "WorkflowProbe.java"]
if args.archiver:
files.append(sources / f"{probe}.java")
target_probe = "ConnectionTargetProbe" if args.connection_form else "ArchiveTargetProbe"
if args.grid_docking:
target_probe = "GridDockTargetProbe"
agent_classes = base / "agent-classes"
agent_classes.mkdir()
subprocess.run([args.java_home / "bin/javac", "-cp", os.pathsep.join(map(str,jars)), "-d", agent_classes,