Package net.andydvorak.intellij.lessc.ui.notifier

Examples of net.andydvorak.intellij.lessc.ui.notifier.NotificationListenerImpl


    private void notifyNone(final LessFile lessFile) {
        final String filename = lessFile.getName();
        final String messageText = NotificationsBundle.message("compiled.unchanged", filename);
        final String messageHtml = NotificationsBundle.message("compiled.unchanged", createLink(lessFile)) + " " + IGNORE_LINK;
        final NotificationListenerImpl listener = new NotificationListenerImpl(myProject, lessFile.getCanonicalPathSafe());
        final HashSet<LessFile> modifiedLessFiles = new HashSet<LessFile>(Arrays.asList(lessFile));

        notifier.log(messageHtml, listener, modifiedLessFiles);

        LOG.info(messageText);
View Full Code Here


        final String messageText = NotificationsBundle.message("compiled.changed.single", filename);
        final String messagePartHtml = NotificationsBundle.message("compiled.changed.single", createLink(lessFile));
        final String logMessageHtml = messagePartHtml + " " + IGNORE_LINK;
        final String successMessageHtml = messagePartHtml + " " + DISMISS_LINK;

        final NotificationListenerImpl listener = new NotificationListenerImpl(myProject, lessFile.getCanonicalPathSafe());
        final HashSet<LessFile> modifiedLessFiles = new HashSet<LessFile>(Arrays.asList(lessFile));

        notifier.log(logMessageHtml, listener, modifiedLessFiles);
        notifier.success(successMessageHtml, listener, modifiedLessFiles);
View Full Code Here

            messageFullText.append(String.format("\t%s", lessFile.getCanonicalPathSafe()));
            messageFilesHtml.append(String.format("%s%s", createLink(lessFile), iterator.hasNext() ? ", " : ""));
        }
        messageFilesHtml.append(" ] " + IGNORE_LINK);

        final NotificationListenerImpl listener = new NotificationListenerImpl(myProject);

        notifier.log(messageFilesHtml.toString(), listener, new HashSet<LessFile>());
        notifier.success(messageShortText + " " + DISMISS_LINK, listener, modifiedLessFiles);

        LOG.info(messageFullText.toString());
View Full Code Here

        LOG.info(messageFullText.toString());
    }

    private void warn(final String title, final String text, final String html) {
        final NotificationListenerImpl listener = new NotificationListenerImpl(myProject);
        notifier.warn(title, html, listener);
        LOG.warn(text);
    }
View Full Code Here

        private final List<VirtualFile> filesWithNoProfile = new ArrayList<VirtualFile>();

        private LessCompileEvent(@NotNull final Project project) {
            this.manager = LessManager.getInstance(project);
            this.notifier = Notifier.getInstance(project);
            this.listener = new NotificationListenerImpl(project);
        }
View Full Code Here

TOP

Related Classes of net.andydvorak.intellij.lessc.ui.notifier.NotificationListenerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.