Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 54c8a86575bdbbca5477b3d519bf19aab5108f39 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>

<!-- ======================================================================= -->
<!-- Compare UI Plugin                                                       -->
<!-- ======================================================================= -->

<plugin
	name="%pluginName"
	id="org.eclipse.compare"
	version="1.0"
	provider-name="Object Technology International, Inc."
	class="org.eclipse.compare.internal.CompareUIPlugin">

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

	<runtime>
		<library name="compare.jar" >
			<export name="*"/>
		</library>
	</runtime>
		   
<!-- Compare extension point definitions -->

	<extension-point
		name="%structureCreators"
		id="structureCreators"/>
		
	<extension-point
		name="%structureMergeViewers"
		id="structureMergeViewers"/>
		
	<extension-point
		name="%contentMergeViewers"
		id="contentMergeViewers"/>

	<extension-point
		name="%contentViewers"
		id="contentViewers"/>

<!-- Extensions -->

	<extension point="org.eclipse.ui.editors">
    	<editor id="org.eclipse.compare.CompareEditor"
      		name="%defaultCompareEditor.name"
 			icon="icons/full/cview16/compare_view.gif"     	  
      		class="org.eclipse.compare.internal.CompareEditor"
			contributorClass="org.eclipse.compare.internal.CompareEditorContributor">
    	</editor>
	</extension>

	<extension
		point="org.eclipse.ui.preferencePages">
		<page name="%ComparePreferencePage.name"
			id="org.eclipse.compare.internal.ComparePreferencePage"
			class="org.eclipse.compare.internal.ComparePreferencePage"
			category= "org.eclipse.ui.preferencePages.Workbench">
		</page>	
	</extension>

	<extension point="org.eclipse.ui.popupMenus">
	
		<objectContribution
			id="org.eclipse.compare.CompareAction"
			objectClass="org.eclipse.core.resources.IResource">
			<menu
				id="replaceWithMenu"
				path="additions"
				label="%ReplaceWithMenu.label">
				<separator name="replaceWithGroup"/>
			</menu>
			<menu
				id="compareWithMenu"
				path="additions"
				label="%CompareWithMenu.label">
				<separator name="compareWithGroup"/>
			</menu>
			<action
				id="compareWithEachOther"
				label="%CompareWithEachOtherAction.label"
				tooltip="%CompareWithEachOtherAction.tooltip"
				menubarPath="compareWithMenu/compareWithGroup"
				enablesFor="2+"
				class="org.eclipse.compare.internal.CompareAction">
			</action>
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.compare.ReplaceWithEditionAction"
			objectClass="org.eclipse.core.resources.IFile">
			<action
				id="replaceFromHistory"
				label="%ReplaceFromHistoryAction.label"
				tooltip="%ReplaceFromHistoryAction.tooltip"
				menubarPath="replaceWithMenu/replaceWithGroup"
				enablesFor="1"
				class="org.eclipse.compare.internal.ReplaceWithEditionAction">
			</action>
		</objectContribution>
		
		<objectContribution
			id="org.eclipse.compare.CompareWithEditionAction"
			objectClass="org.eclipse.core.resources.IFile">
			<action
				id="compareWithHistory"
				label="%CompareWithHistoryAction.label"
				tooltip="%CompareWithHistoryAction.tooltip"
				menubarPath="compareWithMenu/compareWithGroup"
				enablesFor="1"
				class="org.eclipse.compare.internal.CompareWithEditionAction">
			</action>
		</objectContribution>
			
	</extension>

	<extension point="org.eclipse.compare.structureCreators">
		<structureCreator
			extensions="zip"
			class="org.eclipse.compare.internal.ZipStructureCreator">
		</structureCreator>
	</extension>
	
	<extension point="org.eclipse.compare.contentMergeViewers">
		<viewer
			extensions="class,exe,dll,binary"
			class="org.eclipse.compare.internal.BinaryCompareViewerCreator">
		</viewer>
		<viewer
			extensions="txt"
			class="org.eclipse.compare.internal.TextMergeViewerCreator">
		</viewer>
		<viewer
			extensions="gif,jpg"
			class="org.eclipse.compare.internal.ImageMergeViewerCreator">
		</viewer>
	</extension>
	
	<extension point="org.eclipse.compare.contentViewers">
		<viewer
			extensions="txt"
			class="org.eclipse.compare.internal.TextViewerCreator">
		</viewer>
	</extension>

</plugin>

Back to the top