-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README.md, change plugin id and change package structure
- Loading branch information
Showing
28 changed files
with
224 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Autoconfig for IntelliJ | ||
|
||
Autoconfig is an extension for IntelliJ IDEA which allows you to persist and share project specific IDE-settings outside the `workspace.xml`-file. | ||
|
||
## Goal | ||
|
||
Several user specific IDE settings are stored for each project in the VCS-ignored-`workspace.xml`-file. This is a good thing, but it can be cumbersome to configure your IDE differently for each project. Some IDE settings that might want to be shared across users: | ||
|
||
- Format on Save | ||
- Custom Plugin Repositories | ||
- Compiler Settings | ||
- Maven Importing Settings | ||
|
||
Autoconfig helps you with sharing settings across multiple users by allowing you to configure settings in a separate file which can be checked in into your version control. This lessens the need of project specific instructions on how to configure your IDE for working on a project, and it ensures that all users share the same settings. | ||
|
||
## How to use | ||
|
||
1. Go to `Tools -> Autoconfig -> Create Autoconfig File` | ||
2. Select the type of autoconfig you want to create | ||
3. Create an Autoconfig file for your project | ||
4. Restart your IDE | ||
Autoconfig automatically configures your IDE on restart | ||
|
||
## Available settings | ||
|
||
See the available settings configurable by Autoconfig in: [schemas](src/main/resources/schema) | ||
|
||
## How to contribute | ||
|
||
See [CONTRIBUTING.md](CONTRIBUTING.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
src/main/java/de/gebit/intellij/autoconfig/UpdateHandler.java
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
src/main/java/de/gebit/intellij/autoconfig/state/TransientPluginStateService.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/main/java/de/gebit/plugins/autoconfig/UpdateHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// | ||
// UpdateHandler.java | ||
// | ||
// Copyright (C) 2024 | ||
// GEBIT Solutions GmbH, | ||
// Berlin, Duesseldorf, Stuttgart, Leipzig (Germany) | ||
// All rights reserved. | ||
|
||
package de.gebit.plugins.autoconfig; | ||
|
||
import com.intellij.openapi.project.Project; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Extension point for used to supply configuration update handlers. | ||
*/ | ||
public interface UpdateHandler<T> { | ||
|
||
/** | ||
* Provide the file name that is expected to contain the extensions' configuration. | ||
* | ||
* @return the file name that is expected to contain the extensions' configuration | ||
*/ | ||
String getFileName(); | ||
|
||
/** | ||
* The json schema containing/providing the information on how to write the configuration file. | ||
* | ||
* @return json schema containing/providing the information on how to write the configuration file | ||
*/ | ||
String getJsonSchema(); | ||
|
||
/** | ||
* The updater name is used for logging purposes and as a name for the json schema displayed in IntelliJ status bar. | ||
* | ||
* @return the name of this updater | ||
*/ | ||
String getUpdaterName(); | ||
|
||
/** | ||
* The configuration object class used to read/deserialize the configuration file. | ||
* | ||
* @return configuration object class used to read/deserialize the configuration file | ||
*/ | ||
Class<T> getConfigurationClass(); | ||
|
||
/** | ||
* The implementation of the configuration updates. A configuration update object is supplied containing the information gathered from the yaml | ||
* file. | ||
* | ||
* @param configuration the configuration object used for this update handler | ||
* @param project the project that will receive the configuration updates in case they can be applied | ||
* @return list of configuration parts that have been updated | ||
*/ | ||
List<String> updateConfiguration(T configuration, Project project); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ig/create/CreateAutoconfigFileDialog.java → ...ig/create/CreateAutoconfigFileDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nfig/create/CreateAutoconfigFileForm.form → ...nfig/create/CreateAutoconfigFileForm.form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nfig/create/CreateAutoconfigFileForm.java → ...nfig/create/CreateAutoconfigFileForm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.