Skip to content

Commit 2431a48

Browse files
author
angelozerr
committed
Fix problem with ts content type.
1 parent 46de27d commit 2431a48

File tree

2 files changed

+72
-5
lines changed

2 files changed

+72
-5
lines changed

eclipse/jsdt/ts.eclipse.ide.jsdt.ui/plugin.properties

+21-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,28 @@ providerName=Angelo ZERR
1414
TypeScriptCompletionProposalCategory.name=TypeScript Proposals
1515
TypeScriptHyperLinkDetector=TypeScript Element
1616

17+
# Editor
18+
TypeScriptEditor.name=TypeScript Editor
19+
1720
# Hover
1821
ProblemTypeScriptHover= TypeScript Problem
1922
ProblemTypeScriptHoverDescription= TypeScript Problem
2023
TypeScriptHover=TypeScript
21-
TypeScriptHoverDescription=TypeScript
24+
TypeScriptHoverDescription=TypeScript
25+
26+
##########################################################################
27+
# TypeScript Search
28+
##########################################################################
29+
TypeScriptSearchPage.label= TypeScript Search
30+
31+
# Action sets
32+
TypeScriptSearchActionSet.label= TypeScript Search
33+
TypeScriptSearchActionSet.description= Action set containing search related TypeScript actions
34+
35+
# Menu
36+
referencesSubMenu.label= R&eferences
37+
InProject.label= &Project
38+
39+
# Actions
40+
ActionDefinition.referencesInProject.name= References in Project
41+
ActionDefinition.referencesInProject.description= Search for references to the selected element in the enclosing project

eclipse/jsdt/ts.eclipse.ide.jsdt.ui/plugin.xml

+51-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?eclipse version="3.0"?>
33
<!--
44
###############################################################################
5-
# Copyright (c) 2013 Angelo Zerr and others.
5+
# Copyright (c) 2015-2016 Angelo Zerr and others.
66
# All rights reserved. This program and the accompanying materials
77
# are made available under the terms of the Eclipse Public License v1.0
88
# which accompanies this distribution, and is available at
@@ -38,9 +38,9 @@
3838
symbolicFontName="org.eclipse.wst.jsdt.ui.editors.textfont"
3939
id="ts.eclipse.ide.jsdt.ui.editor.TypeScriptEditor"
4040
extensions="ts,tsx,jsx">
41-
<contentTypeBinding contentTypeId="org.eclipse.wst.jsdt.core.tsSource" />
42-
<contentTypeBinding contentTypeId="org.eclipse.wst.jsdt.core.tsxSource" />
43-
<contentTypeBinding contentTypeId="org.eclipse.wst.jsdt.core.jsxSource" />
41+
<contentTypeBinding contentTypeId="ts.eclipse.ide.jsdt.core.tsSource" />
42+
<contentTypeBinding contentTypeId="ts.eclipse.ide.jsdt.core.tsxSource" />
43+
<contentTypeBinding contentTypeId="ts.eclipse.ide.jsdt.core.jsxSource" />
4444
</editor>
4545
</extension>
4646

@@ -99,6 +99,53 @@
9999
</hover>
100100
</extension>
101101

102+
<!-- Begin JavaScript Search action set -->
103+
<!-- End JavaScript Action Set (Adding the source, refactor and navigate menu -->
104+
<extension
105+
point="org.eclipse.ui.actionSets">
106+
<actionSet
107+
label="%TypeScriptSearchActionSet.label"
108+
description="%TypeScriptSearchActionSet.description"
109+
visible="false"
110+
id="ts.eclipse.ide.jsdt.ui.SearchActionSet">
111+
<!-- see http://bugs.eclipse.org/bugs/show_bug.cgi?id=15684 -->
112+
<!-- Note: The menu (re-) definition has to be here due to bug: -->
113+
<!-- =================================================================== -->
114+
<!-- Search Menu -->
115+
<!-- =================================================================== -->
116+
<menu
117+
label="%referencesSubMenu.label"
118+
path="org.eclipse.search.menu/contextMenuActionsGroup"
119+
id="referencesSubMenu">
120+
<separator
121+
name="group1">
122+
</separator>
123+
</menu>
124+
<action
125+
definitionId="ts.eclipse.ide.jsdt.ui.edit.text.java.search.references.in.project"
126+
label="%InProject.label"
127+
retarget="true"
128+
menubarPath="org.eclipse.search.menu/referencesSubMenu/group1"
129+
allowLabelUpdate="true"
130+
id="ts.eclipse.ide.jsdt.ui.actions.ReferencesInProject">
131+
</action>
132+
133+
</actionSet>
134+
</extension>
135+
136+
<extension
137+
point="org.eclipse.ui.commands">
138+
139+
<!-- search -->
140+
<command
141+
name="%ActionDefinition.referencesInProject.name"
142+
description="%ActionDefinition.referencesInProject.description"
143+
categoryId="org.eclipse.search.ui.category.search"
144+
id="ts.eclipse.ide.jsdt.ui.edit.text.java.search.references.in.project">
145+
</command>
146+
147+
</extension>
148+
102149
<!-- I don't know why, but startup should be done, otherwise TypeScriptCompletionProposalComputer is not registered? -->
103150
<extension
104151
point="org.eclipse.ui.startup">

0 commit comments

Comments
 (0)