You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/07/16 00:29:24 UTC

svn commit: r964631 - in /pivot/trunk/eclipse: ./ .settings/ META-INF/ src/ src/org/ src/org/apache/ src/org/apache/pivot/ src/org/apache/pivot/eclipse/

Author: gbrown
Date: Thu Jul 15 22:29:23 2010
New Revision: 964631

URL: http://svn.apache.org/viewvc?rev=964631&view=rev
Log:
Add stub code for Eclipse script application launcher.

Added:
    pivot/trunk/eclipse/
    pivot/trunk/eclipse/.classpath
    pivot/trunk/eclipse/.project
    pivot/trunk/eclipse/.settings/
    pivot/trunk/eclipse/.settings/org.eclipse.jdt.core.prefs
    pivot/trunk/eclipse/META-INF/
    pivot/trunk/eclipse/META-INF/MANIFEST.MF
    pivot/trunk/eclipse/build.properties
    pivot/trunk/eclipse/plugin.xml
    pivot/trunk/eclipse/src/
    pivot/trunk/eclipse/src/org/
    pivot/trunk/eclipse/src/org/apache/
    pivot/trunk/eclipse/src/org/apache/pivot/
    pivot/trunk/eclipse/src/org/apache/pivot/eclipse/
    pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchConfigurationDelegate.java
    pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchShortcut.java
    pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationMainTab.java
    pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationTabGroup.java
    pivot/trunk/eclipse/src/org/apache/pivot/eclipse/logo-notext-16x16.gif   (with props)

Added: pivot/trunk/eclipse/.classpath
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/.classpath?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/.classpath (added)
+++ pivot/trunk/eclipse/.classpath Thu Jul 15 22:29:23 2010
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: pivot/trunk/eclipse/.project
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/.project?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/.project (added)
+++ pivot/trunk/eclipse/.project Thu Jul 15 22:29:23 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>eclipse</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: pivot/trunk/eclipse/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/.settings/org.eclipse.jdt.core.prefs?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/.settings/org.eclipse.jdt.core.prefs (added)
+++ pivot/trunk/eclipse/.settings/org.eclipse.jdt.core.prefs Thu Jul 15 22:29:23 2010
@@ -0,0 +1,8 @@
+#Thu Jul 15 16:31:17 EDT 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6

Added: pivot/trunk/eclipse/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/META-INF/MANIFEST.MF?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/META-INF/MANIFEST.MF (added)
+++ pivot/trunk/eclipse/META-INF/MANIFEST.MF Thu Jul 15 22:29:23 2010
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Eclipse Plugin for Apache Pivot
+Bundle-SymbolicName: org.apache.pivot.eclipse;singleton:=true
+Bundle-Version: 2.0
+Bundle-Vendor: Apache Software Foundation
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.eclipse.core.runtime;bundle-version="3.5.0",
+ org.eclipse.ui;bundle-version="3.5.2",
+ org.eclipse.swt;bundle-version="3.5.2",
+ org.eclipse.jface;bundle-version="3.5.2",
+ org.eclipse.debug.core;bundle-version="3.5.1",
+ org.eclipse.debug.ui;bundle-version="3.5.2",
+ org.eclipse.jdt.core;bundle-version="3.5.2",
+ org.eclipse.jdt.launching;bundle-version="3.5.1",
+ org.eclipse.jdt.debug.ui;bundle-version="3.4.1"

Added: pivot/trunk/eclipse/build.properties
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/build.properties?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/build.properties (added)
+++ pivot/trunk/eclipse/build.properties Thu Jul 15 22:29:23 2010
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = *.xml,\
+               *.gif,\
+		               META-INF/,\
+               .

Added: pivot/trunk/eclipse/plugin.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/plugin.xml?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/plugin.xml (added)
+++ pivot/trunk/eclipse/plugin.xml Thu Jul 15 22:29:23 2010
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<?eclipse version="3.5"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in
+compliance with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<plugin>
+    <extension point="org.eclipse.debug.core.launchConfigurationTypes">
+        <launchConfigurationType name="Pivot Script Application" 
+            delegate="org.apache.pivot.eclipse.ScriptApplicationLaunchDelegate" 
+            id="org.apache.pivot.eclipse.scriptApplication" 
+            modes="run, debug"/>
+    </extension>
+    
+    <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
+        <launchConfigurationTypeImage icon="org/apache/pivot/eclipse/logo-notext-16x16.gif"
+            configTypeID="org.apache.pivot.eclipse.scriptApplication"
+            id="org.apache.pivot.eclipse.launchConfigurationTypeImage.scriptApplication">
+        </launchConfigurationTypeImage>
+    </extension>
+
+    <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
+        <launchConfigurationTabGroup type="org.apache.pivot.eclipse.scriptApplication"
+            class="org.apache.pivot.eclipse.ScriptApplicationTabGroup"
+            id="org.apache.pivot.eclipse.launchConfigurationTabGroup.scriptApplication">
+        </launchConfigurationTabGroup>
+    </extension>
+    
+    <extension point="org.eclipse.debug.ui.launchShortcuts">
+      <shortcut class="org.eclipse.jdt.debug.ui.launchConfigurations.JavaAppletLaunchShortcut"
+            description="%AppletLaunchShortcut.description"
+            helpContextId="org.eclipse.jdt.debug.ui.shortcut_java_applet"
+            icon="$nl$/icons/full/etool16/java_applet.gif"
+            id="org.eclipse.jdt.debug.ui.javaAppletShortcut"
+            label="%AppletShortcut.label"
+            modes="run, debug">
+        </shortcut>
+    </extension>    
+</plugin>
\ No newline at end of file

Added: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchConfigurationDelegate.java
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchConfigurationDelegate.java?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchConfigurationDelegate.java (added)
+++ pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchConfigurationDelegate.java Thu Jul 15 22:29:23 2010
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pivot.eclipse;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.debug.core.ILaunch;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate;
+
+public class ScriptApplicationLaunchConfigurationDelegate 
+    extends AbstractJavaLaunchConfigurationDelegate {
+    @Override
+    public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, 
+        IProgressMonitor monitor) throws CoreException {
+        // TODO
+    }
+}

Added: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchShortcut.java
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchShortcut.java?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchShortcut.java (added)
+++ pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationLaunchShortcut.java Thu Jul 15 22:29:23 2010
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pivot.eclipse;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationType;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut;
+import org.eclipse.jface.operation.IRunnableContext;
+
+public class ScriptApplicationLaunchShortcut extends JavaLaunchShortcut {
+    @Override
+    protected ILaunchConfiguration createConfiguration(IType type) {
+        // TODO
+        return null;
+    }
+
+    @Override
+    protected ILaunchConfigurationType getConfigurationType() {
+        // TODO
+        return null;
+    }
+    
+    @Override
+    protected IType[] findTypes(Object[] elements, IRunnableContext context) 
+        throws InterruptedException, CoreException {
+        // TODO
+        return null;
+    }
+
+    @Override
+    protected String getTypeSelectionTitle() {
+        // TODO
+        return null;
+    }
+
+    @Override
+    protected String getEditorEmptyMessage() {
+        // TODO
+        return null;
+    }
+
+    @Override
+    protected String getSelectionEmptyMessage() {
+        // TODO
+        return null;
+    }
+}

Added: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationMainTab.java
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationMainTab.java?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationMainTab.java (added)
+++ pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationMainTab.java Thu Jul 15 22:29:23 2010
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pivot.eclipse;
+
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab;
+import org.eclipse.swt.widgets.Composite;
+
+public class ScriptApplicationMainTab extends JavaLaunchTab {
+    public static final String NAME = "Main";
+    
+    @Override
+    public void createControl(Composite parent) {
+        // TODO
+    }
+
+    @Override
+    public String getName() {
+        // TODO Localize
+        return NAME;
+    }
+
+    @Override
+    public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
+        // TODO
+    }
+
+    @Override
+    public void initializeFrom(ILaunchConfiguration configuration) {
+        // TODO         
+    }
+    
+    @Override
+    public void performApply(ILaunchConfigurationWorkingCopy configuration) {
+        // TODO
+    }
+    
+    @Override
+    public boolean isValid(ILaunchConfiguration configuration) {
+        // TODO
+        return true;
+    }
+}

Added: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationTabGroup.java
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationTabGroup.java?rev=964631&view=auto
==============================================================================
--- pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationTabGroup.java (added)
+++ pivot/trunk/eclipse/src/org/apache/pivot/eclipse/ScriptApplicationTabGroup.java Thu Jul 15 22:29:23 2010
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pivot.eclipse;
+
+import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
+import org.eclipse.debug.ui.CommonTab;
+import org.eclipse.debug.ui.ILaunchConfigurationDialog;
+import org.eclipse.debug.ui.ILaunchConfigurationTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
+
+public class ScriptApplicationTabGroup extends AbstractLaunchConfigurationTabGroup {
+    @Override
+    public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
+        ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
+            new ScriptApplicationMainTab(),
+            new JavaJRETab(),
+            new JavaClasspathTab(),
+            new CommonTab()
+        };
+        
+        setTabs(tabs);
+    }
+}

Added: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/logo-notext-16x16.gif
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/src/org/apache/pivot/eclipse/logo-notext-16x16.gif?rev=964631&view=auto
==============================================================================
Binary file - no diff available.

Propchange: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/logo-notext-16x16.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream