Adobe Flex 3 Help

About markers

Markers are shortcuts to lines of code in a document, to a document itself, or to a folder. Markers represent tasks, bookmarks, and problems and they are displayed and managed. Selecting markers opens the associated document in the editor and, optionally, highlights the specific line of code.

With Flex Builder, you must save a file to update problem markers. Only files that are referenced by your application are checked. The syntax in an isolated class that is not used anywhere in your code is not checked.

The workbench generates the following task and problem markers automatically. You can manually add tasks and bookmarks.

Tasks Task markers represent a work item. Work items are generated automatically by the workbench. You can add a task manually to a specific line of code in a document or to the document itself. For example, to remind yourself to define a Flex component property, you might create a task called "Define skinning properties." You can also add general tasks that do not apply directly to resources (for example, "Create a custom component for the employee log-in prompt"). You use the Task view to manage all the task markers. For more information, see Adding tasks.

Problems Problem markers are generated by the compiler and indicate invalid states of various sorts. For example, syntax errors and warnings generated by the compiler are displayed as problem markers in the Problem view. For more information, see Using the Problems view.

Bookmarks You can manually add bookmarks to a line of code or a resource (folder or document). You use bookmarks as a convenience, to keep track of and easily navigate to items in your projects. You use the Bookmarks view to manage all bookmarks. For more information, see Adding and deleting bookmarks.

Note: The Tasks and Bookmarks views are not displayed by default in the Flex Development perspective. For more information about adding these views, see Opening views.

Navigating markers

Markers are descriptions of and links to items in project resources. Whether generated automatically by the compiler to indicate problems in your code, or added manually to help you keep track of tasks or snippets of code, markers are displayed and managed in their associated views. You can easily locate markers in your project from the Bookmarks, Problems, and Tasks views, and navigate to the location where the marker was set.

Go to a marker location

 Select a marker in the Bookmarks, Problems, or Tasks views.

The file that contains the marker is located and opened in the editor. If a marker is set on a line of code, that line is highlighted.

Adding tasks

Tasks represent automatically or manually generated workspace items. All tasks are displayed and managed in the Tasks view (Window > Other Views > General > Tasks), as the following example shows:

Tasks tab

Add a task to a line of code or a resource

  1. Open a file in the editor, and then locate and select the line of code where you want to add a task; or in the Flex Navigator view, select a resource.
  2. In the Tasks view, click the Add Task button in the toolbar.
  3. Enter the task name, and select a priority (High, Normal, Low), and click OK.

Note: The resource, as shown in the Flex Navigator view, does not indicate that it was marked. You can view and manage all task markers in the Task view.

Completing and deleting tasks

When a task is complete, you can mark it and then optionally delete it from the Tasks view.

Mark a task as complete

 In the Tasks view, select the task in the selection column, as the following example shows:

Tasks view

Delete a task

 In the Tasks view, right-click (Windows) or Control-click (Mac OS) the task, and select Delete.

Delete all completed tasks

 In the Tasks view, right-click (Windows) or Control-click (Mac OS) anywhere in the view to display the context menu, and select Delete Completed Tasks.

Adding and deleting bookmarks

You can use bookmarks to keep track of and easily navigate to items in your projects. All bookmarks are displayed and managed in the Bookmarks view (Window > Other Views > General > Bookmarks), as the following example shows:

Bookmarks tab

Add a bookmark to a line of code or a resource

  1. Open a file in the editor, and then locate and select the line of code to add a bookmark to.
  2. From the main menu, select Edit > Add Bookmark.
  3. Enter the bookmark name, and click OK.

    A bookmark icon ( ) is added next to the line of code.

Note: The resource, as shown in the Flex Navigator view, does not indicate that it was marked. You can view and manage all bookmarks in the Bookmarks view.

Delete a bookmark

  1. In the Bookmarks view, select the bookmark to delete.
  2. Right-click (Windows) or Control-click (Mac OS) the bookmark and select Delete.