Skip to content

Commit

Permalink
[devel] Add branding for Eclipse-DSL.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Apr 29, 2020
1 parent 828b959 commit 5d671a1
Show file tree
Hide file tree
Showing 26 changed files with 1,506 additions and 6 deletions.
10 changes: 10 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/META-INF/MANIFEST.MF
@@ -0,0 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Bundle-Version: 0.11.0.qualifier
Bundle-SymbolicName: io.sarl.eclipse-dsl4sarl;singleton:=true
Automatic-Module-Name: io.sarl.eclipse_dsl4sarl
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy

@@ -0,0 +1,35 @@
#Properties file for io.sarl.eclipse-dsl4sarl

# This file is automatically generated from src-templates folder.
# Do not change the file content if the file is outside the src-templates folder.

Bundle-Vendor = SARL.io
Bundle-Name = Eclipse-DSL for SARL Developers
product.name = Eclipse-DSL for SARL Developers
about.general.text = Eclipse-DSL for SARL Developers\n\
\n\
Version: %sarlreleaseversion%\n\
Build id: %sarlBuildId% (%sarlspecificationreleasedate%)\n\
(c) Copyright %copyrightdate% %copyrighters%.\n\
Visit %website%\n\
\n\
Licensed 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.\
\n\
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.\
\n\
Eclipse logos are provided for use under the Eclipse logo and trademark guidelines \
https://www.eclipse.org/logotm/. \
Oracle and Java are trademarks or registered trademarks of Oracle and/or its affiliates. \
Other names may be trademarks of their respective owners.\n\
\n\
Splash screen image credits: vs148 @ https://www.shutterstock.com.\n\
\n\
This product includes software developed by other open source projects including \
the Eclipse Foundation http://www.eclipse.org, the Xtext library https://eclipse.org/Xtext/, \
the Guava Libraries https://code.google.com/p/guava-libraries, and \
the Apache Software Foundation https://www.apache.org.

3 changes: 3 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/about.ini
@@ -0,0 +1,3 @@
featureImage=icons/sarl_about_dialog.png
aboutText=%featureText
appName=%featureName
13 changes: 13 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/about.mappings
@@ -0,0 +1,13 @@
# about.mappings
# contains fill-ins for about.properties
# java.io.Properties file (ISO 8859-1 with "\" escapes)
# This file does not need to be translated.

# This file may be automatically generated.
# Do not change it if there no replacement variables below.

0=0.11.0-BETA
1=2014-2020
2=the original authors or authors
3=http://www.sarl.io

27 changes: 27 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/about.properties
@@ -0,0 +1,27 @@
# NLS_MESSAGEFORMAT_VAR

# ==============================================================================
# Do not change the properties between this line and the last line containing:
# %%% END OF TRANSLATED PROPERTIES %%%
# Instead, either redefine an existing property, or create a new property,
# append it to the end of the file, and change the code to use the new name.
# ==============================================================================

# about.properties
# contains externalized strings for about.ini
# java.io.Properties file (ISO 8859-1 with "\" escapes)
# fill-ins are supplied by about.mappings
# This file should be translated.

featureName=Eclipse-DSL for SARL Developers

featureText=Eclipse-DSL for SARL Developers \n\
Version: {featureVersion}\n\
Build id: {0}\n\
\n\
(c) Copyright {1} {2}.\n\
Visit {3}

# ==============================================================================
# %%% END OF TRANSLATED PROPERTIES %%%
# The above properties have been shipped for translation.
11 changes: 11 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/build.properties
@@ -0,0 +1,11 @@
source.. = src/,
bin.includes = META-INF/,\
.,\
plugin.xml,\
OSGI-INF/,\
splash.bmp,\
icons/,\
about.ini,\
about.mappings,\
about.properties
jre.compilation.profile = JavaSE-1.8
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/plugin.xml
@@ -0,0 +1,44 @@
<?eclipse version="3.0"?>

<plugin>
<extension
id="io_sarl_lang_sarl_dsl_product"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipse.ui.ide.workbench"
name="%product.name">
<property
name="aboutText"
value="%about.general.text">
</property>
<property
name="aboutImage"
value="icons/eclipse-about-banner.png">
</property>
<property
name="appName"
value="%product.name">
</property>
<property
name="startupProgressRect"
value="5,280,442,15">
</property>
<property
name="startupForegroundColor"
value="F3F3F3">
</property>
<property
name="startupMessageRect"
value="7,252,330,20">
</property>
<property
name="windowImages"
value="/io.sarl.eclipse-dsl4sarl/icons/sarl_16.png,/io.sarl.eclipse-dsl4sarl/icons/sarl_32.png,/io.sarl.eclipse-dsl4sarl/icons/sarl_48.png,/io.sarl.eclipse-dsl4sarl/icons/sarl_64.png,/io.sarl.eclipse-dsl4sarl/icons/sarl_128.png,/io.sarl.eclipse-dsl4sarl/icons/sarl_256.png">
</property>
<property
name="preferenceCustomization"
value="platform:/plugin/io.sarl.eclipse-dsl4sarl/plugin_customization.ini">
</property>
</product>
</extension>
</plugin>
34 changes: 34 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/plugin_customization.ini
@@ -0,0 +1,34 @@
######
# Splash

# Show the progress bar on the splash screen.
org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = true

######
# UI


# Show the memory monitor
org.eclipse.ui/SHOW_MEMORY_MONITOR=true

# Enable line number ruler in all textual editors
org.eclipse.ui.editors/lineNumberRuler=true

######
# Resources

# Enable refresh
org.eclipse.core.resources/refresh.enabled=true

# Enable the lightweight auto-refresh when accessing to a resource
org.eclipse.core.resources/refresh.lightweight.enabled=true

# Auto-build the resources
org.eclipse.core.resources/description.autobuilding=true

######
# Run/Debug

# Always launch the last launched application when clicking on the "launch" button
org.eclipse.debug.ui/org.eclipse.debug.ui.UseContextualLaunch=false

142 changes: 142 additions & 0 deletions main/coreplugins/io.sarl.eclipse-dsl4sarl/pom.xml
@@ -0,0 +1,142 @@
<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">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.sarl</groupId>
<artifactId>io.sarl.tycho-parent-ui</artifactId>
<version>0.11.0-SNAPSHOT</version>
<relativePath>../../../tycho-parent/tycho-parent-ui</relativePath>
</parent>

<artifactId>io.sarl.eclipse-dsl4sarl</artifactId>
<packaging>eclipse-plugin</packaging>
<name>Eclipse-DSL for SARL Developers</name>

<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<executions>
<execution>
<id>prepare-eclipse-aboutbox</id>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<file>${project.basedir}/about.mappings</file>
<regexFlags><regexFlag>MULTILINE</regexFlag></regexFlags>
<replacements>
<replacement>dId
<token>^(0 *= *)(.*)$</token>
<value>$1${sarl.buildId}</value>
</replacement>
<replacement>
<token>^(1 *= *)(.*)$</token>
<value>$1${project.inceptionYear}-${year}</value>
</replacement>
<replacement>
<token>^(2 *= *)(.*)$</token>
<value>$1${copyrighters}</value>
</replacement>
<replacement>
<token>^(3 *= *)(.*)$</token>
<value>$1${sarlUrl}</value>
</replacement>
</replacements>
</configuration>
</execution>
<execution>
<id>prepare-eclipse-buildproperties</id>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<file>${project.basedir}/build.properties</file>
<regexFlags><regexFlag>MULTILINE</regexFlag></regexFlags>
<replacements>
<replacement>
<token>^(jre\.compilation\.profile *= *)(.*)$</token>
<value>$1${sarl-dsl.min.jre.environment}</value>
</replacement>
</replacements>
</configuration>
</execution>
<execution>
<id>prepare-eclipse-manifestmf</id>
<phase>process-resources</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<file>${project.basedir}/META-INF/MANIFEST.MF</file>
<regexFlags><regexFlag>MULTILINE</regexFlag></regexFlags>
<replacements>
<replacement>
<token>^(Bundle-RequiredExecutionEnvironment: *)(.*)$</token>
<value>$1${sarl-run.min.jre.environment}</value>
</replacement>
</replacements>
</configuration>
</execution>
<execution>
<id>prepare-osgi-nls</id>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<basedir>${project.build.outputDirectory}/OSGI-INF/l10n</basedir>
<outputBasedir>.</outputBasedir>
<includes>
<include>*.properties</include>
</includes>
<replacements>
<replacement>
<token>%website%</token>
<value>${sarlUrl}</value>
</replacement>
<replacement>
<token>%sarlBuildId%</token>
<value>${sarl.buildId}</value>
</replacement>
<replacement>
<token>%copyrightdate%</token>
<value>${project.inceptionYear}-${year}</value>
</replacement>
<replacement>
<token>%copyrighters%</token>
<value>${copyrighters}</value>
</replacement>
<replacement>
<token>%sarlreleaseversion%</token>
<value>${sarl.release_version}</value>
</replacement>
<replacement>
<token>%sarlspecificationreleasedate%</token>
<value>${sarl.specification.release_date}</value>
</replacement>
<replacement>
<token>%mavencompilerversion%</token>
<value>${mavencompiler.version}</value>
</replacement>
<replacement>
<token>%targetjreenvironment%</token>
<value>${sarl-run.min.jre.environment}</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Binary file not shown.
1 change: 1 addition & 0 deletions main/coreplugins/pom.xml
Expand Up @@ -26,6 +26,7 @@
<module>io.sarl.lang.ui</module>
<module>io.sarl.eclipse</module>
<module>io.sarl.m2e</module>
<module>io.sarl.eclipse-dsl4sarl</module>
<module>io.sarl.eclipse-slf4j</module>
</modules>
</profile>
Expand Down
7 changes: 7 additions & 0 deletions main/features/io.sarl.baseplatform.dsl/feature.xml
Expand Up @@ -574,4 +574,11 @@ for the SARL DSL Environment
version="0.0.0"
unpack="false"/>

<plugin
id="io.sarl.eclipse-dsl4sarl"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>
Binary file added products/sarl-dsl/icons/sarl.icns
Binary file not shown.
Binary file added products/sarl-dsl/icons/sarl.ico
Binary file not shown.

0 comments on commit 5d671a1

Please sign in to comment.