Hi Erel,
I had cause to move an application folder into a sub-folder to keep things tidy.
Project folder
... moved to ...
New Folder
|
+--------- Project Folder
|
+--------- Other resources for the project
After moving, the application could not locate the layout file (only one layout file in this instance).
In the Designer, I opened the file navigator and used "Open File" to locate the missing layout file (which was located as expected in the project's Files sub-folder).
I selected the layout and was prompted that the layout file would be copied to the project Files sub-folder - even though that is where it already was.
Once the file was copied (to itself one assumes) I continued the project and made changes to the layout, but they did not have any effect. It appeared that I was working on a phantom copy of the layout - the WYSIWYG Designer showed the changes that I'd made (and saved), but when the app was run the layout was still the original.
Workaround:
I saved the app and restarted B4J. On restart, B4J now picked up the location of the layout file correctly, and, all of the changes that I'd made appeared both in the WYSIWYG Designer and in the running app. Everything was in sync again.
Ideas about possible causes (?):
The path between the project root folder and the Files folder appears as if it might have been absolute rather than relative, which would explain why the layout wasn't found after I'd moved the whole project to a new folder, i.e. the path was originally E:\B4J\Project and became E:\B4J\New folder\Project.
The Visual Designer path to the layout file wasn't updated to the new location until a restart of B4J.
(I'd hate for paths to be absolute as this used to cause problems with Visual Studio whenever projects were moved).
Hope that makes sense Erel, and is enough detail to easily find the cause.
All the best,
Dave
I had cause to move an application folder into a sub-folder to keep things tidy.
Project folder
... moved to ...
New Folder
|
+--------- Project Folder
|
+--------- Other resources for the project
After moving, the application could not locate the layout file (only one layout file in this instance).
In the Designer, I opened the file navigator and used "Open File" to locate the missing layout file (which was located as expected in the project's Files sub-folder).
I selected the layout and was prompted that the layout file would be copied to the project Files sub-folder - even though that is where it already was.
Once the file was copied (to itself one assumes) I continued the project and made changes to the layout, but they did not have any effect. It appeared that I was working on a phantom copy of the layout - the WYSIWYG Designer showed the changes that I'd made (and saved), but when the app was run the layout was still the original.
Workaround:
I saved the app and restarted B4J. On restart, B4J now picked up the location of the layout file correctly, and, all of the changes that I'd made appeared both in the WYSIWYG Designer and in the running app. Everything was in sync again.
Ideas about possible causes (?):
The path between the project root folder and the Files folder appears as if it might have been absolute rather than relative, which would explain why the layout wasn't found after I'd moved the whole project to a new folder, i.e. the path was originally E:\B4J\Project and became E:\B4J\New folder\Project.
The Visual Designer path to the layout file wasn't updated to the new location until a restart of B4J.
(I'd hate for paths to be absolute as this used to cause problems with Visual Studio whenever projects were moved).
Hope that makes sense Erel, and is enough detail to easily find the cause.
All the best,
Dave