Using ProjectsThe Basics of Tango ProjectsA project is a logical grouping of folders and files. Projects allow you to organize your work in terms of like-sets of files, including application, HTML, and text files--in fact, for any type of file. Projects exist in Tango Editor only and do not interact with Tango Server. This chapter covers the following topics:
Working With Tango ProjectsWhen you create a new project or open an existing project, the Project Workspace (Project section of the Workspace) displays the project name and the folders included in the project. The project name is the file name you assigned to the project. The Project Workspace allows you to work with all files, data sources, objects, and resources associated with your Tango project without having to switch tabs in the Workspace. The following five folders are always displayed at the root level in the Project Workspace and cannot be deleted: |
|
For more information, see "Working With Presentation Pages". |
|
For more information, see "Working With Project Data Sources". |
|
Project Root PropertiesThe Project Root Properties dialog box allows you to view information about your project. To display the Project Root Properties dialog box
|
|
For more information, see "Modifying a Project's AST Signature". |
Performing Project OperationsThe project file contains information on the project, including a listing of the project's folders and files (in the Files folder).
You perform operations on the project file separately from the folders and files it contains; that is, deleting a file from the project removes it from the project file, but does not actually delete the file.
Project Workspace |
For more information on setting Tango Editor preferences, see "Setting Preferences". |
You can open any file appearing in the Project Workspace simply by double-clicking the file name. Tango application files and class files automatically open in Tango Editor. HTML and text files open in either Tango Editor, an application you select, or the application they were created with, depending on your preferences. Other types of files, such as graphic files, open automatically in the application they were created with. You can also conveniently execute certain project commands directly in the Workspace. Control+clicking a project, folder, or file displays a menu of project, folder, and file commands and Workspace window commands. Finding and Replacing in Projects |
For more information, see "Finding and Replacing Text". |
One of the powerful editing features of Tango is its ability to find and replace character strings in all files--Tango application files, Tango class files, HTML, and text--of a project. The project must be open for the find-and-replace operation to take place in the applicable files of the project; all non-text files are ignored. If Tango finds the specified text string, it automatically opens an editing window showing the corresponding file or HTML attribute for an application file. Moving Files and Folders in the Project WorkspaceYou can move folders and files within the Project Workspace by dragging them to a new location within the Files folder. Dragging a file to a folder adds that file to the target folder. Dragging a folder to another folder makes it--and any files in it--a subfolder of the target folder. Creating a New ProjectTo create a new project
Adding a Folder to a ProjectYou can add a new folder to the Files folder or Presentation Pages folder of a project. You can also add an existing folder to the Files folder. You cannot add a folder to the other Project folders. To add a new folder to the Files folder or Presentation Pages folder
To add an existing folder to the Files folder
All the subfolders and files within this existing folder are added to the project at the specified location. A folder name must be unique at the level you are adding the folder; rename a folder if necessary. To rename a project folder
Adding Files to a ProjectYou can add files to the Files folder from the Macintosh Finder. |
For more information, see "Working With Presentation Pages". |
You cannot add files to the Presentation Pages folder from the Macintosh Finder; however, you can designate certain files in the Files folder as presentation pages. Filenames appear alphabetically in the Files folder. The order of application files in this folder has no bearing on the order that Tango Server executes them. To add files to the Files folder or its subfolder
Removing Files and Folders From a ProjectYou can remove files and folders from the Files folder. When you remove a folder, you remove it along with all its subfolders and files. Removing a file from a project does not delete the file. The file remains intact so you can use it again or add it to another project. To remove files and folders from a project
Opening and Closing a ProjectTo open an existing projectOnly one project can be open at a time. If another project is already open, Tango closes it and then opens the selected project. Any changes that you made to the project being closed are automatically saved. When you open a project, the last view state is restored; that is, folders appear expanded or collapsed as they did previously. To close an open projectAny changes you make to an open project are automatically saved as you make them. Editing HTML and Text FilesIn addition to Tango application files and Tango class files, a project file can include any other type of file. For HTML and text files, Tango has built-in editing capabilities. (See "HTML Editing Window".) |
For more information on setting Tango Editor preferences, see "Setting Preferences". |
You can choose to edit HTML and text files in Tango Editor, or in another application. Select the application you want to use to open HTML and text files in the Preferences dialog box. If a project is open when you save an HTML or text file in Tango, you are automatically asked if you want to add the file to the current project. Click Yes to add the file to the project root or No to cancel. Working With Project DependenciesDependencies are those data sources and objects that are used or referenced by Tango application files and Tango class files in the project. Tango Editor shows the data source and object dependencies of your project, warns you of unresolved dependencies (if enabled), and helps you resolve them. To enable unresolved dependency notification
To resolve a dependency
|
Working With Project Application FilesThe Files folder displays all the files used or referenced by your project. You can organize files by creating new folders and moving files to appropriate folders within the Files folder. Project Application File PropertiesThe project Application File Properties dialog box allows you to view information about a selected application file. The Application File Properties dialog box displays four tabs for a Tango application file in a project. |
|
For more information, see"Modifying a Project's AST Signature". |
Working With Presentation PagesThe Presentation Pages folder separates presentation pages from Tango application files, Tango class files and other HTML, graphic or text files in the project, allows page-based editing, and makes these files available to the interface of the Presentation action. When you assign files to this folder, they are designated as presentation pages, but also remain listed in the Files folder or its subfolders. |
For more information about the Presentation action, see "Presentation Action". |
To mark an HTML or text file as a presentation page
To remove a file from the Presentation Pages folder
Working With Project Data SourcesThe Data Sources folder contains an alphabetically-sorted list of data sources that are used in your project. Unresolved dependencies are identified by grayed-out icons. This folder cannot be modified directly. For more information about data sources, see"About Data Sources". Working With Project ObjectsThe Project Objects folder contains an alphabetically-sorted list of objects that are used in your project. Unresolved dependencies are identified by grayed-out icons. This folder cannot be modified directly. For more information about objects, see "Understanding Objects in Tango". Working With Project FTP SitesThe Sites folder lists the FTP (file transfer protocol) sites associated with the current project for the deployment of project files. You associate an FTP site with your project by defining a site in the Define Sites dialog box and adding it to your project. To view details about a particular site, control+click on a site icon in the Project Workspace, and choose Properties from the contextual menu that appears. For more information about FTP sites, see "Deploying and Downloading Tango Projects via FTP". Opening Tango 3.x Projects |
For more information, see"XML Format". |
Opening a Tango 3.x project file in Tango 2000 automatically converts the project file and all the application files that it references to Tango 2000 format. |
For more information, see "Converting to Tango 2000 Format". |
The project file format is different in Tango 2000. Tango 3.x will not be able to open your Tango 2000 project files. It is strongly recommended that you back up all your Tango 3.x project and application files before converting them to Tango 2000 (XML) format. If you attempt to open a Tango 3.x project file with the Tango 2000 Editor, a warning dialog box appears. Clicking Convert opens the project file in Tango 2000 Editor and converts all of the referenced Tango application files to Tango 2000 format. Clicking Cancel cancels the operation.
If Tango Editor cannot find or save one of the files referred to by the Tango project, an error message appears, informing you of the problem. Deploying and Downloading Tango Projects via FTPFTP (file transfer protocol) is a standard method for transferring files between machines on the Internet. FTP allows a client machine to log in to a server machine to send or retrieve files. Within a Tango project, you can define an FTP site and deploy (upload) files defined in your project to that site, preserving the hierarchical structure of your project files. You can also download files from a remote site to replicate a project or share projects with other developers. The Sites folder in the Project Workspace allows you to associate FTP sites with your project and deploy files to one or several FTP sites. The project file stores a project's site definitions and details about each site, so that a project can be shared among users or team members. Passive Mode FTPTango allows you to deploy and download files via passive mode FTP (PASV-FTP). PASV-FTP allows you to initiate a data connection to the FTP server; without passive mode, connection is initiated by the FTP server. To transfer files via PASV-FTP, check the Passive Mode checkbox on the Project Site Properties dialog box.
Deploying and Downloading ProjectsOnce you define an FTP site and add it to your project, you can deploy your project to a remote FTP site to share with other developers. When you deploy your project, its sub-directories are replicated as necessary on the FTP site. You can also download files from a remote FTP site and automatically add them to your Tango project. Deploying and downloading project files can be useful in a development environment. For example, remote developers could join a development team and automatically create a working version of the Tango Web site. The following diagram shows how projects can be shared among developers once an FTP site has been established.
Defining an FTP SiteYou define and update details about FTP sites from the Define Sites dialog box. To define or update an FTP site in the Define Sites list
|
For more information, see "Deploying and Downloading Projects". |
Adding an FTP Site to Your ProjectYou choose an FTP site from the Define Sites list and add it to the Sites folder in the Project Workspace to associate a site with your project for deployment and downloading.
To add an FTP site to your project
The Choose a Site dialog box appears, allowing you to choose a defined site. An FTP site must exist before you can assign it to a project. The first site added to a project becomes the default site for use with the Deploy and Download commands. You can change the default only when more than one site is assigned to your project. To change the default site for deployment or download
To view or edit properties of a project site
The Site Properties dialog box appears, displaying the definitions of this site. Deploying Files or FoldersYou can deploy (upload) any project to a remote site via FTP using the Deploy and Deploy to... commands. The file and folder hierarchy of a project is preserved during deployment. Tango replicates the folder structure onto the remote site and creates directories, if they do not already exist on the FTP server. To deploy to your project's default site
To deploy to another site associated with your project |
You can also click on the file or folder to be deployed in the Project Workspace and drag it over the name or icon of the FTP site. |
Downloading From Remote SitesProjects may also be created by downloading files and folders from a remote directory hierarchy via FTP, using the Download and Download from... commands. Downloading a remote site replicates the contents of an FTP directory and its sub-directories onto your local machine. To download from your project's default site
A warning dialog box appears if any file to be downloaded has the same name as a file that exists in your project's download folder.
The FTP File Transfer dialog box appears. You can stop the transfer and close this dialog by clicking Stop. The dialog box goes away when the transfer is complete. If the download of any file is unsuccessful, a dialog box informs you of an error. Clicking OK in the dialog box continues the download of files when more than one file is downloaded. To download from another site associated with your project
Browsing a Project's FTP Site with a Web BrowserYou can browse a project's FTP site and select files or folders to download through your Web browser. To browse the default FTP site associated with your project
To browse any FTP site associated with your project
Application-Specific Tango (AST) Signatures for ProjectsApplication-specific Tango Servers are available if you want to develop a Tango application and distribute it with a Tango Server as an all-in-one solution. This allows your end-user to execute your solution without having to purchase a Tango Server for your single application. The AST Server works only with the Tango application files in the licensed application with the assigned AST signature. You must add this signature to all Tango application files used in the application in order for them to be executed by the AST Server. Tango application files without an AST signature, or with a different AST signature, do not work with the AST Server. Contact Pervasive sales for information on purchasing an AST license for your application. Modifying a Project's AST SignatureAn application file may belong to more than one project, but it can have only one AST signature. An application file added to a project will lose any signature it previously had as a member of another project. When you modify the AST signature for a project, the project AST signature is assigned to all application files within that project. Application files added to a project are automatically assigned the AST signature of the project. If the project's AST signature has not been assigned, the application file's existing AST signature, if present, is cleared. To modify a project's AST signature
|
Copyright © 1999, Pervasive Software. All rights reserved.