|
Lines 2-79
Link Here
|
| 2 |
<cheatsheet title="Use Task-Focused UI"> |
2 |
<cheatsheet title="Use Task-Focused UI"> |
| 3 |
<intro> |
3 |
<intro> |
| 4 |
<description> |
4 |
<description> |
| 5 |
This cheat sheet shows you how to handle a task lifecycle and how to use task-focused ui.<br/> |
5 |
This cheat sheet shows you how to handle a task lifecycle and how to use task-focused UI. |
|
|
6 |
<br/> |
| 7 |
You need an existing project for this sheet. |
| 6 |
</description> |
8 |
</description> |
| 7 |
</intro> |
9 |
</intro> |
| 8 |
<item title="Open the Plug-in perspective" dialog="true" skip="false"> |
|
|
| 9 |
<description> |
| 10 |
If you're not already in Plug-in Development perspective in the main menu select <b>Window</b> > <b>Open Perspective</b> > <b>Other...</b> > <b>Plug-in Development</b> or click on the "Click to Perform" link below. |
| 11 |
</description> |
| 12 |
<command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.pde.ui.PDEPerspective)" confirm="true"> |
| 13 |
</command> |
| 14 |
</item> |
| 15 |
<item title="Open the Task List view" dialog="true" skip="false"> |
10 |
<item title="Open the Task List view" dialog="true" skip="false"> |
| 16 |
<description> |
11 |
<description> |
| 17 |
If the Task List view is not opened, select in the main menu <b>Window</b> > <b>Show View</b> > <b>Other...</b> > <b>Mylar</b> > <b>Task List</b> or click on the "Click to Perform" link below. |
12 |
If the Task List view is not opened, select in the main menu <b>Window > Show View > Other... > Mylar > Task List</b> or click on the "Click to Perform" link below. |
| 18 |
</description> |
13 |
</description> |
| 19 |
<command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.mylyn.tasks.ui.views.TaskListView)" confirm="true"> |
14 |
<command serialization="org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.mylyn.tasks.ui.views.tasks)" confirm="true"> |
| 20 |
</command> |
15 |
</command> |
| 21 |
</item> |
16 |
</item> |
| 22 |
<item title="Create a sample project" dialog="true" skip="false"> |
|
|
| 23 |
<description> |
| 24 |
Before we start this cheat sheet, we need a project to practice. |
| 25 |
<br/><br/> |
| 26 |
In the main toolbar, click on the <b>New</b> button. Select the <b>Plug-in Project</b> from the list then click on the <b>Next</b> button. Enter <b>SampleProject</b> for the project's name then click on the <b>Next</b> button twice. |
| 27 |
Select from the Templates part <b>Hello, World</b> then click on the <b>Finish</b> button. |
| 28 |
</description> |
| 29 |
</item> |
| 30 |
<item title="Create and activate a task" dialog="true" skip="false"> |
17 |
<item title="Create and activate a task" dialog="true" skip="false"> |
| 31 |
<description> |
18 |
<description> |
| 32 |
In the Task List view, click on the right mouse button, then select <b>New > Category</b>. Enter <b>Tutorials</b> for the category's name. |
19 |
In the Task List view, click on the right mouse button, then select <b>New > Category</b>. Enter <b>Tutorials</b> for the category's name. |
| 33 |
<br/><br/> |
20 |
<br/><br/> |
| 34 |
Then right click on the <b>Tutorials</b> category and select <b>New > Task</b>. Enter <b>Learn task-focus</b> for the task's title and change the priority to <b>High</b>. You can add some notes, too. |
21 |
Then right click on the <b>Tutorials</b> category and select <b>New > Task</b>. In the <b>New Task</b> dialog select <b>Local Tasks</b> then click on the <b>Finish</b> button. |
|
|
22 |
Enter <b>Learn task-focus</b> for the task's title and change the priority to <b>High</b>. You can add some notes, too. |
| 35 |
<br/><br/> |
23 |
<br/><br/> |
| 36 |
Right click on the new task and select <b>Activate</b> to activate the task. |
24 |
Right click on the new task and select <b>Activate</b> to activate the task. |
| 37 |
<br/><br/> |
|
|
| 38 |
<b>Important:</b> If it's not activated, click on the <b>"Focus on the Active Task"</b> toogle button in the <b>Package Explorer</b> and in the <b>Outline</b> view too. |
| 39 |
</description> |
25 |
</description> |
| 40 |
</item> |
26 |
</item> |
| 41 |
<item title="Open SampleAction file" dialog="true" skip="false"> |
27 |
<item title="Focus on the task" dialog="true" skip="false"> |
| 42 |
<description> |
28 |
<description> |
| 43 |
Press down the <b>Ctrl+Shift+T</b> buttons or click on the "Click to Perform" link below. <br/> |
29 |
In the <b>Package Explorer</b> the task-focus turns on automatically if you activate a task.<br/> |
| 44 |
In the <b>Open Type</b> dialog enter <b>SampleAction</b> for the type's name then press the <b>Enter</b> button.<br/> |
30 |
You can turn on or off this function if you click on the <b>Focus on the Active Task</b> toogle button in the view's toolbar.<br/> |
| 45 |
After the file is opened you can see the SampleAction class both in the <b>Package Explorer</b> and in the <b>Outline</b> view. |
31 |
You can use this function in the <b>Outline</b> view, too. Turn on it in this view as well. |
|
|
32 |
</description> |
| 33 |
</item> |
| 34 |
<item title="Open the file" dialog="true" skip="false"> |
| 35 |
<description> |
| 36 |
Press down the <b>Alt</b> button and click on the <b>left</b> mouse button on the <b>Package Explorer</b> view. Now you can see all of your projects in the view. |
| 37 |
<br/><br/> |
| 38 |
Next <b>Alt+click</b> on an arbitrary project and you can see the files wich are in the project. |
| 39 |
<br/><br/> |
| 40 |
With this method, select a class from the project.<br/> |
| 41 |
After the file is opened you can see the class both in the <b>Package Explorer</b> and in the <b>Outline</b> view. |
| 46 |
</description> |
42 |
</description> |
| 47 |
<command serialization="org.eclipse.jdt.ui.navigate.open.type" confirm="true"> |
|
|
| 48 |
</command> |
| 49 |
</item> |
43 |
</item> |
| 50 |
<item title="Add method to focus" dialog="true" skip="false"> |
44 |
<item title="Add method to focus" dialog="true" skip="false"> |
| 51 |
<description> |
45 |
<description> |
| 52 |
Select in the Editor the <b>void run(IAction action)</b> method then you can see the <b>run(IAction)</b> method in the <b>Outline</b> view and in the <b>Package Explorer</b> under the SampleAction class. |
46 |
Select in the Editor a method then you can see this method in the <b>Outline</b> view and in the <b>Package Explorer</b> under the class file. |
| 53 |
<br/><br/> |
47 |
<br/><br/> |
| 54 |
Next press the Alt button and click on the SampleAction class in the <b>Outline</b> view.<br/> |
48 |
Next press the Alt button and click on the class in the <b>Outline</b> view.<br/> |
| 55 |
Now you can see all methods. Methods which aren't in the focus are in <b>grey</b> color. Select <b>window</b> field from the list. After that all methods will disappear which aren't in the focus. |
49 |
Now you can see all methods. Methods which aren't in the focus are in <b>grey</b> color. Select another method from the list. After that all methods will disappear which aren't in the focus. |
| 56 |
</description> |
50 |
</description> |
| 57 |
</item> |
51 |
</item> |
| 58 |
<item title="Landmark" dialog="true" skip="false"> |
52 |
<item title="Landmark" dialog="true" skip="false"> |
| 59 |
<description> |
53 |
<description> |
| 60 |
If an element's interest ranks high enough, it becomes a landmark, which is an implicitly created bookmark. Landmarks are showed in bold font. |
54 |
If an element's interest rank is high enough, it becomes a landmark, which is an implicitly created bookmark. Landmarks are showed in bold font. |
| 61 |
<br/><br/> |
55 |
<br/><br/> |
| 62 |
Select the <b>run(IAction)</b> method in the <b>Outline</b> view or in the <b>Package Explorer</b>. Right click on the method and select <b>Mark as Landmark</b>. After then this method becomes a landmark. |
56 |
Select the a method in the <b>Outline</b> view or in the <b>Package Explorer</b>. Right click on the method and select <b>Mark as Landmark</b>. After then this method becomes a landmark. |
| 63 |
<br/><br/> |
57 |
<br/><br/> |
| 64 |
Also you can use key bindings. <b>Ctrl+Shift+Alt+UpArrow</b> to mark the element as landmark or <b>Ctrl+Shift+Alt+DownArrow</b> to mark less interesting for the element. |
58 |
Also you can use key bindings. <b>Ctrl+Shift+Alt+UpArrow</b> to mark the element as landmark or <b>Ctrl+Shift+Alt+DownArrow</b> to mark less interesting for the element. |
| 65 |
</description> |
59 |
</description> |
| 66 |
</item> |
60 |
</item> |
| 67 |
<item title="Remove method from focus" dialog="true" skip="true"> |
61 |
<item title="Remove method from focus" dialog="true" skip="false"> |
| 68 |
<description> |
62 |
<description> |
| 69 |
Right click on the <b>window</b> field and select <b>Remove from Focus</b>. The window field will disappear on the list. |
63 |
Right click on a method which is in the focus and select <b>Remove from Focus</b>. After then this method will disappear from the list. |
| 70 |
</description> |
64 |
</description> |
| 71 |
</item> |
65 |
</item> |
| 72 |
<item title="Open Activator.java" dialog="true" skip="false"> |
66 |
<item title="Open another file" dialog="true" skip="false"> |
| 73 |
<description> |
67 |
<description> |
| 74 |
Press down the <b>Alt</b> button and <b>click</b> on the <b>src</b> directory. Then you can see 3 packages. <br/> |
68 |
Press down the <b>Alt</b> button and <b>click</b> on the <b>project</b>. Select an arbitrary file from the list with <b>Alt+click</b>. After you open the new file you can see it in the focus and all files will disappear which aren't in the focus. |
| 75 |
<b>Alt+click</b> on the <b>sampleproject</b> package and you can open the Activator.java file with a simple double-click on the file name. |
69 |
<br/> |
| 76 |
<br/><br/> |
|
|
| 77 |
You can use <b>Alt+RightArrow</b> instead of <b>Alt+click</b>. |
70 |
You can use <b>Alt+RightArrow</b> instead of <b>Alt+click</b>. |
| 78 |
</description> |
71 |
</description> |
| 79 |
</item> |
72 |
</item> |