Added sketch launching. Clicking the run button with an open sketch or a sketch folder / file highlighted in the navigator runs an applet just like the PDE, without saving any config. If there are errors, the applet won't load, and errors are reported in the console and Problems view.

This commit is contained in:
lonnen
2010-09-05 22:40:50 +00:00
parent 323fca77ae
commit 22b04f0c3d
19 changed files with 536 additions and 48 deletions
+38
View File
@@ -43,5 +43,43 @@
<extension
point="org.eclipse.core.runtime.preferences">
</extension>
<extension
point="org.eclipse.ui.ide.resourceFilters">
<filter
pattern = "generated"
selected="true">
<description>
Hides the generated folder and its contents from the UI.
</description>
</filter>
</extension>
<extension point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
category="Processing"
class="processing.plugin.ui.launching.RunSketchAsAppletShortcut"
description="Runs the Sketch as an applet, equivalent to the PDE run button."
icon="Resources/16x16_icon.gif"
id="processing.plugin.ui.launching.runSketchAsApplet"
label="Processing Sketch (Applet)"
modes="run">
<contextualLaunch>
<enablement>
<with variable="selection">
<count value="1" />
<iterate>
<or>
<test property="org.eclipse.jdt.launching.hasProjectNature" args="processing.plugin.core.sketchNature"/>
<test property="org.eclipse.debug.ui.matchesPattern" value="*.pde"/>
</or>
</iterate>
</with>
</enablement>
</contextualLaunch>
</shortcut>
</extension>
</plugin>