Added licesnse info, fixed core doc, started adding Sketch perspective stuff

This commit is contained in:
lonnen
2010-09-07 20:45:41 +00:00
parent 22b04f0c3d
commit e542a07356
30 changed files with 476 additions and 342 deletions

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui;
import org.eclipse.core.runtime.IStatus;
@@ -10,6 +20,7 @@ import org.eclipse.core.runtime.Status;
* @author lonnen
*/
public class ProcessingLog {
//TODO merge with ProcessingPlugin. Having multiple ProcessingLog files is friggin' confusing.
// Who needs a constructor?

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui;
import org.eclipse.jface.text.rules.RuleBasedScanner;

View File

@@ -1,12 +1,13 @@
/*******************************************************************************
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Common Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/cpl1.0.php
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* IBM Corporation - initial API
* Chris Lonnen - implementation for Processing
*******************************************************************************/
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.launching;
import org.eclipse.core.resources.IFile;
@@ -43,6 +44,7 @@ public class RunSketchAsAppletShortcut implements ILaunchShortcut {
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.

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.preferences;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -74,7 +84,7 @@ public class CorePreferencePage extends PreferencePage implements IWorkbenchPref
}
public void initContents(){
String sketchbook = ProcessingCorePreferences.current().getSketchbookPathString();
String sketchbook = ProcessingCorePreferences.current().getSketchbookPathAsString();
if(sketchbook != null){
System.out.println("INIT: " + sketchbook + ";");
sketchbookPathField.setText(sketchbook.toString());
@@ -136,7 +146,7 @@ public class CorePreferencePage extends PreferencePage implements IWorkbenchPref
setValid(true);
setMessage(null);
setErrorMessage(null);
ProcessingCorePreferences.current().setSketchbookPath(sketchbookPathField.getText());
ProcessingCorePreferences.current().setSketchbookPathWithString(sketchbookPathField.getText());
}
/**

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.preferences;
/**

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor;
//import org.eclipse.jface.text.BadLocationException;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor;
import org.eclipse.core.filebuffers.IDocumentSetupParticipant;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor;
import org.eclipse.jface.text.ITextViewerExtension5;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor;
import java.util.ArrayList;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor;
import org.eclipse.jface.text.DefaultIndentLineAutoEditStrategy;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.language;
import org.eclipse.jface.text.BadLocationException;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.language;
import java.io.BufferedInputStream;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.language;
import java.text.MessageFormat;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.language;
import org.eclipse.jface.text.BadLocationException;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.util;
import java.util.HashMap;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.util;
import org.eclipse.jface.text.rules.IWhitespaceDetector;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.processingeditor.util;
import org.eclipse.jface.text.rules.IWordDetector;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.wizards;
import java.io.ByteArrayInputStream;

View File

@@ -1,3 +1,13 @@
/**
* Copyright (c) 2010 Chris Lonnen. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.opensource.org/licenses/eclipse-1.0.php
*
* Contributors:
* Chris Lonnen - initial API and implementation
*/
package processing.plugin.ui.wizards;
import java.io.File;