Skip to content

Commit 7802942

Browse files
author
jantje
committed
checking in for backup #1126
1 parent d3b5850 commit 7802942

File tree

191 files changed

+53870
-5034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+53870
-5034
lines changed

io.sloeber.ManagedBuild.ui/.classpath

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
5+
<attributes>
6+
<attribute name="module" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
10+
<classpathentry kind="output" path="bin"/>
11+
</classpath>

io.sloeber.ManagedBuild.ui/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin/
2+
/target/

io.sloeber.ManagedBuild.ui/.project

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>io.sloeber.autoBuild.ui</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.m2e.core.maven2Builder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
31+
<nature>org.eclipse.pde.PluginNature</nature>
32+
<nature>org.eclipse.jdt.core.javanature</nature>
33+
</natures>
34+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Sloeber Managed Build user interface
4+
Bundle-SymbolicName: io.sloeber.autoBuild.ui;singleton:=true
5+
Bundle-Version: 4.4.1.qualifier
6+
Require-Bundle: org.eclipse.tools.templates.ui,
7+
org.eclipse.osgi,
8+
org.eclipse.cdt.cmake.core,
9+
org.eclipse.cdt.core;bundle-version="7.5.0",
10+
org.eclipse.core.runtime;bundle-version="3.26.0",
11+
org.eclipse.swt;bundle-version="3.121.0",
12+
org.eclipse.jface;bundle-version="3.27.0",
13+
org.eclipse.ui;bundle-version="3.201.100",
14+
org.eclipse.ui.ide;bundle-version="3.19.100",
15+
org.eclipse.tools.templates.freemarker;bundle-version="1.3.0",
16+
org.eclipse.core.resources,
17+
org.eclipse.cdt.ui,
18+
org.eclipse.core.filesystem
19+
Bundle-RequiredExecutionEnvironment: JavaSE-11
20+
Bundle-Vendor: Sloeber.io
21+
Bundle-ActivationPolicy: lazy
22+
Automatic-Module-Name: io.sloeber.core

io.sloeber.ManagedBuild.ui/plugin.xml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.6"?>
3+
<plugin>
4+
<extension
5+
point="org.eclipse.tools.templates.ui.templates">
6+
<tag
7+
id="io.sloeber.ManagedBuild.ui.tag1"
8+
label="autoMake">
9+
</tag>
10+
<template
11+
id="io.sloeber.ManagedBuild.ui.newProject.template"
12+
label="create new autoBuild project"
13+
wizard="io.sloeber.autoBuild.integrations.CDTProjectWizard2">
14+
<tagReference
15+
id="io.sloeber.ManagedBuild.ui.tagReference1">
16+
</tagReference>
17+
<description>
18+
Create a CDT project based on makefile build with automagically created makefile.
19+
(basically new managed build)
20+
</description>
21+
<tagReference
22+
id="org.eclipse.cdt.ui.cdtTag">
23+
</tagReference>
24+
</template>
25+
</extension>
26+
<!--
27+
#######################################################################################
28+
#######################################################################################
29+
## ##
30+
## Extension Points ##
31+
## ##
32+
#######################################################################################
33+
#######################################################################################
34+
-->
35+
36+
37+
38+
39+
40+
<!-- C++ Projects -->
41+
42+
43+
44+
<!--
45+
#######################################################################################
46+
# Arduino Nature #
47+
#######################################################################################
48+
-->
49+
50+
<!--
51+
#######################################################################################
52+
# Launch Configuration #
53+
#######################################################################################
54+
-->
55+
<!-- Arduino Launch Configuration -->
56+
<!--
57+
#######################################################################################
58+
# Arduino Plugin Commands #
59+
#######################################################################################
60+
-->
61+
62+
63+
64+
65+
66+
<!--
67+
68+
#######################################################################################
69+
#######################################################################################
70+
## ##
71+
## BuildDef ##
72+
## ##
73+
#######################################################################################
74+
#######################################################################################
75+
-->
76+
77+
78+
79+
80+
81+
<!--
82+
#######################################################################################
83+
# Content Types #
84+
#######################################################################################
85+
-->
86+
87+
<!--
88+
#######################################################################################
89+
# ino and pde association
90+
# this makes that the *.ino and *.pde files are treated as cpp files
91+
#
92+
#######################################################################################
93+
-->
94+
95+
96+
</plugin>
97+
98+
99+
100+
101+

io.sloeber.ManagedBuild.ui/pom.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>io.sloeber.arduino-eclipse-plugin</groupId>
6+
<artifactId>io.sloeber.parent</artifactId>
7+
<version>4.4.1-SNAPSHOT</version>
8+
<relativePath>../io.sloeber.parent</relativePath>
9+
</parent>
10+
11+
<artifactId>io.sloeber.core</artifactId>
12+
<packaging>eclipse-plugin</packaging>
13+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2007, 2010 Intel Corporation and others.
3+
*
4+
* This program and the accompanying materials
5+
* are made available under the terms of the Eclipse Public License 2.0
6+
* which accompanies this distribution, and is available at
7+
* https://www.eclipse.org/legal/epl-2.0/
8+
*
9+
* SPDX-License-Identifier: EPL-2.0
10+
*
11+
* Contributors:
12+
* Intel Corporation - initial API and implementation
13+
* IBM Corporation
14+
*******************************************************************************/
15+
package io.sloeber.autoBuild.integrations;
16+
17+
import org.eclipse.cdt.core.CCProjectNature;
18+
import org.eclipse.cdt.core.CCorePlugin;
19+
import org.eclipse.cdt.core.CProjectNature;
20+
import org.eclipse.core.resources.IProject;
21+
import org.eclipse.core.runtime.CoreException;
22+
import org.eclipse.core.runtime.SubMonitor;
23+
24+
/**
25+
* The wizard to create new MBS C++ Project.
26+
*/
27+
public class CCProjectWizard extends CDTCommonProjectWizard {
28+
29+
public CCProjectWizard() {
30+
super(Messages.NewModelProjectWizard_2, Messages.NewModelProjectWizard_3);
31+
}
32+
33+
@Override
34+
public String[] getNatures() {
35+
return new String[] { CProjectNature.C_NATURE_ID, CCProjectNature.CC_NATURE_ID };
36+
}
37+
38+
@Override
39+
protected IProject continueCreation(IProject prj) {
40+
SubMonitor subMonitor = SubMonitor.convert(continueCreationMonitor, Messages.CCProjectWizard_0, 2);
41+
try {
42+
CProjectNature.addCNature(prj, subMonitor.split(1));
43+
CCProjectNature.addCCNature(prj, subMonitor.split(1));
44+
} catch (CoreException e) {
45+
}
46+
return prj;
47+
}
48+
49+
@Override
50+
public String[] getContentTypeIDs() {
51+
return new String[] { CCorePlugin.CONTENT_TYPE_CXXSOURCE, CCorePlugin.CONTENT_TYPE_CXXHEADER };
52+
}
53+
54+
}

0 commit comments

Comments
 (0)