Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivian Kong2010-02-19 15:27:56 +0000
committerVivian Kong2010-02-19 15:27:56 +0000
commit02fd62f9ec786c639ed8f18bf5fea92cf086c3c7 (patch)
tree31f58643856598aaff5b7bc69a72cf2c7a615910 /upc/org.eclipse.cdt.managedbuilder.bupc.ui
parent2233d1045a5b44e345e186900ea0715a15d96195 (diff)
downloadorg.eclipse.cdt-02fd62f9ec786c639ed8f18bf5fea92cf086c3c7.tar.gz
org.eclipse.cdt-02fd62f9ec786c639ed8f18bf5fea92cf086c3c7.tar.xz
org.eclipse.cdt-02fd62f9ec786c639ed8f18bf5fea92cf086c3c7.zip
Bug 301998 - Berkeley UPC plugin contribution for Max Billingsley III
Diffstat (limited to 'upc/org.eclipse.cdt.managedbuilder.bupc.ui')
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/.classpath7
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/.project29
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.ltk.core.refactoring.prefs3
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/META-INF/MANIFEST.MF20
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/about.html22
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/build.properties8
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/plugin.xml609
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/src/org/eclipse/cdt/managedbuilder/bupc/ui/UPCWizardsPlugin.java99
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/src/Basename.upc15
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.properties15
-rw-r--r--upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.xml65
12 files changed, 904 insertions, 0 deletions
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.classpath b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.classpath
new file mode 100644
index 00000000000..dd30818f980
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.classpath
@@ -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/J2SE-1.5"/>
+ <classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.project b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.project
new file mode 100644
index 00000000000..f2fdffda5cc
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.project
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.cdt.managedbuilder.bupc.ui</name>
+ <comment></comment>
+ <projects>
+ <project>org.eclipse.ptp.pldt.upc_mine</project>
+ </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>
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.jdt.core.prefs b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..3bb8e4665b8
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,12 @@
+#Thu Feb 18 14:50:43 EST 2010
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.ltk.core.refactoring.prefs b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 00000000000..4594a5466d7
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,3 @@
+#Tue May 26 16:43:18 EDT 2009
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/META-INF/MANIFEST.MF b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..61bbf2ddc2d
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,20 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Berkeley UPC Tool Chain
+Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.bupc.ui;singleton:=true
+Bundle-Version: 1.0.2.qualifier
+Bundle-ClassPath: org.eclipse.cdt.managedbuilder.bupc.ui
+Bundle-Activator: org.eclipse.cdt.managedbuilder.bupc.ui.UPCWizardsPlugin
+Require-Bundle: org.eclipse.cdt.ui,
+ org.eclipse.cdt.core,
+ org.eclipse.cdt.managedbuilder.core,
+ org.eclipse.cdt.core.parser.upc,
+ org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.ui.editors,
+ org.eclipse.core.resources
+Import-Package: org.eclipse.cdt.ui.wizards,
+ org.eclipse.ui.wizards.newresource
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: Eclipse CDT
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/about.html b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/about.html
new file mode 100644
index 00000000000..a78242d7fde
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/about.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>May 2, 2006</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org.</p>
+
+</body>
+</html>
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/build.properties b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/build.properties
new file mode 100644
index 00000000000..34268c81aed
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/build.properties
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ templates/,\
+ build.properties,\
+ about.html
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/plugin.xml b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/plugin.xml
new file mode 100644
index 00000000000..3b9a591883f
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/plugin.xml
@@ -0,0 +1,609 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+<extension point="org.eclipse.cdt.core.templates">
+<template filterPattern=".*"
+ id="org.eclipse.cdt.core.templates.HelloWorldUPCProject"
+ location="templates/template.xml"
+ projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
+ </template>
+</extension>
+
+<extension
+ id="org.eclipse.cdt.managedbuilder.bupc.ui.upcBuildDefinitions"
+ name="UPC toolchain"
+ point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
+
+ <tool
+ command="upcc"
+ id = "org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ isAbstract="false"
+ name = "Berkeley UPC Compiler"
+ natureFilter = "both"
+ outputFlag = "-o">
+ <supportedProperties>
+ <property id="org.eclipse.cdt.build.core.buildType">
+ <value id="org.eclipse.cdt.build.core.buildType.debug"/>
+ <value id="org.eclipse.cdt.build.core.buildType.release"/>
+ </property>
+ </supportedProperties>
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ id = "bupc.ui.optionCategory.compiler.gen"
+ name = "General"/>
+ <option
+ category="bupc.ui.optionCategory.compiler.gen"
+ command="-g"
+ id="bupc.ui.compiler.general.preprocess"
+ isAbstract="false"
+ name = "Preprocess only (-E)"
+ resourceFilter="project"
+ valueType="boolean"
+ defaultValue="false"/>
+ <option
+ category="bupc.ui.optionCategory.compiler.gen"
+ command="-g"
+ id="bupc.ui.compiler.general.debug"
+ isAbstract="false"
+ name = "Debug"
+ resourceFilter="project"
+ valueType="boolean"
+ defaultValue="false">
+ <enablement
+ type="CONTAINER_ATTRIBUTE"
+ attribute="defaultValue"
+ value="true"
+ extensionAdjustment="false">
+ <checkBuildProperty
+ property="org.eclipse.cdt.build.core.buildType"
+ value="org.eclipse.cdt.build.core.buildType.debug"/>
+ </enablement>
+ </option>
+ <option
+ category="bupc.ui.optionCategory.compiler.gen"
+ command="-O"
+ id="bupc.ui.compiler.general.opt"
+ isAbstract="false"
+ name = "Generate optimized objects"
+ resourceFilter="project"
+ valueType="boolean"
+ defaultValue="false"/>
+ <option
+ category="bupc.ui.optionCategory.compiler.gen"
+ command="-opt"
+ id="bupc.ui.compiler.general.opt.exp"
+ isAbstract="false"
+ name = "Enable experimental UPC translator optimizations"
+ resourceFilter="project"
+ valueType="boolean"
+ defaultValue="false"/>
+
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ name="UPC options"
+ id="bupc.ui.optionCategory.compiler.upc">
+ </optionCategory>
+
+ <option
+ name="Network API"
+ category="bupc.ui.optionCategory.compiler.upc"
+ id="bupc.ui.compiler.network"
+ valueType="enumerated">
+
+ <enumeratedOptionValue
+ name="Default"
+ isDefault="true"
+ command=""
+ id="bupc.ui.compiler.network.default">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="MPI"
+ isDefault="false"
+ command="-network=mpi"
+ id="bupc.ui.compiler.network.mpi">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="UDP"
+ command="-network=udp"
+ id="bupc.ui.compiler.network.udp">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="ELAN"
+ command="-network=elan"
+ id="bupc.ui.compiler.network.elan">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="IBM LAPI"
+ command="-network=lapi"
+ id="bupc.ui.compiler.network.lapi">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Myrinet GM"
+ command="-network=gm"
+ id="bupc.ui.compiler.network.gm">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="SMP"
+ command="-network=smp"
+ id="bupc.ui.compiler.network.smp">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="VAPI"
+ command="-network=vapi"
+ id="bupc.ui.compiler.network.vapi">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="OpenIB"
+ command="-network=ibv"
+ id="bupc.ui.compiler.network.ibv">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Dolphin SCI"
+ command="-network=sci"
+ id="bupc.ui.compiler.network.sci">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="SHMEM"
+ command="-network=shmem"
+ id="bupc.ui.compiler.network.shmem">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Cray XT Portals"
+ command="-network=portals"
+ id="bupc.ui.compiler.network.portals">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="BlueGene/P DCMF"
+ command="-network=dcmf"
+ id="bupc.ui.compiler.network.dcmf">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ category="bupc.ui.optionCategory.compiler.upc"
+ command="-shared-heap="
+ id="bupc.ui.compiler.upc.sharedheap"
+ isAbstract="false"
+ name="-shared-heap="
+ resourceFilter="project"
+ valueType="string"/>
+ <option
+ category="bupc.ui.optionCategory.compiler.upc"
+ command="-T="
+ id="bupc.ui.compiler.upc.fixedthreads"
+ isAbstract="false"
+ name="-T="
+ resourceFilter="project"
+ valueType="string"/>
+
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ name="Symbols"
+ id="bupc.ui.optionCategory.compiler.symbols">
+ </optionCategory>
+ <option
+ name="Defined symbols (-D)"
+ category="bupc.ui.optionCategory.compiler.symbols"
+ command="-D"
+ id="bupc.ui.compiler.def.symbol"
+ valueType="definedSymbols">
+ </option>
+ <option
+ name="Undefined symbols (-U)"
+ category="bupc.ui.optionCategory.compiler.symbols"
+ command="-U"
+ id="bupc.ui.compiler.undef.symbol"
+ valueType="undefDefinedSymbols">
+ </option>
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ name="Directories"
+ id="bupc.ui.optionCategory.compiler.dirs">
+ </optionCategory>
+ <option
+ name="Include paths (-I)"
+ category="bupc.ui.optionCategory.compiler.dirs"
+ command="-I"
+ id="bupc.ui.compiler.general.incpath"
+ valueType="includePath"
+ browseType="directory">
+ </option>
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ id = "bupc.ui.optionCategory.compiler.upcOptions"
+ name = "Advanced options"/>
+ <option
+ category="bupc.ui.optionCategory.compiler.upcOptions"
+ command="-pthreads="
+ id="bupc.ui.compiler.advOptions.pthread"
+ isAbstract="false"
+ name="-pthreads="
+ resourceFilter="project"
+ valueType="string"/>
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.compiler"
+ id = "bupc.ui.optionCategory.compiler.miscOptions"
+ name = "Miscellaneous"/>
+ <option
+ defaultValue="-c"
+ category="bupc.ui.optionCategory.compiler.miscOptions"
+ command=""
+ id="bupc.ui.compiler.miscOptions.other"
+ isAbstract="false"
+ name="Other options"
+ resourceFilter="project"
+ valueType="string"/>
+ <option
+ defaultValue="false"
+ name="Verbose (-v)"
+ category="bupc.ui.optionCategory.compiler.miscOptions"
+ command="-v"
+ id="bupc.ui.compiler.miscOptions.verbose"
+ valueType="boolean"/>
+ <option
+ defaultValue="false"
+ name="Extra verbose (-vv)"
+ category="bupc.ui.optionCategory.compiler.miscOptions"
+ command="-v"
+ id="bupc.ui.compiler.miscOptions.extraVerbose"
+ valueType="boolean"/>
+ <inputType
+ id="cdt.managedbuild.tool.bupc.compiler.input"
+ multipleOfType ="false"
+ dependencyContentType="org.eclipse.cdt.core.cHeader"
+ dependencyExtensions="h"
+ name = "UPC sources"
+ primaryInput = "true"
+ languageId="org.eclipse.cdt.core.parser.upc.upc"
+ superClass="org.eclipse.cdt.build.core.settings.holder.inType"
+ sources = "upc,c">
+ </inputType>
+ <outputType
+ id="cdt.managedbuild.tool.bupc.compiler.output"
+ name="Object Files"
+ outputs="o"
+ buildVariable="OBJS"
+ primaryInputType="cdt.managedbuild.tool.bupc.compiler.input"
+ primaryOutput="true"/>
+
+ </tool>
+
+ <tool
+ command="upcc"
+ id = "org.eclipse.cdt.managedbuild.tool.bupc.linker"
+ isAbstract="false"
+ name = "Berkeley UPC Linker"
+ natureFilter = "both"
+ outputFlag = "-o">
+ <supportedProperties>
+ <property id="org.eclipse.cdt.build.core.buildType">
+ <value id="org.eclipse.cdt.build.core.buildType.debug"/>
+ <value id="org.eclipse.cdt.build.core.buildType.release"/>
+ </property>
+ </supportedProperties>
+ <optionCategory
+ id = "bupc.ui.optionCategory.linker.gen"
+ name = "General"/>
+ <option
+ category="bupc.ui.optionCategory.linker.gen"
+ command="-g"
+ id="bupc.ui.linker.general.debug"
+ isAbstract="false"
+ name = "Debug"
+ resourceFilter="project"
+ valueType="boolean"
+ defaultValue="false">
+ <enablement
+ type="CONTAINER_ATTRIBUTE"
+ attribute="defaultValue"
+ value="true"
+ extensionAdjustment="false">
+ <checkBuildProperty
+ property="org.eclipse.cdt.build.core.buildType"
+ value="org.eclipse.cdt.build.core.buildType.debug"/>
+ </enablement>
+ </option>
+ <option
+ category = "bupc.ui.optionCategory.linker.gen"
+ id = "bupc.ui.linker.general.strip"
+ command = "-s"
+ isAbstract = "false"
+ name = "Strip the symbolic information from the final executable"
+ resourceFilter = "project"
+ valueType = "boolean"
+ defaultValue="false"/>
+
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.linker"
+ name="UPC options"
+ id="bupc.ui.optionCategory.linker.upc">
+ </optionCategory>
+
+ <option
+ name="Network API"
+ category="bupc.ui.optionCategory.linker.upc"
+ id="bupc.ui.linker.upc.network"
+ valueType="enumerated">
+
+ <enumeratedOptionValue
+ name="Default"
+ isDefault="true"
+ command=""
+ id="bupc.ui.linker.upc.network.default">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="MPI"
+ isDefault="false"
+ command="-network=mpi"
+ id="bupc.ui.linker.upc.network.mpi">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="UDP"
+ command="-network=udp"
+ id="bupc.ui.linker.upc.network.udp">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="ELAN"
+ command="-network=elan"
+ id="bupc.ui.linker.upc.network.elan">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="IBM LAPI"
+ command="-network=lapi"
+ id="bupc.ui.linker.upc.network.lapi">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Myrinet GM"
+ command="-network=gm"
+ id="bupc.ui.linker.upc.network.gm">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="SMP"
+ command="-network=smp"
+ id="bupc.ui.linker.upc.network.smp">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="VAPI"
+ command="-network=vapi"
+ id="bupc.ui.linker.upc.network.vapi">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="OpenIB"
+ command="-network=ibv"
+ id="bupc.ui.linker.upc.network.ibv">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Dolphin SCI"
+ command="-network=sci"
+ id="bupc.ui.linker.upc.network.sci">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="SHMEM"
+ command="-network=shmem"
+ id="bupc.ui.linker.upc.network.shmem">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Cray XT Portals"
+ command="-network=portals"
+ id="bupc.ui.linker.upc.network.portals">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="BlueGene/P DCMF"
+ command="-network=dcmf"
+ id="bupc.ui.linker.upc.network.dcmf">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ category="bupc.ui.optionCategory.linker.upc"
+ command="-shared-heap="
+ id="bupc.ui.linker.upc.sharedheap"
+ isAbstract="false"
+ name="-shared-heap="
+ resourceFilter="project"
+ valueType="string"/>
+ <option
+ category="bupc.ui.optionCategory.linker.upc"
+ command="-T="
+ id="bupc.ui.linker.upc.fixedthreads"
+ isAbstract="false"
+ name="-T="
+ resourceFilter="project"
+ valueType="string"/>
+
+ <optionCategory
+ owner="org.eclipse.cdt.managedbuild.tool.bupc.linker"
+ name="Libraries"
+ id="bupc.ui.optionCategory.linker.libs">
+ </optionCategory>
+ <option
+ name="Libraries (-l)"
+ category="bupc.ui.optionCategory.linker.libs"
+ command="-l"
+ id="bupc.ui.linker.libs"
+ browseType="none"
+ valueType="libs">
+ </option>
+ <option
+ name="Library search path (-L)"
+ category="bupc.ui.optionCategory.linker.libs"
+ command="-L"
+ id="bupc.ui.linker.paths"
+ browseType="directory"
+ valueType="libPaths">
+ </option>
+
+ <optionCategory
+ id = "bupc.ui.optionCategory.linker.advOptions"
+ name = "Advanced options"/>
+ <option
+ category="bupc.ui.optionCategory.linker.advOptions"
+ command="-pthreads="
+ id="bupc.ui.linker.advOptions.pthread"
+ isAbstract="false"
+ name="-pthreads="
+ resourceFilter="project"
+ valueType="string"/>
+ <option
+ category="bupc.ui.optionCategory.linker.advOptions"
+ command=""
+ id="bupc.ui.linker.advOptions.other"
+ isAbstract="false"
+ name="Other options"
+ resourceFilter="project"
+ valueType="string"/>
+
+ <inputType
+ id="cdt.managedbuild.tool.bupc.linker.input"
+ multipleOfType ="true"
+ dependencyCalculator="org.eclipse.cdt.managedbuilder.makegen.internal.DefaultNoDependencyCalculator"
+ primaryInput = "true"
+ languageId="org.eclipse.cdt.core.parser.upc.upc"
+ sourceContentType="org.eclipse.cdt.managedbuilder.core.compiledObjectFile"
+ sources = "o"
+ buildVariable="OBJS">
+
+ </inputType>
+
+ <outputType
+ id="cdt.managedbuild.tool.bupc.linker.output"
+ name="Executables"
+ outputs=""
+ buildVariable="EXECUTABLES"
+ primaryInputType="cdt.managedbuild.tool.bupc.linker.input"
+ primaryOutput="true"/>
+
+ </tool>
+
+ <toolChain
+ archList="all"
+ osList="linux,hpux,aix,qnx"
+ name="Berkeley UPC"
+ targetTool="org.eclipse.cdt.managedbuild.tool.bupc.linker"
+ id="cdt.managedbuild.toolchain.bupc.exe.base">
+ <targetPlatform
+ id="cdt.managedbuild.target.bupc.platform.base"
+ name="Debug Platform"
+ binaryParser="org.eclipse.cdt.core.ELF"
+ osList="linux,hpux,aix,qnx"
+ archList="all">
+ </targetPlatform>
+
+ <builder
+ id="org.eclipse.cdt.managedbuilder.bupc.builder.base"
+ isAbstract="false"
+ isVariableCaseSensitive="false"
+ superClass="org.eclipse.cdt.build.core.internal.builder">
+ </builder>
+
+ <tool
+ id="org.eclipse.cdt.managedbuild.tool.bupc.compiler.base"
+ superClass="org.eclipse.cdt.managedbuild.tool.bupc.compiler"/>
+ <tool
+ id="org.eclipse.cdt.managedbuild.tool.bupc.linker.base"
+ superClass="org.eclipse.cdt.managedbuild.tool.bupc.linker"/>
+
+ </toolChain>
+
+ <projectType
+ id = "cdt.managedbuild.target.bupc.exe"
+ buildArtefactType = "org.eclipse.cdt.build.core.buildArtefactType.exe"
+ isAbstract="false"
+ isTest="false">
+ <configuration
+ cleanCommand = "rm -rf"
+ description = "Debug configuration"
+ id = "cdt.managedbuild.config.bupc.exe.debug"
+ buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
+ name = "Debug">
+ <toolChain
+ superClass="cdt.managedbuild.toolchain.bupc.exe.base"
+ id = "cdt.managedbuild.toolchain.bupc.exe.debug">
+ <targetPlatform
+ superClass="cdt.managedbuild.target.bupc.platform.base"
+ id="cdt.managedbuild.target.bupc.platform.exe.debug">
+ </targetPlatform>
+ <builder
+ superClass="org.eclipse.cdt.managedbuilder.bupc.builder.base"
+ id="org.eclipse.cdt.managedbuilder.bupc.builder.exe.debug">
+ </builder>
+ <tool
+ id="org.eclipse.cdt.managedbuild.tool.bupc.compiler.exe.debug"
+ superClass="org.eclipse.cdt.managedbuild.tool.bupc.compiler.base">
+
+ <!--
+ <option
+ id="gnu.cpp.compiler.exe.debug.option.optimization.level"
+ superClass="gnu.cpp.compiler.option.optimization.level">
+ </option>
+ -->
+ <option
+ id="bupc.ui.compiler.exe.debug.option.debug"
+ superClass="bupc.ui.compiler.general.debug">
+ </option>
+ </tool>
+ <tool
+ id="org.eclipse.cdt.managedbuild.tool.bupc.linker.exe.debug"
+ superClass="org.eclipse.cdt.managedbuild.tool.bupc.linker.base">
+ <!--
+ <option
+ id="gnu.c.compiler.exe.debug.option.optimization.level"
+ superClass="gnu.c.compiler.option.optimization.level">
+ </option>
+ -->
+ <option
+ id="bupc.ui.linker.exe.debug.option.debug"
+ superClass="bupc.ui.linker.general.debug">
+ </option>
+ </tool>
+ </toolChain>
+ </configuration>
+ <configuration
+ cleanCommand = "rm -rf"
+ description = "Release configuration"
+ id = "cdt.managedbuild.config.bupc.exe.release"
+ buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release"
+ name = "Release">
+ <toolChain
+ superClass="cdt.managedbuild.toolchain.bupc.exe.base"
+ id = "cdt.managedbuild.toolchain.bupc.exe.release">
+ <targetPlatform
+ superClass="cdt.managedbuild.target.bupc.platform.base"
+ id="cdt.managedbuild.target.bupc.platform.exe.release">
+ </targetPlatform>
+ <builder
+ superClass="org.eclipse.cdt.managedbuilder.bupc.builder.base"
+ id="org.eclipse.cdt.managedbuilder.bupc.builder.exe.release">
+ </builder>
+ <tool
+ id="org.eclipse.cdt.managedbuild.tool.bupc.compiler.exe.release"
+ superClass="org.eclipse.cdt.managedbuild.tool.bupc.compiler.base">
+
+ <!--
+ <option
+ id="gnu.cpp.compiler.exe.debug.option.optimization.level"
+ superClass="gnu.cpp.compiler.option.optimization.level">
+ </option>
+ -->
+ <option
+ id="bupc.ui.compiler.exe.release.option.debug"
+ superClass="bupc.ui.compiler.general.debug">
+ </option>
+ </tool>
+ <tool
+ id="org.eclipse.cdt.managedbuild.tool.bupc.linker.exe.release"
+ superClass="org.eclipse.cdt.managedbuild.tool.bupc.linker.base">
+ <!--
+ <option
+ id="gnu.c.compiler.exe.debug.option.optimization.level"
+ superClass="gnu.c.compiler.option.optimization.level">
+ </option>
+ -->
+ <option
+ id="bupc.ui.linker.exe.release.option.debug"
+ superClass="bupc.ui.linker.general.debug">
+ </option>
+ </tool>
+ </toolChain>
+ </configuration>
+ </projectType>
+</extension>
+</plugin>
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/src/org/eclipse/cdt/managedbuilder/bupc/ui/UPCWizardsPlugin.java b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/src/org/eclipse/cdt/managedbuilder/bupc/ui/UPCWizardsPlugin.java
new file mode 100644
index 00000000000..3443875513c
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/src/org/eclipse/cdt/managedbuilder/bupc/ui/UPCWizardsPlugin.java
@@ -0,0 +1,99 @@
+/****************************************************************************
+ * Copyright (c) 2010, University of Florida and others.
+ *
+ * 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.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Max Billingsley III - initial API and implementation
+ ****************************************************************************/
+package org.eclipse.cdt.managedbuilder.bupc.ui;
+
+import org.eclipse.ui.plugin.*;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.osgi.framework.BundleContext;
+import java.util.*;
+
+/**
+ * Based on plugin class for PLDT Wizards (MPI & OpenMP)
+ */
+public class UPCWizardsPlugin extends AbstractUIPlugin {
+ //The shared instance.
+ private static UPCWizardsPlugin plugin;
+ //Resource bundle.
+ private ResourceBundle resourceBundle;
+
+ /**
+ * The constructor.
+ */
+ public UPCWizardsPlugin() {
+ super();
+ plugin = this;
+ }
+
+ /**
+ * This method is called upon plug-in activation
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /**
+ * This method is called when the plug-in is stopped
+ */
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ plugin = null;
+ resourceBundle = null;
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static UPCWizardsPlugin getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns the string from the plugin's resource bundle,
+ * or 'key' if not found.
+ */
+ public static String getResourceString(String key) {
+ ResourceBundle bundle = UPCWizardsPlugin.getDefault().getResourceBundle();
+ try {
+ return (bundle != null) ? bundle.getString(key) : key;
+ } catch (MissingResourceException e) {
+ return key;
+ }
+ }
+
+ /**
+ * Returns the plugin's resource bundle,
+ */
+ public ResourceBundle getResourceBundle() {
+ try {
+ if (resourceBundle == null)
+ resourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.managedbuilder.ui.tests.TestsPluginResources"); //$NON-NLS-1$
+ } catch (MissingResourceException x) {
+ resourceBundle = null;
+ }
+ return resourceBundle;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path.
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.cdt.managedbuilder.ui.tests", path); //$NON-NLS-1$
+ }
+
+ public static String getPluginId() {
+ return "org.eclipse.ptp.pldt.upc.wizard"; //$NON-NLS-1$
+ }
+}
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/src/Basename.upc b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/src/Basename.upc
new file mode 100644
index 00000000000..e60a304291f
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/src/Basename.upc
@@ -0,0 +1,15 @@
+/*
+ ============================================================================
+ Name : $(baseName).upc
+ Author : $(author)
+ Version :
+ Copyright : $(copyright)
+ Description : UPC Hello world program
+ ============================================================================
+*/
+#include <upc.h>
+
+int main(int argc, char *argv[]) {
+ printf("Hello, I am %d of %d.\n", MYTHREAD, THREADS);
+ return 0;
+}
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.properties b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.properties
new file mode 100644
index 00000000000..772f31f9a80
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.properties
@@ -0,0 +1,15 @@
+HelloWorld.upcAnsitemplate.label=Hello World UPC Project
+HelloWorld.CAnsitemplate.description=A skeletal Managed C Hello World project. Creates a folder for sources and another for include.
+HelloWorld.basics.label=Basic Settings
+HelloWorld.basics.description=Basic properties of a project
+HelloWorld.author.label=Author
+HelloWorld.author.description=Name of the author
+HelloWorld.copyright.label=Copyright notice
+HelloWorld.copyright.description=Your copyright notice
+HelloWorld.copyright.default=Your copyright notice
+HelloWorld.message.default=Hello UPC World
+HelloWorld.message.description=Your hello world greeting message
+HelloWorld.message.label=Hello world greeting
+HelloWorld.sourceDir.label=Source
+HelloWorld.sourceDir.description=Directory for hello world project source files
+HelloWorld.sourceDir.default=src
diff --git a/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.xml b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.xml
new file mode 100644
index 00000000000..ed7f5cc94f5
--- /dev/null
+++ b/upc/org.eclipse.cdt.managedbuilder.bupc.ui/templates/template.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template type="ProjTempl" version="1.0" supplier="ppw@hcs.ufl.edu"
+ revision="1.0" author="PPW group, HCS lab, University of Florida"
+ copyright="Copyright (c) 2010, University of Florida"
+ id="HelloWorldUPCProject" label="%HelloWorld.upcAnsitemplate.label"
+ description="%HelloWorld.CAnsitemplate.description"
+ help="help.html">
+
+ <property-group id="basics" label="%HelloWorld.basics.label"
+ description="%HelloWorld.basics.description"
+ type="PAGES-ONLY" help="help.html">
+ <property id="author"
+ label="%HelloWorld.author.label"
+ description="%HelloWorld.author.description"
+ type="input"
+ pattern=".*"
+ default=""
+ hidden="false"
+ persist="true"/>
+ <property id="copyright"
+ label="%HelloWorld.copyright.label"
+ description="%HelloWorld.copyright.description"
+ type="input"
+ pattern=".*"
+ default="%HelloWorld.copyright.default"
+ hidden="false"
+ persist="true"/>
+ <property id="message"
+ label="%HelloWorld.message.label"
+ description="%HelloWorld.message.description"
+ type="input"
+ pattern=".*"
+ default="%HelloWorld.message.default"
+ hidden="false"
+ persist="true"/>
+ <property id="sourceDir"
+ label="%HelloWorld.sourceDir.label"
+ description="%HelloWorld.sourceDir.description"
+ type="input"
+ default="%HelloWorld.sourceDir.default"
+ pattern="[a-zA-Z0-9]+"
+ mandatory="false"
+ persist="true"/>
+ </property-group>
+
+ <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
+ <simple name="name" value="$(projectName)" />
+ <simple name="artifactExtension" value="exe" />
+ <simple name="isCProject" value="true" />
+ </process>
+
+ <process type="org.eclipse.cdt.core.CreateSourceFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="path" value="$(sourceDir)"/>
+ </process>
+
+ <process type = "org.eclipse.cdt.core.AddFile">
+ <simple name = "projectName" value="$(projectName)"/>
+ <complex name="file">
+ <simple name="source" value="src/Basename.upc"/>
+ <simple name ="target" value ="$(sourceDir)/$(projectName).upc"/>
+ <simple name ="replaceable" value="true"/>
+ </complex>
+ </process>
+</template> \ No newline at end of file

Back to the top