diff --git a/.gitignore b/.gitignore index 6f1f8c3..487bc5c 100644 --- a/.gitignore +++ b/.gitignore @@ -14,9 +14,11 @@ bin/ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* -# P2 Update Site project -/com.wdev91.eclipse.copyright.site/features/ -/com.wdev91.eclipse.copyright.site/plugins/ - # Maven target/ +.polyglot* + +# Eclipse +.project +.classpath +.settings/ diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 0000000..7f3c742 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,8 @@ + + + + org.eclipse.tycho + tycho-build + ${tycho.version} + + diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000..31115e6 --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1 @@ +-Dtycho.version=4.0.8 diff --git a/README.adoc b/README.adoc deleted file mode 100644 index 4c080bf..0000000 --- a/README.adoc +++ /dev/null @@ -1,43 +0,0 @@ -//tag::vardef[] -:gh-repo-owner: jmini -:gh-repo-name: Eclipse-Copyright-Generator - -:project-name: Eclipse Copyright Generator -:git-branch: master -:twitter-handle: j2r2b -:license: http://www.eclipse.org/legal/epl-v10.html -:license-name: Eclipse Public License - v 1.0 - -:git-repository: {gh-repo-owner}/{gh-repo-name} -:homepage: https://{gh-repo-owner}.github.io/{gh-repo-name} -:issues: https://github.com/{git-repository}/issues -//end::vardef[] - -//tag::header[] -= {project-name} -Plugin for Eclipse IDE to add and manage copyright headers at the beginning of the source files -//end::header[] - -//tag::description[] -== Description -Fork of the link:http://sourceforge.net/projects/eclipsecopyrigh/[Eclipse Copyright Generator project] on sourceforge. - -Initial work by Eric Wuillai. -Contributors: Jeremie Bresson, Matthew Krupcale. - -//end::description[] -Read more about installation, usage on the link:{homepage}[project home page]. - -//tag::contact-section[] -== Get in touch - -Use the link:{issues}[{project-name} issue tracker] on GitHub. - -You can also contact me on Twitter: link:https://twitter.com/{twitter-handle}[@{twitter-handle}] -//end::contact-section[] - -//tag::license-section[] -== License - -link:{license}[{license-name}] -//end::license-section[] diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ac601d --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# Eclipse Copyright Generator + +This is an Eclipse extension to help generating and updating copyright in files. + +## History + +Fork of [Eclipse Copyright Generator project](https://github.com/jmini/Eclipse-Copyright-Generator) on Github, which is a fork of the [Eclipse Copyright Generator project](http://sourceforge.net/projects/eclipsecopyrigh/) on sourceforge. + +Initial work by Eric Wuillai. Contributors: Jeremie Bresson, Matthew Krupcale, Roger Chen. + +## Build + +This project uses [Tycho](https://github.com/eclipse-tycho/tycho) with [Maven](https://maven.apache.org/) to build. It requires Maven 3.9.0 or higher version. + +Dev build: + +``` +mvn clean verify +``` + +Release build: + +``` +mvn clean org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.0.0 verify +``` + +## Install + +Refer to the original Github pages at https://jmini.github.io/Eclipse-Copyright-Generator/. + +Bintray is no longer available. This project will release the artifacts in Github releases instead. + diff --git a/com.wdev91.eclipse.copyright.feature/.project b/com.wdev91.eclipse.copyright.feature/.project deleted file mode 100644 index 0ce60d4..0000000 --- a/com.wdev91.eclipse.copyright.feature/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - com.wdev91.eclipse.copyright.feature - - - - - - org.eclipse.pde.FeatureBuilder - - - - - - org.eclipse.pde.FeatureNature - - diff --git a/com.wdev91.eclipse.copyright.site/.project b/com.wdev91.eclipse.copyright.site/.project deleted file mode 100644 index 74568e8..0000000 --- a/com.wdev91.eclipse.copyright.site/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - com.wdev91.eclipse.copyright.site - - - - - - org.eclipse.pde.UpdateSiteBuilder - - - - - - org.eclipse.pde.UpdateSiteNature - - diff --git a/com.wdev91.eclipse.copyright.site/site.xml b/com.wdev91.eclipse.copyright.site/site.xml deleted file mode 100644 index d112052..0000000 --- a/com.wdev91.eclipse.copyright.site/site.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/com.wdev91.eclipse.copyright/.classpath b/com.wdev91.eclipse.copyright/.classpath deleted file mode 100644 index 64c5e31..0000000 --- a/com.wdev91.eclipse.copyright/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/com.wdev91.eclipse.copyright/.project b/com.wdev91.eclipse.copyright/.project deleted file mode 100644 index ade11ea..0000000 --- a/com.wdev91.eclipse.copyright/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.wdev91.eclipse.copyright - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/com.wdev91.eclipse.copyright/.settings/com.wdev91.eclipse.copyright.xml b/com.wdev91.eclipse.copyright/.settings/com.wdev91.eclipse.copyright.xml deleted file mode 100644 index 580a957..0000000 --- a/com.wdev91.eclipse.copyright/.settings/com.wdev91.eclipse.copyright.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - Eric Wuillai - - diff --git a/com.wdev91.eclipse.copyright/.settings/org.eclipse.jdt.core.prefs b/com.wdev91.eclipse.copyright/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 416f4fb..0000000 --- a/com.wdev91.eclipse.copyright/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,11 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/com.wdev91.eclipse.copyright/.settings/org.eclipse.ltk.core.refactoring.prefs b/com.wdev91.eclipse.copyright/.settings/org.eclipse.ltk.core.refactoring.prefs deleted file mode 100644 index 421afd9..0000000 --- a/com.wdev91.eclipse.copyright/.settings/org.eclipse.ltk.core.refactoring.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Tue Jan 15 19:01:40 CET 2008 -eclipse.preferences.version=1 -org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/com.wdev91.eclipse.copyright/.settings/org.eclipse.wst.validation.prefs b/com.wdev91.eclipse.copyright/.settings/org.eclipse.wst.validation.prefs deleted file mode 100644 index 844072f..0000000 --- a/com.wdev91.eclipse.copyright/.settings/org.eclipse.wst.validation.prefs +++ /dev/null @@ -1,6 +0,0 @@ -#Tue Jan 15 19:01:42 CET 2008 -DELEGATES_PREFERENCE=delegateValidatorListorg.eclipse.wst.xsd.core.internal.validation.eclipse.XSDDelegatingValidator\=org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator;org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLDelegatingValidator\=org.eclipse.wst.wsdl.validation.internal.eclipse.Validator; -USER_BUILD_PREFERENCE=enabledBuildValidatorListorg.eclipse.wst.wsi.ui.internal.WSIMessageValidator;org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLDelegatingValidator;org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator;org.eclipse.jst.jsp.core.internal.validation.JSPContentValidator;org.eclipse.wst.dtd.core.internal.validation.eclipse.Validator;org.eclipse.jst.jsf.validation.internal.JSPSemanticsValidator;org.eclipse.wst.xsd.core.internal.validation.eclipse.XSDDelegatingValidator;org.eclipse.wst.html.internal.validation.HTMLValidator;org.eclipse.wst.xml.core.internal.validation.eclipse.Validator;org.eclipse.jst.jsf.validation.internal.appconfig.AppConfigValidator; -USER_MANUAL_PREFERENCE=enabledManualValidatorListorg.eclipse.wst.wsi.ui.internal.WSIMessageValidator;org.eclipse.wst.wsdl.validation.internal.eclipse.WSDLDelegatingValidator;org.eclipse.jst.jsp.core.internal.validation.JSPBatchValidator;org.eclipse.jst.jsp.core.internal.validation.JSPContentValidator;org.eclipse.wst.dtd.core.internal.validation.eclipse.Validator;org.eclipse.jst.jsf.validation.internal.JSPSemanticsValidator;org.eclipse.wst.xsd.core.internal.validation.eclipse.XSDDelegatingValidator;org.eclipse.wst.html.internal.validation.HTMLValidator;org.eclipse.wst.xml.core.internal.validation.eclipse.Validator;org.eclipse.jst.jsf.validation.internal.appconfig.AppConfigValidator; -USER_PREFERENCE=overrideGlobalPreferencesfalse -eclipse.preferences.version=1 diff --git a/docs/.project b/docs/.project deleted file mode 100644 index c1097b1..0000000 --- a/docs/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - docs - - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - - diff --git a/docs/gh-pages_pages.txt b/docs/gh-pages_pages.txt deleted file mode 100644 index 64233a9..0000000 --- a/docs/gh-pages_pages.txt +++ /dev/null @@ -1 +0,0 @@ -index.html \ No newline at end of file diff --git a/docs/pom.xml b/docs/pom.xml deleted file mode 100644 index 9e5a6f0..0000000 --- a/docs/pom.xml +++ /dev/null @@ -1,163 +0,0 @@ - - 4.0.0 - - com.wdev91.eclipse.copyright - docs - 1.5.3 - pom - - - - bintray.jmini.maven - http://dl.bintray.com/jmini/maven/ - - true - - - false - - - - - - UTF-8 - 1.5.3 - 1.5.4 - 3.0.0 - 9.0.5.0 - github - - jmini - Eclipse-Copyright-Generator - Update the 'gh-pages' branch. - - - - - - - - org.asciidoctor - asciidoctor-maven-plugin - ${asciidoctor.maven.plugin.version} - - - org.jruby - jruby-complete - ${jruby.version} - - - org.asciidoctor - asciidoctorj - ${asciidoctorj.version} - - - com.bsiag.asciidoctorj - gh-edit - ${asciidoctorj.gh-edit.version} - - - - src - html5 - coderay - - font - true - - - - - true - left - 3 - ${project.build.sourceDirectory} - ${project.version} - ${project.version} - - - - - asciidoc-to-html - generate-resources - - process-asciidoc - - - - - - - - com.bsiag.htmltools - htmltools-maven-plugin - 1.1.4 - - - process-resources - - htmltools - - - ${project.build.directory}/gh-pages-docs - ../eclipse_help/help-pages.txt - - - ${project.build.directory}/generated-docs - false - false - - ${project.basedir}/gh-pages_pages.txt - - - - - - - - - - - - com.github.github - site-maven-plugin - 0.12 - - ${commit.message} - ${project.build.directory}/gh-pages-docs - ${github.repository.name} - ${github.repository.owner} - false - - **/*.jsp - **/web.xml - - - - - - site - - site - - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - mvn - - clean:clean - asciidoctor:process-asciidoc - site:site - clean:clean - - - - - - diff --git a/docs/src/config02.png b/docs/src/config02.png deleted file mode 100644 index a21c335..0000000 Binary files a/docs/src/config02.png and /dev/null differ diff --git a/docs/src/config03.png b/docs/src/config03.png deleted file mode 100644 index 34966ee..0000000 Binary files a/docs/src/config03.png and /dev/null differ diff --git a/docs/src/config04.png b/docs/src/config04.png deleted file mode 100644 index 9d9faea..0000000 Binary files a/docs/src/config04.png and /dev/null differ diff --git a/docs/src/config05.png b/docs/src/config05.png deleted file mode 100644 index 61d5cf2..0000000 Binary files a/docs/src/config05.png and /dev/null differ diff --git a/docs/src/guide04.png b/docs/src/guide04.png deleted file mode 100644 index 0bec225..0000000 Binary files a/docs/src/guide04.png and /dev/null differ diff --git a/docs/src/guide05.png b/docs/src/guide05.png deleted file mode 100644 index 0519d9a..0000000 Binary files a/docs/src/guide05.png and /dev/null differ diff --git a/docs/src/guide06.png b/docs/src/guide06.png deleted file mode 100644 index 803d835..0000000 Binary files a/docs/src/guide06.png and /dev/null differ diff --git a/docs/src/guide09.png b/docs/src/guide09.png deleted file mode 100644 index d29f918..0000000 Binary files a/docs/src/guide09.png and /dev/null differ diff --git a/docs/src/guide10.png b/docs/src/guide10.png deleted file mode 100644 index 1afb3d6..0000000 Binary files a/docs/src/guide10.png and /dev/null differ diff --git a/docs/src/guide11.png b/docs/src/guide11.png deleted file mode 100644 index ccdeea5..0000000 Binary files a/docs/src/guide11.png and /dev/null differ diff --git a/docs/src/guide20.png b/docs/src/guide20.png deleted file mode 100644 index 9e2b6d4..0000000 Binary files a/docs/src/guide20.png and /dev/null differ diff --git a/docs/src/guide21.png b/docs/src/guide21.png deleted file mode 100644 index e52b2de..0000000 Binary files a/docs/src/guide21.png and /dev/null differ diff --git a/docs/src/index.adoc b/docs/src/index.adoc deleted file mode 100644 index 08b3512..0000000 --- a/docs/src/index.adoc +++ /dev/null @@ -1,52 +0,0 @@ -:experimental: -:github-readme: ../../README.adoc - -include::{github-readme}[tags=vardef] - -:projectpage: https://github.com/{git-repository} -:bintray: https://bintray.com/jmini/Eclipse-Copyright-Generator - -include::{github-readme}[tags=header] - -== URLs - -* link:{homepage}[Project home] (this page) -* link:{projectpage}[GitHub project] -* link:{bintray}[P2 repository on Bintray] -* link:{issues}[Issue tracker] - -TIP: Do you want to improve this page? Please git-link:self[edit it on GitHub]. - -Current version: {last-released-version} - -include::{github-readme}[tags=description] - -=== Installation - -Use the P2 Repository hosted on Bintray: - ----- -https://dl.bintray.com/jmini/Eclipse-Copyright-Generator/ ----- - -In your Eclipse IDE, just select menu:Help[Install New Software...]. -Enter the P2 Update Site URL in the _Work with_ field and select the _Copyright Wizard_ in the list. - -image::install.png[Install New Software windows] - -=== Usage - -include::wizard.adoc[leveloffset="+2"] - -include::prefs_project.adoc[leveloffset="+2"] - -include::prefs_copyright.adoc[leveloffset="+2"] - -include::prefs_formats.adoc[leveloffset="+2"] - - - -include::{github-readme}[tags=contact-section] - -include::{github-readme}[tags=license-section] - diff --git a/docs/src/install.png b/docs/src/install.png deleted file mode 100644 index 61199ed..0000000 Binary files a/docs/src/install.png and /dev/null differ diff --git a/docs/src/menu.png b/docs/src/menu.png deleted file mode 100644 index 64e0f0a..0000000 Binary files a/docs/src/menu.png and /dev/null differ diff --git a/docs/src/prefs_copyright.adoc b/docs/src/prefs_copyright.adoc deleted file mode 100644 index e746fae..0000000 --- a/docs/src/prefs_copyright.adoc +++ /dev/null @@ -1,70 +0,0 @@ -== Copyright preference page - -The Copyright parameters allows one to define a set of standard licenses, including the text to be placed in the comment header of files, as well as a license file to add to the projects. - - -image::config02.png[] - -[cols="2*", options="header"] -|=== - -|Parameter -|Description - -|Owner -|Sets the value of the substitution variable `${owner}`. If not defined, it will take by default the same value that `${user}` variable. - -|Licenses -|List of pre-configured licenses. Selecting an item on this list updates the fields in tabs. - -|Header text -|Tab to define the text of the comment to be placed in the header of files. This text may contain substitution variables, which will be replaced by their values at the time of insertion of the comment in each target file. The text of the comment is defined line by line. It should not contain comment format characters specific to a file type (eg. `/* */`). - -The usable substitution variables are: - -`${owner}` - Value of the owner parameter - -`${user}` - The OS user name - -`${year}` - The current year - -`${file_name}` - Name of the file on which the header is applied - -`${file_absolute_path}` - Absolute path of the file on which the header is applied - -`${file_path}` - Path of the file on which the header is applied, relative to the project root - -`${project_name}` - Name of the project containing the file on which the header is applied - - - -|License file -|Tab to set the (optional) license file to add to the projects. -|=== - -The *License file* tab allows you to associate a license file to a copyright definition: - -image:config03.png[] - -[cols="2*", options="header"] -|=== - -|Parameter -|Description - -|File name -|Default name of the license file. The file name may be changed if desired by the user within the parameters of the wizard. - -|File content -|Text of the license. If the wanted file format is formatted, such as HTML, the text must contain all the formatting tags. The contents of the file is not interpreted, so the substitution variables do not apply here. -|=== -The plugin is preconfigured with headers and licenses files for several open source licenses: Apache, Boost, BSD, (A)GPL, LGPL, MIT, and Mozilla. It is possible to add, change or delete any copyrights with the buttons Add, Modify, and Delete: - -* Add - Add a new Copyright. A dialog box opens for the input of the label text under which the Copyright will be registered. -+ -image:config04.png[] -* Modify - Changing the label text of the copyright selected from the list. -* Delete - Remove the copyright selected from the list. - -The *'Restore Defaults'* button will reload the default copyrights configuration file provided with the plug-in. All custom texts and copyrights will be lost. - diff --git a/docs/src/prefs_formats.adoc b/docs/src/prefs_formats.adoc deleted file mode 100644 index 8186a4f..0000000 --- a/docs/src/prefs_formats.adoc +++ /dev/null @@ -1,56 +0,0 @@ -:plus: + - -== Headers formats preference page - -The Header formats parameters are used to define the applicable format of comment on headers for different types of files. -The recognition of the type of file is based on the Eclipse ContentType. - -The formats apply only on the content in text format. -If a format is not set on a ContentType, it inherits the format of its parent, and so on recursively until basic type Text. - -image::config05.png[] - -To define a particular format on a file type, select the correspondent ContentType in the tree, and enter the definition of the format: - -[cols="2*", options="header"] -|=== - -|Parameter -|Description - -|Exclude this type from copyrights -|If checked, all files defined by this ContentType will be automatically excluded by the wizard and will not have a copyright header. All other fields are then disabled. - -|First line -|Format of the first line of the comment header. Typically this line contains no text and is composed of characters to draw a dividing line. - -|Line prefix -|Format for the beginning of a comment line. This string will be placed by concatenation before all the lines of comment text defined in a text of copyrigt header, including blank lines. - -|Last line -|Format of the last line of the comment header. Typically this line contains no text and is composed of characters to draw a dividing line. - -|Line format comment -|Flag indicating if the comment header is in line format (checked) or block format (unchecked). For a comment in line format, it is important to define a valid "Line prefix" for the target language. - -|Do not override the first line -|Flag indicating whether, when inserting a comment in a file of the selected type, the comment must begin on the first line (unchecked) or on the second line (checked). - -Some languages require an instruction or a comment of a particular format on the first line of a source file. -When checked, the content of the first line will be preserved by the wizard. - -|First line pattern -|Regular expression pattern to apply on the first line. -If the line matches, the comment is inserted after the line, otherwise it is inserted before. -This pattern is optional. If it is left empty, the first line is always skipped before to insert the comment header. - -The regular expression must respect the syntax defined by the Pattern java class. -|=== -The labels to the right of the text entry fields indicate the length of the current content of the fields. These labels are particularly useful for long lines and lines containing spaces at the end. - -The *Clear* button erases completely the format definition of the selected ContentType. It then inherits the format of its parent. - -The *'Restore Defaults'* button will reload the default formats definitions provided with the plug-in. -All custom formats will be lost. -By default the plug-in defines formats for 'Text', 'C Source File', 'C Header File' , 'C{plus}{plus} Source File' 'C{plus}{plus} Header File', 'Java Source File' and 'XML' content types, and excludes 'JAR Manifest File', 'ANT buildfile' and all content types defined by PDE and WTP plug-ins. - diff --git a/docs/src/prefs_project.adoc b/docs/src/prefs_project.adoc deleted file mode 100644 index 63bc59f..0000000 --- a/docs/src/prefs_project.adoc +++ /dev/null @@ -1,21 +0,0 @@ -== Project copyright properties page - -Copyright settings can be defined at the level of each project too, in the project properties. When defined, those settings are applied by default by the copyright wizard. - -To define project settings, open the project properties dialog and select the Copyright category. The properties page displayed contains two tabs. - - -image::guide20.png[] - -Copyright settings are disabled by default. To enable, select the *'Enable project specific settings'* checkbox. When enabled, a popup message is displayed proposing to import in the project settings the header formats definitions of the workspace. If you respond No, you will have to define all the header format, including the root Text content type. - - -image::guide21.png[] - -When project settings are selected, the two tabs are enabled: - -* *Header text*- The first tab allows one to define the header text that will be used by default for all the files in the project on which the wizard will apply a copyright. The same substitution variables that are in workspace preferences can be used here. -* *Header formats*- The second tab allows one to define the header comment format for all the content types deriving of the root Text type. This tab works exactly as the workspace preferences one. - -The project copyright settings are saved in a file stored in the .settings directory of the project. Then this file can be saved in a SCM tool like CVS or Subversion and shared by a team. - diff --git a/docs/src/step1.png b/docs/src/step1.png deleted file mode 100644 index 40f6b97..0000000 Binary files a/docs/src/step1.png and /dev/null differ diff --git a/docs/src/step2.png b/docs/src/step2.png deleted file mode 100644 index f5ec874..0000000 Binary files a/docs/src/step2.png and /dev/null differ diff --git a/docs/src/step3.png b/docs/src/step3.png deleted file mode 100644 index f85af59..0000000 Binary files a/docs/src/step3.png and /dev/null differ diff --git a/docs/src/wizard.adoc b/docs/src/wizard.adoc deleted file mode 100644 index 45f2fb6..0000000 --- a/docs/src/wizard.adoc +++ /dev/null @@ -1,100 +0,0 @@ -== Copyright wizard - -The wizard is launched from the menu: *Project -> Copyright Wizard...* - -image::menu.png[Apply copyright menu] - -=== First page - Projects selection - -The first page of the wizard lets you select one or more projects on which to apply the copyright. - -image::step1.png[Wizard Step 1] - -[cols="2*", options="header"] -|=== - -|Parameter -|Description - -|Projects selection list -|Projects having copyright settings are marked in the selection list by a "\(C)" postfix on the projet name. - -|Override projects copyright settings -|If checked, all projects copyright settings (headers text and formats) defined on selected projects will be override by the settings defined in the following page of the wizard. - -|Override only the header comment text -|This checkbox is enabled only if the previous one is checked. If checked, the override of project copyright settings is limited to the header comment text. All the header formats defined in the projects preferences will be used by the wizard for the corresponding projects. -|=== -=== Second page - Copyright parameters - -The second page of the wizard lets you define the parameters of copyright to be applied to the selected projects. It is possible to define a completely specific copyright, or select a preconfigured copyright in the preferences of the wizard. - -image::step2.png[Wizard Step 2] - -[cols="2*", options="header"] -|=== - -|Parameter -|Description - -|Copyright type -|Selection list of copyright to apply. -This list allows you to select one of the preconfigured copyrights in the preferences, or to choose the definition of a specific copyright (--- Custom copyright ---). - -image:guide04.png[] - -|Copyright header text -|Text of comment header to be applied to the selected files. -This field is pre-initialized with the text defined in preferences for the selected copyright. -It may, however, be changed if desired. - -image:guide05.png[] - -The text should not contain formatting comment characters. - -|Include files -|Pattern of filenames on which apply the comment header. -If leaved empty, it is equivalent to "*" and all resources will be selected. -It is possible to give several patterns, separated by commas. -Then all resources corresponding at least to one of the patterns will be selected. - -image:guide06.png[] - -|Exclude files -|Pattern of filenames to exclude from the selection defined by the include pattern. -If leaved empty, there is no exclusion. -It is possible to give several patterns, separated by commas. -Then all resources corresponding at least to one of the patterns will be excluded. - -image:guide11.png[] - -|Replace existing headers -|This flag is used to indicate whether the wizard will replace the existing header files (checked) or if they should not be modified (unchecked). -The recognition of the existence of a header comment in a file is made by comparing the 5 first characters in the first line of the file (or the second one if the parameter "Do not override the first line" is checked in the corresponding format) with the 5 first characters of the first line defined in the header comment format. - -|Add license file if not exists -|This flag allows you to add to selected projects a license file if no file with the same name already exists. This parameter is usable only for preconfigured copyrights having a license file defined. - -|License file -|Name and path of the license file to create. This parameter is used only if the previous parameter has been selected. It is initialized by the file name defined in preferences settings for the selected copyright. -|=== -=== Third page - Files selection - -The wizard filters with the files patterns the files on which to apply the comment header. If the "Replace existing headers" has been checked, the files containing already a comment header are eligible for treatment. Otherwise they are also excluded from the pre-selection. - -The last page of the wizard enables you to refine the selection. It presents the files filtered by the wizard. - -image::step3.png[Wizard Step 3] - -The user has the possibility to unselect files or directories on which apply the comment header. In the previous screenshot, files `config.properties` and `Sample2.java` were unselected and will therefore not be treated. - -Finally click on *Finish* to start treatment on the selected files. - -Example Java file before treatment: - -image::guide09.png[] - -Example Java file after treatment: - -image::guide10.png[] - diff --git a/com.wdev91.eclipse.copyright.feature/build.properties b/features/com.wdev91.eclipse.copyright.feature/build.properties similarity index 100% rename from com.wdev91.eclipse.copyright.feature/build.properties rename to features/com.wdev91.eclipse.copyright.feature/build.properties diff --git a/com.wdev91.eclipse.copyright.feature/feature.properties b/features/com.wdev91.eclipse.copyright.feature/feature.properties similarity index 100% rename from com.wdev91.eclipse.copyright.feature/feature.properties rename to features/com.wdev91.eclipse.copyright.feature/feature.properties diff --git a/com.wdev91.eclipse.copyright.feature/feature.xml b/features/com.wdev91.eclipse.copyright.feature/feature.xml similarity index 95% rename from com.wdev91.eclipse.copyright.feature/feature.xml rename to features/com.wdev91.eclipse.copyright.feature/feature.xml index 00bc5f6..3dc59de 100644 --- a/com.wdev91.eclipse.copyright.feature/feature.xml +++ b/features/com.wdev91.eclipse.copyright.feature/feature.xml @@ -2,7 +2,7 @@ @@ -57,9 +57,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + version="0.0.0"/> diff --git a/com.wdev91.eclipse.copyright/META-INF/MANIFEST.MF b/plugins/com.wdev91.eclipse.copyright/META-INF/MANIFEST.MF similarity index 73% rename from com.wdev91.eclipse.copyright/META-INF/MANIFEST.MF rename to plugins/com.wdev91.eclipse.copyright/META-INF/MANIFEST.MF index 1fccc9a..dd3c843 100644 --- a/com.wdev91.eclipse.copyright/META-INF/MANIFEST.MF +++ b/plugins/com.wdev91.eclipse.copyright/META-INF/MANIFEST.MF @@ -1,15 +1,16 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 +Automatic-Module-Name: com.wdev91.eclipse.copyright Bundle-Name: %pluginName Bundle-SymbolicName: com.wdev91.eclipse.copyright;singleton:=true -Bundle-Version: 1.5.3 +Bundle-Version: 2.0.0 Bundle-Activator: com.wdev91.eclipse.copyright.Activator Bundle-Vendor: %providerName Require-Bundle: org.eclipse.core.runtime;bundle-version="3.5.0", org.eclipse.core.resources;bundle-version="3.5.0", - org.eclipse.ui;bundle-version="3.5.0", + org.eclipse.ui;bundle-version="3.116.0", org.eclipse.ui.ide Eclipse-LazyStart: true Bundle-ActivationPolicy: lazy Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-RequiredExecutionEnvironment: JavaSE-17 diff --git a/com.wdev91.eclipse.copyright/about.html b/plugins/com.wdev91.eclipse.copyright/about.html similarity index 100% rename from com.wdev91.eclipse.copyright/about.html rename to plugins/com.wdev91.eclipse.copyright/about.html diff --git a/com.wdev91.eclipse.copyright/build.properties b/plugins/com.wdev91.eclipse.copyright/build.properties similarity index 100% rename from com.wdev91.eclipse.copyright/build.properties rename to plugins/com.wdev91.eclipse.copyright/build.properties diff --git a/com.wdev91.eclipse.copyright/contexts.xml b/plugins/com.wdev91.eclipse.copyright/contexts.xml similarity index 100% rename from com.wdev91.eclipse.copyright/contexts.xml rename to plugins/com.wdev91.eclipse.copyright/contexts.xml diff --git a/com.wdev91.eclipse.copyright/epl-v10.html b/plugins/com.wdev91.eclipse.copyright/epl-v10.html similarity index 100% rename from com.wdev91.eclipse.copyright/epl-v10.html rename to plugins/com.wdev91.eclipse.copyright/epl-v10.html diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/config02.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config02.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/config02.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config02.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/config03.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config03.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/config03.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config03.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/config04.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config04.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/config04.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config04.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/config05.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config05.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/config05.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/config05.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide01.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide01.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide01.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide01.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide02.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide02.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide02.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide02.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide03.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide03.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide03.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide03.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide04.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide04.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide04.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide04.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide05.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide05.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide05.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide05.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide06.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide06.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide06.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide06.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide08.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide08.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide08.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide08.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide09.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide09.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide09.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide09.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide10.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide10.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide10.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide10.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide11.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide11.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide11.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide11.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide20.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide20.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide20.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide20.png diff --git a/com.wdev91.eclipse.copyright/help/images/copywiz/guide21.png b/plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide21.png similarity index 100% rename from com.wdev91.eclipse.copyright/help/images/copywiz/guide21.png rename to plugins/com.wdev91.eclipse.copyright/help/images/copywiz/guide21.png diff --git a/com.wdev91.eclipse.copyright/help/prefs_copyright.html b/plugins/com.wdev91.eclipse.copyright/help/prefs_copyright.html similarity index 100% rename from com.wdev91.eclipse.copyright/help/prefs_copyright.html rename to plugins/com.wdev91.eclipse.copyright/help/prefs_copyright.html diff --git a/com.wdev91.eclipse.copyright/help/prefs_formats.html b/plugins/com.wdev91.eclipse.copyright/help/prefs_formats.html similarity index 100% rename from com.wdev91.eclipse.copyright/help/prefs_formats.html rename to plugins/com.wdev91.eclipse.copyright/help/prefs_formats.html diff --git a/com.wdev91.eclipse.copyright/help/prefs_project.html b/plugins/com.wdev91.eclipse.copyright/help/prefs_project.html similarity index 100% rename from com.wdev91.eclipse.copyright/help/prefs_project.html rename to plugins/com.wdev91.eclipse.copyright/help/prefs_project.html diff --git a/com.wdev91.eclipse.copyright/help/wdev91.css b/plugins/com.wdev91.eclipse.copyright/help/wdev91.css similarity index 100% rename from com.wdev91.eclipse.copyright/help/wdev91.css rename to plugins/com.wdev91.eclipse.copyright/help/wdev91.css diff --git a/com.wdev91.eclipse.copyright/help/wizard.html b/plugins/com.wdev91.eclipse.copyright/help/wizard.html similarity index 100% rename from com.wdev91.eclipse.copyright/help/wizard.html rename to plugins/com.wdev91.eclipse.copyright/help/wizard.html diff --git a/com.wdev91.eclipse.copyright/icons/copyright.gif b/plugins/com.wdev91.eclipse.copyright/icons/copyright.gif similarity index 100% rename from com.wdev91.eclipse.copyright/icons/copyright.gif rename to plugins/com.wdev91.eclipse.copyright/icons/copyright.gif diff --git a/com.wdev91.eclipse.copyright/plugin.properties b/plugins/com.wdev91.eclipse.copyright/plugin.properties similarity index 100% rename from com.wdev91.eclipse.copyright/plugin.properties rename to plugins/com.wdev91.eclipse.copyright/plugin.properties diff --git a/com.wdev91.eclipse.copyright/plugin.xml b/plugins/com.wdev91.eclipse.copyright/plugin.xml similarity index 100% rename from com.wdev91.eclipse.copyright/plugin.xml rename to plugins/com.wdev91.eclipse.copyright/plugin.xml diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Activator.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Activator.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Activator.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Activator.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Constants.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Constants.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Constants.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Constants.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Messages.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Messages.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Messages.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/Messages.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightAction.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightAction.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightAction.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightAction.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightOnSelectionHandler.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightOnSelectionHandler.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightOnSelectionHandler.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/actions/ApplyCopyrightOnSelectionHandler.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/controls/CheckboxFilteredTree.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/controls/CheckboxFilteredTree.java similarity index 88% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/controls/CheckboxFilteredTree.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/controls/CheckboxFilteredTree.java index 5be1a2a..399aab8 100644 --- a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/controls/CheckboxFilteredTree.java +++ b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/controls/CheckboxFilteredTree.java @@ -18,13 +18,9 @@ public class CheckboxFilteredTree extends FilteredTree { - public CheckboxFilteredTree(Composite parent, boolean useNewLook) { - super(parent, useNewLook); - } - public CheckboxFilteredTree(Composite parent, int treeStyle, PatternFilter filter, boolean useNewLook) { - super(parent, treeStyle, filter, useNewLook); + super(parent, treeStyle, filter, useNewLook, true); } @Override diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/messages.properties b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/messages.properties similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/messages.properties rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/messages.properties diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/Copyright.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/Copyright.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/Copyright.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/Copyright.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightException.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightException.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightException.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightException.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightManager.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightManager.java similarity index 99% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightManager.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightManager.java index ac8527c..3d8aae6 100644 --- a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightManager.java +++ b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightManager.java @@ -232,7 +232,7 @@ private static void applyCopyright(IFile file, final CopyrightSettings settings, String charset = file.getCharset(true); reader = new BufferedReader(new InputStreamReader(file.getContents(), charset)); - buffer = new StringWriter(new Long(f.length()).intValue()); + buffer = new StringWriter((int) f.length()); writer = new PrintWriter(buffer); // Reads the first line of the file diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSelectionItem.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSelectionItem.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSelectionItem.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSelectionItem.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSettings.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSettings.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSettings.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/CopyrightSettings.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/HeaderFormat.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/HeaderFormat.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/HeaderFormat.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/HeaderFormat.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/ProjectPreferences.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/ProjectPreferences.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/ProjectPreferences.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/ProjectPreferences.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/StringMatcher.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/StringMatcher.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/StringMatcher.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/model/StringMatcher.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ContentTypesContentProvider.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ContentTypesContentProvider.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ContentTypesContentProvider.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ContentTypesContentProvider.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/CopyrightPreferencePage.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/CopyrightPreferencePage.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/CopyrightPreferencePage.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/CopyrightPreferencePage.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/FormatsPanel.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/FormatsPanel.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/FormatsPanel.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/FormatsPanel.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/HeadersPreferencePage.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/HeadersPreferencePage.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/HeadersPreferencePage.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/HeadersPreferencePage.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ProjectCopyrightPreferencePage.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ProjectCopyrightPreferencePage.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ProjectCopyrightPreferencePage.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/preferences/ProjectCopyrightPreferencePage.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightContentProvider.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightContentProvider.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightContentProvider.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightContentProvider.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightLabelProvider.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightLabelProvider.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightLabelProvider.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightLabelProvider.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsComparator.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsComparator.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsComparator.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsComparator.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsInput.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsInput.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsInput.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/viewers/CopyrightsInput.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ApplyCopyrightWizard.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ApplyCopyrightWizard.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ApplyCopyrightWizard.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ApplyCopyrightWizard.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSelectionInput.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSelectionInput.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSelectionInput.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSelectionInput.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSettingsPage.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSettingsPage.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSettingsPage.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/CopyrightSettingsPage.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectLabelProvider.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectLabelProvider.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectLabelProvider.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectLabelProvider.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectSelectionWizardPage.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectSelectionWizardPage.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectSelectionWizardPage.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ProjectSelectionWizardPage.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ResourcesSelectionPage.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ResourcesSelectionPage.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ResourcesSelectionPage.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/ResourcesSelectionPage.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionContentProvider.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionContentProvider.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionContentProvider.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionContentProvider.java diff --git a/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionLabelProvider.java b/plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionLabelProvider.java similarity index 100% rename from com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionLabelProvider.java rename to plugins/com.wdev91.eclipse.copyright/src/com/wdev91/eclipse/copyright/wizards/SelectionLabelProvider.java diff --git a/com.wdev91.eclipse.copyright/src/copyrights.xml b/plugins/com.wdev91.eclipse.copyright/src/copyrights.xml similarity index 100% rename from com.wdev91.eclipse.copyright/src/copyrights.xml rename to plugins/com.wdev91.eclipse.copyright/src/copyrights.xml diff --git a/pom.xml b/pom.xml index c81ae70..e7b4d29 100644 --- a/pom.xml +++ b/pom.xml @@ -1,13 +1,51 @@ - + 4.0.0 - com.wdev91.eclipse.copyright - root - 1.5.3 + io.github.crmky.eclipse.copyright + parent + 2.0.0 pom + + UTF-8 + + - docs/ + plugins + features + sites + + + + + + org.eclipse.tycho + tycho-versions-plugin + ${tycho.version} + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho.version} + true + + + org.eclipse.tycho + target-platform-configuration + ${tycho.version} + + + ../../target-platform.target + + + + + + diff --git a/sites/com.wdev91.eclipse.copyright.site/category.xml b/sites/com.wdev91.eclipse.copyright.site/category.xml new file mode 100644 index 0000000..fae1cb7 --- /dev/null +++ b/sites/com.wdev91.eclipse.copyright.site/category.xml @@ -0,0 +1,4 @@ + + + + diff --git a/target-platform.target b/target-platform.target new file mode 100644 index 0000000..0040a47 --- /dev/null +++ b/target-platform.target @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file