"Force open" a project -- how to?

"Force open" a project -- how to?

6
NewbieNewbie
6

    Jul 07, 2011#1

    I have a project with 12 files as stored in data.prj. I go to Project -> Open project/workspace -> [select] data.prj.

    The project files do not open. Could someone point me in the right direction? (I am using version 17.10.0.1010.)

    Here is my data.prj file:

    Code: Select all

    [Project ID]
    Signature=UE Proj: v.1
    [Project Information]
    Use Relative Directory=1
    Relative to Project File=1
    Include Sub Directories=1
    Project Tagfile=
    Project Wordfile=
    Filter=
    Create Tagfile=0
    [Files]
    0=index.php
    1=login_form.php
    2=login.php
    3=select_task.php
    4=process_task.php
    5=browse.php
    6=db_login.php
    7=tpl_footer.php
    8=tpl_header.php
    9=tpl_left_sidebar.php
    10=tpl_right_sidebar.php
    11=notes.php
    12=user_defined.php

    6,688587
    Grand MasterGrand Master
    6,688587

      Jul 08, 2011#2

      There are two files for a project. The *.prj file stores the general project settings and which files belong to a project. The *.pui (Project User Interface) stores the workspace. This file contains the information which files were open on last close of the project, where the caret was positioned in every opened file, which lines are bookmarked, which lines are folded, etc. So this file contains the workspace for every user.

      Opening a *.prj file results also opening *.pui file of the project and restoring last used workspace of the user. So if you want all 12 files of your project also opened when opening a project, just open the 12 files, for example via the Project Settings dialog or via the tab Project of the File Tree View and keep them open. On closing the project, the list of opened files is saved into the *.pui file and restored on next opening of the file respectively the project/workspace.

      There is no setting to force an automatic opening of all project files on project open. For projects with several hundred or thousand files and especially for projects where several persons work on, this would be now good idea and most users want the last workspace restored.

      There are two possible names for the *.pui file. The default is that the *.pui file is named Project.%COMPUTERNAME%.%USERNAME%.pui stored in same directory as the file Project.prj. This naming scheme is best for projects where several persons work on a project stored in a shared folder because every user has its own workspace file stored in the project directory. The other name used when enabling Save project information for use on multiple systems at Advanced - Configuration - File Handling - Advanced is just Project.pui stored also in the directory with the file Project.prj. This option is best for single user projects, especially when the *.prj file is stored in a directory of the project or a subdirectory of the project directory and the project is copied often two another computer, or when the same user often uses different user accounts on same computer.

      6
      NewbieNewbie
      6

        Jul 08, 2011#3

        Thank you, Mofi. You confirmed what I learned from a lot of time spent experimenting. I appreciate it.

        Having the option to "force" open all files in a project would be helpful to me, and seems to be an intuitive option, as well.

        I would like to request this feature/option. How can I make this request? I cannot find a specific location on https://www.ultraedit.com for making feature suggestions/requests.

        Mofi, thank you again for your patient help!

        6,688587
        Grand MasterGrand Master
        6,688587

          Jul 08, 2011#4

          forsooth wrote:How can I make this request?
          There is the Technical Support page with a form at end. But as you can read at top of this forum page on second paragraph, feature requests should be sent to IDM support by email. Click on email us directly mailto link at top of this page.

          6
          NewbieNewbie
          6

            Jul 10, 2011#5

            Mofi -- Thank you and I did make the request. Until some time in the future, I'm using Notepad++ as my editor, since it does give the user the ability to open any project (all files) immediately, regardless of which files were last opened.

            Again, if I've overlooked something in UE, please let me know.

            6,688587
            Grand MasterGrand Master
            6,688587

              Jul 11, 2011#6

              I have not tested it, but perhaps you could open the project, open all project files, close the project, set read-only attribute on file project.pui and re-open the project. Now UE can't update the workspace file anymore and therefore on opening the project, all files of the project are always opened. Of course with read-only attribute set, UltraEdit can't remember anymore the caret positions, bookmarks and code foldings active on closing a project.

              6
              NewbieNewbie
              6

                Jul 11, 2011#7

                Thanks, Mofi -- Yes, this seems to work!! Good thinking! I will use this method and continue working with UE as an IDE. I hope that the UE team will provide an "open all files in project" option in the near future so that the user doesn't have to sacrifice good features in order to quickly open project files.

                Thanks again for your help on this. If you get any other ideas, please send them along!

                [UPDATE]...Of course, this prevents the user from adding or removing files from the project, unless the project.pui file's "read only" is unchecked... :cry: