Hi,
we are currently implementing a custom check-in dialog using Adobe Drive 4.2.
The dialog looks like the example given in discussion "Custom check in dialog".
To build the SWF, I use Flash Builder 4.5 with Adobe Flex SDK 4.0.0 (flex_sdk_4.0.0.14159A).
I have created a new Flex Project with Application type "Web" and added a MXML Modul with name "CustomUI" and option "Do not optimize (module can be loaded by multiple applications)".
After compiling the project I extract the "CustomUI.swf" and copy the file in the "resources" folder of my Custom Adobe Drive adapter.
I implement the "IGetCustomCheckInUIHandler", "ICanEnableCustomCheckInUIHandler" and "IGetCustomCheckInUIContextInfoHandler":
"IGetCustomCheckInUIHandler" sets the module url like
response.setModuleURL(Thread.currentThread().getContextClassLoader().getResource("resource s/CustomUI.swf"));
"ICanEnableCustomCheckInUIHandler" enables the custom ui dialog with
response.setCanEnable(true);
"IGetCustomCheckInUIContextInfoHandler" adds some context data like
Map<String, Object> contextInfo = new HashMap<String, Object>();
contextInfo.put("key1", "test1");
response.setContextInfo(contextInfo);
(Also hidding the "IGetCustomCheckInUIContextInfoHandler" in "IRemoteHandlerFactory" doesn't work.)
Right click on an checked out asset in Windows Explorer and click on "Adobe Drive 4/Check in..." does following:
1. "IGetCustomCheckInUIHandler" called
2. "ICanEnableCustomCheckInUIHandler" called
3. "IGetCustomCheckInUIHandler" once more called
4. "IGetCustomCheckInUIContextInfoHandler" called
5. The default check in dialog is shown (with no custom ui extension), the default dialog hangs (OK/Cancel doesn't react on click, the dialog is freezed). Only the close button (X in the right upper corner) works.
How is it possible to provide a custom ui check in dialog?
Thanks