Window Framework for UI Toolkit v2.0.x
GWG.WindowFramework.Editor.ThemeRepositoryAssetService Class Reference

Complete production repository copy and setup wiring, shared by the eventual UI and regression tests. More...

Data Structures

class  Operation
class  ScheduledCreation

Static Public Member Functions

static ThemeRepositoryCreateResult Create (ThemeRepositoryCreateRequest request)
 Copies the repository and supplied setup prefab while preserving outside references.
static IDisposable Start (ThemeRepositoryCreateRequest request, Action< ThemeRepositoryCreateResult > completed, Action< Exception > failed)
 Runs the same production stages over Editor updates, with an initial paint opportunity.
static bool TryVerifyIndependence (WindowFrameThemeData data, string packageRoot, out string error)
 Re-verifies project setup and asset references without requiring a self-contained repository.

Static Private Member Functions

static Operation PrepareOperation (ThemeRepositoryCreateRequest request)
static void VerifyOwnedAsset (string path, string folder, HashSet< string > allowedExternal)
 Checks imported assets and explicit reference resolution without requiring folder ownership.

Detailed Description

Complete production repository copy and setup wiring, shared by the eventual UI and regression tests.

Never modifies borrowed sources, user persistence or scenes. The operation returns only a validated, fully wired repository. Failure removes only newly created output/empty parents. Unity asset operations are not crash-atomic: a Library operation record retains an interrupted destination for explicit review. The service does not select the Manager's open repository, enable its Create button or place a prefab instance. Those UI handoff tasks remain separate. Existing panels are explicit external dependencies.

Member Function Documentation

◆ Create()

ThemeRepositoryCreateResult GWG.WindowFramework.Editor.ThemeRepositoryAssetService.Create ( ThemeRepositoryCreateRequest request)
inlinestatic

Copies the repository and supplied setup prefab while preserving outside references.

Parameters
requestComplete source/destination/controller/panel choices; borrowed objects remain untouched.
Returns
Final mapped assets, or throws after safe cleanup. No partial success result is returned.

The canonical private defaults publish only supplied 2.0 themes into our public Themes/Runtime/setup layout with three README files. Developer repositories retain their complete existing layout, serialized settings, entries and READMEs, regardless of version. Both flows relink copied references and retain external references. No portable preparation, conversion or invented Shared folder is part of either operation.

Exceptions
ArgumentExceptionSource identity, destination or an explicit setup choice is invalid.
IOExceptionCopy/import/reference remapping or setup verification fails.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrepareOperation()

Operation GWG.WindowFramework.Editor.ThemeRepositoryAssetService.PrepareOperation ( ThemeRepositoryCreateRequest request)
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Start()

IDisposable GWG.WindowFramework.Editor.ThemeRepositoryAssetService.Start ( ThemeRepositoryCreateRequest request,
Action< ThemeRepositoryCreateResult > completed,
Action< Exception > failed )
inlinestatic

Runs the same production stages over Editor updates, with an initial paint opportunity.

Unity asset APIs stay on the Editor thread. One yielded stage/asset advances per update; a single Unity import may still block internally. Disposing cancels/cleans operation-owned output.

Here is the caller graph for this function:

◆ TryVerifyIndependence()

bool GWG.WindowFramework.Editor.ThemeRepositoryAssetService.TryVerifyIndependence ( WindowFrameThemeData data,
string packageRoot,
out string error )
inlinestatic

Re-verifies project setup and asset references without requiring a self-contained repository.

No persisted 'verified' flag is trusted. Essential-role references, explicit imports, resource URLs and actual prefab/root/panel wiring are inspected each time. External artwork and stylesheet references are permitted. This does not certify visual appearance.

Here is the call graph for this function:

◆ VerifyOwnedAsset()

void GWG.WindowFramework.Editor.ThemeRepositoryAssetService.VerifyOwnedAsset ( string path,
string folder,
HashSet< string > allowedExternal )
inlinestaticprivate

Checks imported assets and explicit reference resolution without requiring folder ownership.

Here is the caller graph for this function: