|
58 | 58 | class="net.sf.j2s.ui.launching.J2SApplicationLaunchShortcut"
|
59 | 59 | helpContextId="org.eclipse.jdt.debug.ui.shortcut_local_java_application"
|
60 | 60 | icon="icons/z-logo.gif"
|
61 |
| - id="net.sf.j2s.debug.ui.localJavaShortcut" |
| 61 | + id="net.sf.j2s.debug.ui.localJava2ScriptShortcut" |
62 | 62 | label="Java2Script Application"
|
63 | 63 | modes="run, debug">
|
64 | 64 | <contextualLaunch>
|
|
89 | 89 | <perspective
|
90 | 90 | id="org.eclipse.debug.ui.DebugPerspective">
|
91 | 91 | </perspective>
|
| 92 | + <perspective |
| 93 | + id="org.eclipse.pde.PDEPerspective"> |
| 94 | + </perspective> |
92 | 95 | <perspective id="org.eclipse.ui.resourcePerspective"/>
|
93 | 96 | </shortcut>
|
| 97 | + <shortcut |
| 98 | + label="Java2Script Unit Test" |
| 99 | + icon="icons/z-logo.gif" |
| 100 | + modes="run, debug" |
| 101 | + class="net.sf.j2s.ui.launching.J2SUnitLaunchShortcut" |
| 102 | + id="net.sf.j2s.debug.ui.localJ2SJUnitShortcut"> |
| 103 | + <contextualLaunch> |
| 104 | + <enablement> |
| 105 | + <with |
| 106 | + variable="selection"> |
| 107 | + <count |
| 108 | + value="1"> |
| 109 | + </count> |
| 110 | + <iterate> |
| 111 | + <or> |
| 112 | + <test property="org.eclipse.debug.ui.matchesPattern" value="*.java"/> |
| 113 | + <test property="org.eclipse.debug.ui.matchesPattern" value="*.class"/> |
| 114 | + <adapt type="org.eclipse.jdt.core.IJavaElement"/> |
| 115 | + </or> |
| 116 | + <!--test property="org.eclipse.pde.core.PluginNature"/--> |
| 117 | + <test property="org.eclipse.jdt.junit.isTest"/> |
| 118 | + </iterate> |
| 119 | + </with> |
| 120 | + </enablement> |
| 121 | + </contextualLaunch> |
| 122 | + <perspective |
| 123 | + id="org.eclipse.jdt.ui.JavaPerspective"> |
| 124 | + </perspective> |
| 125 | + <perspective |
| 126 | + id="org.eclipse.jdt.ui.JavaHierarchyPerspective"> |
| 127 | + </perspective> |
| 128 | + <perspective |
| 129 | + id="org.eclipse.jdt.ui.JavaBrowsingPerspective"> |
| 130 | + </perspective> |
| 131 | + <perspective |
| 132 | + id="org.eclipse.debug.ui.DebugPerspective"> |
| 133 | + </perspective> |
| 134 | + <perspective |
| 135 | + id="org.eclipse.pde.PDEPerspective"> |
| 136 | + </perspective> |
| 137 | + </shortcut> |
94 | 138 | </extension>
|
95 | 139 | <extension
|
96 | 140 | point="org.eclipse.ui.perspectiveExtensions">
|
|
109 | 153 | class="net.sf.j2s.ui.launching.J2SLaunchingTabGroup"
|
110 | 154 | id="net.sf.j2s.ui.launching.launchConfigurationTabGroup.j2sApplication"
|
111 | 155 | type="net.sf.j2s.ui.launching.j2sApplication"/>
|
| 156 | + <launchConfigurationTabGroup |
| 157 | + type="net.sf.j2s.ui.launching.j2sUnit" |
| 158 | + class="net.sf.j2s.ui.launching.J2SUnitTabGroup" |
| 159 | + id="net.sf.j2s.ui.launching.launchConfigurationTabGroup.j2sUnit"> |
| 160 | + <!-- |
| 161 | + <launchMode |
| 162 | + description="%jUnitTabGroup.description.debug" |
| 163 | + perspective="org.eclipse.debug.ui.DebugPerspective" |
| 164 | + mode="debug"> |
| 165 | + </launchMode> |
| 166 | + <launchMode |
| 167 | + description="%jUnitTabGroup.description.run" |
| 168 | + mode="run"> |
| 169 | + </launchMode> |
| 170 | + --> |
| 171 | + </launchConfigurationTabGroup> |
112 | 172 | </extension>
|
113 | 173 | <extension
|
114 | 174 | point="org.eclipse.debug.core.launchConfigurationTypes">
|
|
117 | 177 | id="net.sf.j2s.ui.launching.j2sApplication"
|
118 | 178 | modes="run, debug"
|
119 | 179 | name="Java2Script Application"/>
|
| 180 | + <launchConfigurationType |
| 181 | + sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector" |
| 182 | + name="Java2Script Unit Test" |
| 183 | + sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer" |
| 184 | + delegate="net.sf.j2s.ui.launching.J2SUnitConfigurationDelegate" |
| 185 | + modes="run, debug" |
| 186 | + id="net.sf.j2s.ui.launching.j2sUnit"> |
| 187 | + <fileExtension |
| 188 | + default="false" |
| 189 | + extension="java"> |
| 190 | + </fileExtension> |
| 191 | + <fileExtension |
| 192 | + default="false" |
| 193 | + extension="class"> |
| 194 | + </fileExtension> |
| 195 | + </launchConfigurationType> |
120 | 196 | </extension>
|
121 | 197 | <extension
|
122 | 198 | point="org.eclipse.debug.ui.launchConfigurationTypeImages">
|
123 | 199 | <launchConfigurationTypeImage
|
124 | 200 | configTypeID="net.sf.j2s.ui.launching.j2sApplication"
|
125 | 201 | icon="icons/z-logo.gif"
|
126 | 202 | id="net.sf.j2s.ui.launching.launchConfigurationTypeImage.j2sApplication"/>
|
| 203 | + <launchConfigurationTypeImage |
| 204 | + icon="icons/z-logo.gif" |
| 205 | + configTypeID="net.sf.j2s.ui.launching.j2sUnit" |
| 206 | + id="net.sf.j2s.ui.launching.launchConfigurationTypeImage.j2sUnit"/> |
127 | 207 | </extension>
|
128 | 208 | <extension
|
129 | 209 | point="org.eclipse.ui.editors">
|
|
0 commit comments