From f06220edb751660a0d58b81ccd57eeeaf83660e7 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: May 21 2016 21:01:21 +0000 Subject: Add module for Dev Toolset theme customisations. A webapp fragment that contains everything necessary to customise the infocenter for DTS. --- diff --git a/org.fedoraproject.infocenter.dts/.classpath b/org.fedoraproject.infocenter.dts/.classpath new file mode 100644 index 0000000..cf36b56 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/org.fedoraproject.infocenter.dts/.project b/org.fedoraproject.infocenter.dts/.project new file mode 100644 index 0000000..0679eec --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.project @@ -0,0 +1,34 @@ + + + org.fedoraproject.infocenter.dts + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/org.fedoraproject.infocenter.dts/.settings/org.eclipse.core.resources.prefs b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/org.fedoraproject.infocenter.dts/.settings/org.eclipse.jdt.core.prefs b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..6e80039 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/org.fedoraproject.infocenter.dts/.settings/org.eclipse.jdt.ui.prefs b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..b6ec1a7 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,60 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_functional_interfaces=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=true +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.insert_inferred_type_arguments=false +sp_cleanup.make_local_variable_final=true +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=false +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_redundant_type_arguments=true +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_anonymous_class_creation=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_lambda=true +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true +sp_cleanup.use_type_arguments=false diff --git a/org.fedoraproject.infocenter.dts/.settings/org.eclipse.m2e.core.prefs b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/org.fedoraproject.infocenter.dts/.settings/org.eclipse.pde.core.prefs b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.pde.core.prefs new file mode 100644 index 0000000..f29e940 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/.settings/org.eclipse.pde.core.prefs @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +pluginProject.extensions=false +resolve.requirebundle=false diff --git a/org.fedoraproject.infocenter.dts/META-INF/MANIFEST.MF b/org.fedoraproject.infocenter.dts/META-INF/MANIFEST.MF new file mode 100644 index 0000000..4bf1e31 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/META-INF/MANIFEST.MF @@ -0,0 +1,8 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-SymbolicName: org.fedoraproject.infocenter.dts;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-Vendor: %Bundle-Vendor +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Fragment-Host: org.eclipse.help.webapp;bundle-version="[3.7.0,4.0.0)" diff --git a/org.fedoraproject.infocenter.dts/OSGI-INF/l10n/bundle.properties b/org.fedoraproject.infocenter.dts/OSGI-INF/l10n/bundle.properties new file mode 100644 index 0000000..b8498d1 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/OSGI-INF/l10n/bundle.properties @@ -0,0 +1,3 @@ +#Properties file for org.fedoraproject.infocenter.dts +Bundle-Vendor = Fedora Project +Bundle-Name = Developer Toolset Infocenter Customization Fragment diff --git a/org.fedoraproject.infocenter.dts/banner/background.png b/org.fedoraproject.infocenter.dts/banner/background.png new file mode 100644 index 0000000..05a87ea Binary files /dev/null and b/org.fedoraproject.infocenter.dts/banner/background.png differ diff --git a/org.fedoraproject.infocenter.dts/banner/banner.css b/org.fedoraproject.infocenter.dts/banner/banner.css new file mode 100644 index 0000000..060b57b --- /dev/null +++ b/org.fedoraproject.infocenter.dts/banner/banner.css @@ -0,0 +1,50 @@ +html, body, div, span, h1, h2 { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + text-align: left; +} + +body { + background-image: url("background.png"); + background-color: #be171c; + background-repeat: no-repeat; + background-position: top right; +} + +div#outer { + height: 140px; + overflow: hidden; + display: table; + position: static; +} + +div#inner { + display: table-cell; + vertical-align: middle; + width: 100%; + position: static; +} + +@font-face { + font-family: "Overpass"; + font-style: normal; + font-weight: 800; + src: url("overpass_bold-web.ttf") format("truetype"); +} + +h1, h2 { + font-family: "Overpass", "Open Sans", Helvetica, sans-serif; + padding-left: 30px; + color: #ffffff; +} + +h1 { + font-size: 2.25em; +} + +h2 { + font-size: 1.25em; +} \ No newline at end of file diff --git a/org.fedoraproject.infocenter.dts/banner/banner.html b/org.fedoraproject.infocenter.dts/banner/banner.html new file mode 100644 index 0000000..ead6cc7 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/banner/banner.html @@ -0,0 +1,21 @@ + + + + + +Red Hat Developer Toolset + + + +
+
+
+

+ Red Hat Developer Toolset 4.1 +

+

Infocenter

+
+
+
+ + \ No newline at end of file diff --git a/org.fedoraproject.infocenter.dts/banner/overpass_bold-web.ttf b/org.fedoraproject.infocenter.dts/banner/overpass_bold-web.ttf new file mode 100644 index 0000000..82a1d30 Binary files /dev/null and b/org.fedoraproject.infocenter.dts/banner/overpass_bold-web.ttf differ diff --git a/org.fedoraproject.infocenter.dts/build.properties b/org.fedoraproject.infocenter.dts/build.properties new file mode 100644 index 0000000..dc95480 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/build.properties @@ -0,0 +1,10 @@ +source.. = src/ +bin.includes = META-INF/,\ + .,\ + OSGI-INF/,\ + fragment.xml,\ + banner/,\ + dts.ini +src.includes = fragment.xml,\ + banner/,\ + dts.ini diff --git a/org.fedoraproject.infocenter.dts/dts.ini b/org.fedoraproject.infocenter.dts/dts.ini new file mode 100644 index 0000000..9b0aff2 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/dts.ini @@ -0,0 +1,3 @@ +org.eclipse.help.base/banner=/org.fedoraproject.infocenter.dts/banner/banner.html +org.eclipse.help.base/banner_height=140 +org.eclipse.help.base/windowTitlePrefix=false \ No newline at end of file diff --git a/org.fedoraproject.infocenter.dts/fragment.xml b/org.fedoraproject.infocenter.dts/fragment.xml new file mode 100644 index 0000000..9ab0efa --- /dev/null +++ b/org.fedoraproject.infocenter.dts/fragment.xml @@ -0,0 +1,12 @@ + + + + + + + + + + diff --git a/org.fedoraproject.infocenter.dts/pom.xml b/org.fedoraproject.infocenter.dts/pom.xml new file mode 100644 index 0000000..7e8a3e3 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/pom.xml @@ -0,0 +1,11 @@ + + + 4.0.0 + + org.fedoraproject.infocenter + org.fedoraproject.infocenter.parent + 1.0.0-SNAPSHOT + + org.fedoraproject.infocenter.dts + eclipse-plugin + \ No newline at end of file diff --git a/org.fedoraproject.infocenter.dts/src/org/fedoraproject/infocenter/dts/DTSProduct.java b/org.fedoraproject.infocenter.dts/src/org/fedoraproject/infocenter/dts/DTSProduct.java new file mode 100644 index 0000000..d2630d0 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/src/org/fedoraproject/infocenter/dts/DTSProduct.java @@ -0,0 +1,43 @@ +package org.fedoraproject.infocenter.dts; + +import org.eclipse.core.runtime.IProduct; +import org.osgi.framework.Bundle; +import org.osgi.framework.FrameworkUtil; + +public class DTSProduct implements IProduct { + + @Override + public String getApplication() { + return "org.eclipse.help.base.infocenterApplication"; //$NON-NLS-1$ + } + + @Override + public String getName() { + return "Developer Toolset Infocenter"; //$NON-NLS-1$ + } + + @Override + public String getDescription() { + return null; + } + + @Override + public String getId() { + return "org.fedoraproject.infocenter.dts"; //$NON-NLS-1$ + } + + @Override + public String getProperty(String key) { + switch (key) { + case "preferenceCustomization": //$NON-NLS-1$ + return "dts.ini"; //$NON-NLS-1$ + default: + return null; + } + } + + @Override + public Bundle getDefiningBundle() { + return FrameworkUtil.getBundle(this.getClass()); + } +} diff --git a/org.fedoraproject.infocenter.dts/src/org/fedoraproject/infocenter/dts/ProductProvider.java b/org.fedoraproject.infocenter.dts/src/org/fedoraproject/infocenter/dts/ProductProvider.java new file mode 100644 index 0000000..d46b9d7 --- /dev/null +++ b/org.fedoraproject.infocenter.dts/src/org/fedoraproject/infocenter/dts/ProductProvider.java @@ -0,0 +1,17 @@ +package org.fedoraproject.infocenter.dts; + +import org.eclipse.core.runtime.IProduct; +import org.eclipse.core.runtime.IProductProvider; + +public class ProductProvider implements IProductProvider { + + @Override + public String getName() { + return "Developer Toolset Infocenter Product Provider"; //$NON-NLS-1$ + } + + @Override + public IProduct[] getProducts() { + return new IProduct[] { new DTSProduct() }; + } +} diff --git a/org.fedoraproject.infocenter.webapp/.classpath b/org.fedoraproject.infocenter.webapp/.classpath index 6be18c2..6239b9b 100644 --- a/org.fedoraproject.infocenter.webapp/.classpath +++ b/org.fedoraproject.infocenter.webapp/.classpath @@ -2,7 +2,7 @@ - + diff --git a/org.fedoraproject.infocenter.webapp/.settings/org.eclipse.core.resources.prefs b/org.fedoraproject.infocenter.webapp/.settings/org.eclipse.core.resources.prefs index e9441bb..f9fe345 100644 --- a/org.fedoraproject.infocenter.webapp/.settings/org.eclipse.core.resources.prefs +++ b/org.fedoraproject.infocenter.webapp/.settings/org.eclipse.core.resources.prefs @@ -1,3 +1,4 @@ eclipse.preferences.version=1 encoding//src/main/java=UTF-8 +encoding//src/test/java=UTF-8 encoding/=UTF-8