| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> | |
| <HEAD> | |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > | |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> | |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> | |
| <title>Activities Editor Pages</title> | |
| </HEAD> | |
| <BODY BGCOLOR="#ffffff"> | |
| <h2>Activities Editor Pages</h2> | |
| <P CLASS="Para">The activities editor consists of three pages, the Viewers Page, | |
| the Descriptions Page and the "activities.xml" Page.</P> | |
| <P CLASS="Para"> <strong>Viewers Page</strong></P> | |
| <P CLASS="Para">The viewers page has two separate viewers, one viewer is for the | |
| plug-ins and fragments, and the other viewer is for the categories and activities, | |
| as well as plug-ins and fragments. </P> | |
| <P CLASS="Para">The first viewer displays all the plug-ins and fragments located | |
| in Eclipse's workspace directory. The second viewer displays the categories, | |
| the activities bound to categories and the plug-ins bound to activities. The | |
| latter items are also initially read from Eclipse's workspace directory. <br> | |
| </P> | |
| <p><img src="../images/viewer.png" alt="Image of Viewers page" border="0" ></p> | |
| <p><strong>Descriptions Page</strong></p> | |
| <p> Categories and activities are defined by mandatory IDs, names and optional | |
| descriptions. The descriptions page has two viewers, one which allows for the | |
| modification of categories' descriptions and the other of activities' descriptions. | |
| </p> | |
| <p>The first viewer displays the categories, their respective ID, name and the | |
| editable description field. The second viewer shows the same information for | |
| the current activities. When the editor switches to another page, the descriptions | |
| are then updated in the "activities.xml" file. <br> | |
| </p> | |
| <p><img src="../images/description.png" alt="Image of Descriptions page" border="0" ></p> | |
| <p><strong>"activities.xml" Page</strong></p> | |
| <p> When the "activities.xml" page tab is clicked it updates automatically. | |
| The file will contain the category, activity, and binding definitions represented | |
| in the viewers' page. </p> | |
| <p><img src="../images/xml.png" alt="Image of activities.xml page" border="0" ></p> | |
| <p><strong>Generated Format </strong> </p> | |
| <p>Activity pattern bindings are created when plug-ins are added to an activity. | |
| The patterns follow a syntax similar to the following example: "org\.eclipse\.pde/.*" | |
| for the plug-in "org.eclipse.pde". If all the plug-ins starting with | |
| "org.eclipse.pde" have been added to the same activity, the individual | |
| plug-ins patterns are replaced with "org\.eclipse\.pde\..*/.*". Similarly, | |
| on removal of a plug-in from an activity where the latter pattern is defined, | |
| the pattern will be replaced by the patterns of the plug-ins remaining in that | |
| activity. The activity editor will read activity pattern bindings on start up | |
| from defined "org.eclipse.activities" extensions defined in other | |
| plug-ins if and only if they follow the syntax described above.</P> | |
| <p>A unique ID is generated when an activity is created. The ID has the following | |
| format: "activityName" + Activity, where the activity name has been | |
| stripped from spaces, and converted to lower case. A unique ID is generated | |
| when a category is created. The ID will have the following format: "categoryName" | |
| + Category, where the category name has been stripped from spaces, and converted | |
| to lower case. </P> | |
| <p><img border="0" src="../images/ngrelc.png" alt="Related concepts." ><br> | |
| <a href="../concepts/concepts-activites.htm">Activities</a></p> | |
| <p><img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br> | |
| <a href="../tasks/tasks-activites.htm">Activities Example</a></p> | |
| </BODY> | |
| </HTML> |