Skip to content
Permalink
Browse files

remove plugin popup notifications

  • Loading branch information...
hsz committed Jul 30, 2019
1 parent 3716459 commit 938a0f487528878f8dcb024792312b6797c81bb1
@@ -8,10 +8,8 @@
<h1>.ignore</h1>
<br/>
<a href="http://ignore.hsz.mobi">Website</a> |
<a href="https://github.com/hsz/idea-gitignore">GitHub</a> |
<a href="https://github.com/hsz/idea-gitignore/issues">Issues</a> |
<a href="https://www.paypal.me/hsz">Donate with PayPal</a>
<br/>
<br/>
@@ -526,12 +524,6 @@
<!-- END Up -->
</extensions>

<application-components>
<component>
<implementation-class>mobi.hsz.idea.gitignore.IgnoreApplicationComponent</implementation-class>
</component>
</application-components>

<project-components>
<component>
<implementation-class>mobi.hsz.idea.gitignore.IgnoreManager</implementation-class>
@@ -544,9 +536,6 @@
<component>
<implementation-class>mobi.hsz.idea.gitignore.outer.OuterIgnoreLoaderComponent</implementation-class>
</component>
<component>
<implementation-class>mobi.hsz.idea.gitignore.IgnoreUpdateComponent</implementation-class>
</component>
<component>
<implementation-class>mobi.hsz.idea.gitignore.IgnoreFileBasedIndexProjectHandler</implementation-class>
</component>
@@ -142,23 +142,3 @@ action.importTemplates.error=User templates import failed.

notification.group=.ignore plugin
notification.group.update=.ignore plugin update information
notification.update.title=<b>.ignore</b> plugin updated to v{0}
notification.update.content=<br/>\
Implemented enhancements:<br/>\
- .gcloudignore (Google Cloud) support (#577)<br/>\
- .nuxtignore (Nuxt.js) support (#576)<br/>\
- Fixed deprecation warnings (#567)<br/>\
- Removed "tracked & ignored" feature (#547 #523, #528, #486)<br/>\
- Display external .git/info/exclude files in "Outer ignore rules" side editor<br/>\
- Handle ~/.config/git/ignore ignore file (#574)<br/>\
Fixes:<br/>\
- Adding 2+ templates without new line in between (#561)<br/>\
- Fixed incorrect relative path resolving for ignored files (#566)<br/>\
- Fixed "is covered by" false-positive behaviour (#565, #228)<br/>\
- Fixed incorrect double star pattern behaviour (#579)<br/>\
- Fix for IllegalStateException when ProjectUtil.guessProjectDir called on default project<br/>\
- Update downgrades on 2018.2+ (#572)<br/>\
- Group with id "GenerateGroup" isn't registered (#573)<br/>\
- Directories marked as excluded are reported as never used (#571)<br/>\
- All files are marked as ignored (#581)<br/>\
<br/>

This file was deleted.

This file was deleted.

@@ -58,7 +58,7 @@
USER_TEMPLATES_TEMPLATE("template"), USER_TEMPLATES_NAME("name"), LANGUAGES("languages"),
LANGUAGES_LANGUAGE("language"), LANGUAGES_ID("id"), IGNORED_FILE_STATUS("ignoredFileStatus"),
OUTER_IGNORE_RULES("outerIgnoreRules"), OUTER_IGNORE_WRAPPER_HEIGHT("outerIgnoreWrapperHeight"),
INSERT_AT_CURSOR("insertAtCursor"), ADD_UNVERSIONED_FILES("addUnversionedFiles"), VERSION("version"),
INSERT_AT_CURSOR("insertAtCursor"), ADD_UNVERSIONED_FILES("addUnversionedFiles"),
STARRED_TEMPLATES("starredTemplates"), UNIGNORE_ACTIONS("unignoreActions"),
HIDE_IGNORED_FILES("hideIgnoredFiles"), NOTIFY_IGNORED_EDITING("notifyIgnoredEditing");

@@ -99,9 +99,6 @@ public String toString() {
/** Suggest to add unversioned files to the .gitignore file. */
private boolean addUnversionedFiles = true;

/** Plugin version. */
private String version;

/** Enable unignore actions in context menus. */
private boolean unignoreActions = true;

@@ -155,7 +152,6 @@ public Element getState() {
element.setAttribute(KEY.IGNORED_FILE_STATUS.toString(), Boolean.toString(ignoredFileStatus));
element.setAttribute(KEY.OUTER_IGNORE_RULES.toString(), Boolean.toString(outerIgnoreRules));
element.setAttribute(KEY.OUTER_IGNORE_WRAPPER_HEIGHT.toString(), Integer.toString(outerIgnoreWrapperHeight));
element.setAttribute(KEY.VERSION.toString(), version);
element.setAttribute(KEY.STARRED_TEMPLATES.toString(), StringUtil.join(starredTemplates, Constants.DOLLAR));
element.setAttribute(KEY.UNIGNORE_ACTIONS.toString(), Boolean.toString(unignoreActions));
element.setAttribute(KEY.HIDE_IGNORED_FILES.toString(), Boolean.toString(hideIgnoredFiles));
@@ -219,11 +215,6 @@ public void loadState(@NotNull Element element) {
outerIgnoreRules = Boolean.parseBoolean(value);
}

value = element.getAttributeValue(KEY.VERSION.toString());
if (value != null) {
version = value;
}

value = element.getAttributeValue(KEY.OUTER_IGNORE_WRAPPER_HEIGHT.toString());
if (value != null) {
outerIgnoreWrapperHeight = Integer.parseInt(value);
@@ -446,25 +437,6 @@ public void setOuterIgnoreWrapperHeight(int outerIgnoreWrapperHeight) {
this.outerIgnoreWrapperHeight = outerIgnoreWrapperHeight;
}

/**
* Returns plugin version.
*
* @return version
*/
public String getVersion() {
return version;
}

/**
* Sets plugin version.
*
* @param version of the plugin
*/
public void setVersion(@NotNull String version) {
this.notifyOnChange(KEY.VERSION, this.version, version);
this.version = version;
}

/**
* Returns starred templates list.
*
@@ -24,9 +24,7 @@

package mobi.hsz.idea.gitignore.ui.template;

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationType;
import com.intellij.notification.Notifications;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.EditorFactory;
@@ -36,6 +34,7 @@
import com.intellij.util.ui.JBUI;
import mobi.hsz.idea.gitignore.IgnoreBundle;
import mobi.hsz.idea.gitignore.settings.IgnoreSettings;
import mobi.hsz.idea.gitignore.util.Notify;
import mobi.hsz.idea.gitignore.util.Utils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -165,12 +164,12 @@ private void performCreateAction() {
new IgnoreSettings.UserTemplate(name.getText(), previewDocument.getText());
settings.getUserTemplates().add(template);

Notifications.Bus.notify(new Notification(
IgnoreBundle.PLUGIN_ID,
Notify.show(
project,
IgnoreBundle.message("dialog.userTemplate.added"),
IgnoreBundle.message("dialog.userTemplate.added.description", template.getName()),
NotificationType.INFORMATION
), project);
);

super.doOKAction();
}

0 comments on commit 938a0f4

Please sign in to comment.
You can’t perform that action at this time.