Codota Logo
ApplicationNamesInfo.getInstance
Code IndexAdd Codota to your IDE (free)

How to use
getInstance
method
in
com.intellij.openapi.application.ApplicationNamesInfo

Best Java code snippets using com.intellij.openapi.application.ApplicationNamesInfo.getInstance (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: groboclown/p4ic4idea

@NonNls
public static String applicationName() {
  return ApplicationNamesInfo.getInstance().getFullProductName();
}
origin: Microsoft/azure-devops-intellij

@Before
public void setUp() {
  MockitoAnnotations.initMocks(this);
  PowerMockito.mockStatic(ApplicationNamesInfo.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(mockApplicationNamesInfo);
}
origin: Microsoft/azure-devops-intellij

@Before
public void localSetup() {
  when(mockApplicationNamesInfo.getProductName()).thenReturn(IDEA_NAME);
  PowerMockito.mockStatic(Platform.class, WindowsStartup.class, MacStartup.class, ApplicationNamesInfo.class, AuthHelper.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(mockApplicationNamesInfo);
  VSTS_DIR.mkdir();
}
origin: GoogleCloudPlatform/google-cloud-intellij

public DisablePluginWarningDialog(
  @NotNull PluginId pluginId, @NotNull Component parentComponent) {
 super(parentComponent, false);
 this.pluginId = pluginId;
 IdeaPluginDescriptor plugin = PluginManager.getPlugin(pluginId);
 isRestartCapable = ApplicationManager.getApplication().isRestartCapable();
 promptLabel.setText(
   GoogleCloudCoreMessageBundle.message(
     "error.dialog.disable.plugin.prompt", plugin.getName()));
 restartLabel.setText(
   GoogleCloudCoreMessageBundle.message(
     isRestartCapable
       ? "error.dialog.disable.plugin.restart"
       : "error.dialog.disable.plugin.norestart",
     ApplicationNamesInfo.getInstance().getFullProductName()));
 setTitle(GoogleCloudCoreMessageBundle.message("error.dialog.disable.plugin.title"));
 init();
}
origin: Microsoft/azure-devops-intellij

@Test
public void testProjectOpenedEvent_RiderNotVsts() {
  when(applicationNamesInfo.getProductName()).thenReturn(IdeaHelper.RIDER_PRODUCT_NAME);
  PowerMockito.mockStatic(ApplicationNamesInfo.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(applicationNamesInfo);
  when(VcsHelper.isVstsRepo(project)).thenReturn(false);
  when(statusBar.getWidget(anyString())).thenReturn(new BuildWidget());
  StatusBarManager.setupStatusBar();
  Map<String, Object> map = EventContextHelper.createContext(EventContextHelper.SENDER_PROJECT_OPENED);
  EventContextHelper.setProject(map, project);
  ServerEventManager.getInstance().triggerAllEvents(map);
  verify(statusBar, VerificationModeFactory.times(0)).addWidget(any(BuildWidget.class), Matchers.eq(project));
  verify(statusBar, VerificationModeFactory.times(1)).removeWidget(any(String.class));
}
origin: Microsoft/azure-devops-intellij

when(ApplicationNamesInfo.getInstance()).thenReturn(applicationNamesInfo);
origin: intellij-dlanguage/intellij-dlanguage

  ApplicationManager.getApplication(),
  (ApplicationInfoEx) ApplicationInfo.getInstance(),
  ApplicationNamesInfo.getInstance(),
  super.getPluginDescriptor()
);
origin: Microsoft/azure-devops-intellij

@Test
public void testProjectOpenedEvent_RiderVsts() {
  when(applicationNamesInfo.getProductName()).thenReturn(IdeaHelper.RIDER_PRODUCT_NAME);
  PowerMockito.mockStatic(ApplicationNamesInfo.class);
  when(ApplicationNamesInfo.getInstance()).thenReturn(applicationNamesInfo);
  when(VcsHelper.isVstsRepo(project)).thenReturn(true);
  StatusBarManager.setupStatusBar();
  Map<String, Object> map = EventContextHelper.createContext(EventContextHelper.SENDER_PROJECT_OPENED);
  EventContextHelper.setProject(map, project);
  ServerEventManager.getInstance().triggerAllEvents(map);
  verify(statusBar, VerificationModeFactory.times(1)).addWidget(any(BuildWidget.class), Matchers.eq(project));
  buildStatusLookupOperation.onLookupStarted();
  buildStatusLookupOperation.onLookupResults(new BuildStatusLookupOperation.BuildStatusResults(
      new ServerContextBuilder().uri("https://test.visualstudio.com/").type(ServerContext.Type.VSO).build(),
      new ArrayList<BuildStatusLookupOperation.BuildStatusRecord>()));
  verify(statusBar, VerificationModeFactory.times(1)).updateWidget(anyString());
}
origin: halirutan/Mathematica-IntelliJ-Plugin

ApplicationManager.getApplication(),
(ApplicationInfoEx) ApplicationInfo.getInstance(),
ApplicationNamesInfo.getInstance());
origin: GoogleCloudPlatform/google-cloud-intellij

error.setMessage(event.getMessage());
ApplicationNamesInfo intelliJAppNameInfo = ApplicationNamesInfo.getInstance();
ApplicationInfoEx intelliJAppExtendedInfo = ApplicationInfoEx.getInstanceEx();
com.intellij.openapi.applicationApplicationNamesInfogetInstance

Popular methods of ApplicationNamesInfo

  • getFullProductName
  • getProductName

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • orElseThrow (Optional)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now