1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package ohos.devtools.views.common; 17 18 import com.intellij.ui.components.JBTabbedPane; 19 import ohos.devtools.datasources.utils.device.entity.DeviceIPPortInfo; 20 import ohos.devtools.datasources.utils.process.entity.ProcessInfo; 21 22 import java.util.HashMap; 23 import java.util.Map; 24 25 /** 26 * Constants 27 * 28 * @since 2021/5/19 16:39 29 */ 30 public class Constant { 31 32 /** 33 * develop mode 34 */ 35 public static final boolean IS_DEVELOP_MODE = false; 36 37 /** 38 * IS_SUPPORT_NEW_HDC 39 */ 40 public static final boolean IS_SUPPORT_NEW_HDC = true; 41 42 /** 43 * Common tab 44 */ 45 public static JBTabbedPane jtasksTab = null; 46 47 /** 48 * Real-time refresh task name in the device selection box 49 */ 50 public static final String DEVICE_REFRESH = "deviceRefresh"; 51 52 /** 53 * Real-time refresh task name in the device selection box 54 */ 55 public static final String DISTRIBUTED_REFRESH = "DistributedRefresh"; 56 57 /** 58 * Maps stored in all process devices 59 */ 60 public static Map<String, Map<DeviceIPPortInfo, ProcessInfo>> map = new HashMap<>(); 61 62 /** 63 * File suffix pushed by the plugin 64 */ 65 public static final String TRACE_SUFFIX = ".trace"; 66 67 /** 68 * treeTable init count 69 */ 70 public static int MEMORY_AGENT_INIT_COUNT = 1000; 71 72 } 73