1 /*
2  * Copyright (C) 2019 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.android.atest.widget;
17 
18 import com.android.atest.Constants;
19 import com.intellij.notification.Notification;
20 import com.intellij.notification.NotificationType;
21 import org.jetbrains.annotations.NotNull;
22 
23 /** Atest notification. */
24 public class AtestNotification extends Notification {
25 
26     public static final String ATEST_GROUP_ID = Constants.ATEST_NAME;
27     public static final String ATEST_TITLE = "Atest plugin";
28 
29     /**
30      * Atest error notification constructor.
31      *
32      * @param content notification content.
33      */
AtestNotification(@otNull String content)34     public AtestNotification(@NotNull String content) {
35         super(ATEST_GROUP_ID, ATEST_TITLE, content, NotificationType.ERROR);
36     }
37 }
38