Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 5d5f0426d2c69e2f95f3d8a92951715ad24d9293 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<plugin
   id="org.eclipse.ui.workbench.texteditor"
   name="%pluginName"
   version="2.1.0"
   provider-name="%providerName"
   class="org.eclipse.ui.internal.texteditor.TextEditorPlugin">

   <runtime>
      <library name="texteditor.jar">
		<export name="*"/>
		<packages prefixes="org.eclipse.ui.texteditor,org.eclipse.ui.internal.texteditor"/>
      </library>
   </runtime>

   <requires>
      <import plugin="org.eclipse.text"/>
      <import plugin="org.eclipse.jface"/>
      <import plugin="org.eclipse.jface.text"/>
      <import plugin="org.eclipse.ui.workbench"/>
      <import plugin="org.eclipse.core.resources"/>      
   </requires>

<!-- action definitions -->

<extension point="org.eclipse.ui.actionDefinitions">
	<actionDefinition
		id="org.eclipse.ui.edit.text.gotoLastEditPosition"
		name= "%goToLastEditPosition.label"
		description="%goToLastEditPosition.description"
	/>
</extension>

<extension point="org.eclipse.ui.acceleratorSets">
	<acceleratorSet	scopeId="org.eclipse.ui.globalScope" configurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
		<accelerator key="Ctrl+Q" id="org.eclipse.ui.edit.text.gotoLastEditPosition" />
	</acceleratorSet>
	
	<acceleratorSet	scopeId="org.eclipse.ui.globalScope" configurationId="org.eclipse.ui.emacsAcceleratorConfiguration">
		<accelerator key="Ctrl+Q" id="org.eclipse.ui.edit.text.gotoLastEditPosition" />
	</acceleratorSet>
</extension>

<!-- action sets -->

<extension point="org.eclipse.ui.actionSets">
	<actionSet
		id="org.eclipse.ui.edit.text.actionSet.navigation"
        label="%textEditorNavigationActionSet.label"
		visible="true">

		<action id="gotoLastEditPosition"
			definitionId="org.eclipse.ui.edit.text.gotoLastEditPosition"
			toolbarPath="org.eclipse.ui.workbench.navigate/history.group"	
			menubarPath="navigate/"
			label="%goToLastEditPosition.label"
			tooltip="%goToLastEditPosition.tooltip"
            disabledIcon="icons/full/dtool16/last_edit_pos.gif"
            hoverIcon="icons/full/ctool16/last_edit_pos.gif"
			icon="icons/full/etool16/last_edit_pos.gif"
			class="org.eclipse.ui.internal.texteditor.GotoLastEditPositionAction"/>
     </actionSet>
</extension>

</plugin>

Back to the top