Examples of SketchProject


Examples of processing.plugin.core.builder.SketchProject

    private SketchProject sp;

    public ProjectTableEntryModel() {}

    public boolean setEntry(IProject project) {
      SketchProject candidate = SketchProject.forProject(project);
      return setEntry(candidate);
    }
View Full Code Here

Examples of processing.plugin.core.builder.SketchProject

public class RunSketchAsAppletShortcut implements ILaunchShortcut {

  protected ILaunchConfiguration createConfiguration(IProject project) {
    if (project == null) return null;
    SketchProject sketch = SketchProject.forProject(project);
    ILaunchConfiguration config = null;
    try{
      ILaunchConfigurationType configType = getConfigurationType();
      ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, project.getName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, sketch.getMainType());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_WIDTH, sketch.getWidth());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_HEIGHT, sketch.getHeight());
      wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_APPLET_NAME, "Processing Sketch");
      wc.setAttribute("wasLastBuildSuccessful", sketch.wasLastBuildSuccessful());
      wc.setMappedResources(new IResource[] { sketch.getJavaProject().getUnderlyingResource() });
//      config =wc.doSave();
      config = wc; // this prevents a run config from being saved and sticking around.
    } catch (CoreException ce) {
      ProcessingPlugin.logError(ce);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.