diff --git a/tools.templates/org.eclipse.tools.templates.ui/META-INF/MANIFEST.MF b/tools.templates/org.eclipse.tools.templates.ui/META-INF/MANIFEST.MF index 0fbe0ee9e4b..085d67dd9b5 100644 --- a/tools.templates/org.eclipse.tools.templates.ui/META-INF/MANIFEST.MF +++ b/tools.templates/org.eclipse.tools.templates.ui/META-INF/MANIFEST.MF @@ -1,7 +1,7 @@ Manifest-Version: 1.0 Automatic-Module-Name: org.eclipse.tools.templates.ui Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName +Bundle-Name: %Bundle-Name Bundle-SymbolicName: org.eclipse.tools.templates.ui;singleton:=true Bundle-Version: 2.0.100.qualifier Bundle-Activator: org.eclipse.tools.templates.ui.internal.Activator @@ -14,5 +14,4 @@ Bundle-RequiredExecutionEnvironment: JavaSE-17 Bundle-ActivationPolicy: lazy Export-Package: org.eclipse.tools.templates.ui, org.eclipse.tools.templates.ui.internal;x-internal:=true -Bundle-Vendor: %providerName -Bundle-Localization: plugin +Bundle-Vendor: %Bundle-Vendor diff --git a/tools.templates/org.eclipse.tools.templates.ui/OSGI-INF/l10n/bundle.properties b/tools.templates/org.eclipse.tools.templates.ui/OSGI-INF/l10n/bundle.properties new file mode 100644 index 00000000000..898a853d834 --- /dev/null +++ b/tools.templates/org.eclipse.tools.templates.ui/OSGI-INF/l10n/bundle.properties @@ -0,0 +1,16 @@ +############################################################################### +# Copyright (c) 2024 ArSysOp and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0 +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Alexander Fedorov (ArSysOp) - initial API and implementation +############################################################################### + +Bundle-Name = Template Engine UI +Bundle-Vendor = Eclipse CDT +extension-point.templates.name = New Element Templates \ No newline at end of file diff --git a/tools.templates/org.eclipse.tools.templates.ui/build.properties b/tools.templates/org.eclipse.tools.templates.ui/build.properties index 0aaaa03210b..8b5ce8f7452 100644 --- a/tools.templates/org.eclipse.tools.templates.ui/build.properties +++ b/tools.templates/org.eclipse.tools.templates.ui/build.properties @@ -1,9 +1,21 @@ +############################################################################### +# Copyright (c) 2016, 2024 Contributors to Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0 +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# See git history +############################################################################### source.. = src/ output.. = bin/ -bin.includes = META-INF/,\ - .,\ - about.html,\ - plugin.xml,\ +bin.includes = .,\ + META-INF/,\ + OSGI-INF/,\ schema/,\ - plugin.properties + about.html,\ + plugin.xml src.includes = about.html diff --git a/tools.templates/org.eclipse.tools.templates.ui/plugin.properties b/tools.templates/org.eclipse.tools.templates.ui/plugin.properties deleted file mode 100644 index fa61ce3fb08..00000000000 --- a/tools.templates/org.eclipse.tools.templates.ui/plugin.properties +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################# -# Copyright (c) 2017 QNX Software Systems and others. -# -# This program and the accompanying materials -# are made available under the terms of the Eclipse Public License 2.0 -# which accompanies this distribution, and is available at -# https://www.eclipse.org/legal/epl-2.0/ -# -# SPDX-License-Identifier: EPL-2.0 -################################################################################# - -pluginName=Template Engine UI -providerName=Eclipse CDT diff --git a/tools.templates/org.eclipse.tools.templates.ui/plugin.xml b/tools.templates/org.eclipse.tools.templates.ui/plugin.xml index 009fdc7a36b..633af410e84 100644 --- a/tools.templates/org.eclipse.tools.templates.ui/plugin.xml +++ b/tools.templates/org.eclipse.tools.templates.ui/plugin.xml @@ -1,6 +1,20 @@ + - + + diff --git a/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/Messages.java b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/Messages.java new file mode 100644 index 00000000000..12c8bb5f6bc --- /dev/null +++ b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/Messages.java @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2024 ArSysOp and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * Alexander Fedorov (ArSysOp) - initial API and implementation + *******************************************************************************/ +package org.eclipse.tools.templates.ui.internal; + +import org.eclipse.osgi.util.NLS; + +public class Messages extends NLS { + private static final String BUNDLE_NAME = Messages.class.getPackageName() + ".messages"; //$NON-NLS-1$ + public static String TemplateExtension_tag_all; + static { + // initialize resource bundle + NLS.initializeMessages(BUNDLE_NAME, Messages.class); + } + + private Messages() { + } +} diff --git a/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateExtension.java b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateExtension.java index e30692706ea..1610512ec75 100644 --- a/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateExtension.java +++ b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateExtension.java @@ -38,7 +38,7 @@ public class TemplateExtension { "templates"); //$NON-NLS-1$ // tags - Tag allTag = new Tag(Tag.ALL_ID, "All"); + Tag allTag = new Tag(Tag.ALL_ID, Messages.TemplateExtension_tag_all); tags.put(allTag.getId(), allTag); for (IConfigurationElement element : point.getConfigurationElements()) { diff --git a/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/messages.properties b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/messages.properties new file mode 100644 index 00000000000..35e8040d241 --- /dev/null +++ b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/messages.properties @@ -0,0 +1,14 @@ +############################################################################### +# Copyright (c) 2024 ArSysOp and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0 +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Alexander Fedorov (ArSysOp) - initial API and implementation +############################################################################### + +TemplateExtension_tag_all=All diff --git a/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/messages.properties b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/messages.properties index 20316146107..385e0d4da36 100644 --- a/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/messages.properties +++ b/tools.templates/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/messages.properties @@ -1,3 +1,15 @@ +############################################################################### +# Copyright (c) 2021, 2024 Contributors to Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License v. 2.0 which is available at +# https://www.eclipse.org/legal/epl-2.0 +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# See git history +############################################################################### ProjectImportConfigurator_Checking=Checking: {0} TemplateWizard_CannotBeCreated=Project cannot be created TemplateWizard_ErrorCreating=Error Creating Project