當前位置: 首頁>>代碼示例>>Java>>正文


Java Balloon.hide方法代碼示例

本文整理匯總了Java中com.intellij.openapi.ui.popup.Balloon.hide方法的典型用法代碼示例。如果您正苦於以下問題:Java Balloon.hide方法的具體用法?Java Balloon.hide怎麽用?Java Balloon.hide使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.intellij.openapi.ui.popup.Balloon的用法示例。


在下文中一共展示了Balloon.hide方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: hyperlinkActivated

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
@Override
protected void hyperlinkActivated(HyperlinkEvent e) {
  final Module moduleByName = ModuleManager.getInstance(myProject).findModuleByName(e.getDescription());
  if (moduleByName != null) {
    myConfiguration.getConfigurationModule().setModule(moduleByName);
    try {
      Executor executor = myIsDebug ? DefaultDebugExecutor.getDebugExecutorInstance()
                                    : DefaultRunExecutor.getRunExecutorInstance();
      ExecutionEnvironmentBuilder.create(myProject, executor, myConfiguration).contentToReuse(null).buildAndExecute();
      Balloon balloon = myToolWindowManager.getToolWindowBalloon(myTestRunDebugId);
      if (balloon != null) {
        balloon.hide();
      }
    }
    catch (ExecutionException e1) {
      LOG.error(e1);
    }
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:20,代碼來源:ResetConfigurationModuleAdapter.java

示例2: hyperlinkActivated

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
@Override
protected void hyperlinkActivated(HyperlinkEvent e)
{
	final Module moduleByName = ModuleManager.getInstance(myProject).findModuleByName(e.getDescription());
	if(moduleByName != null)
	{
		myConfiguration.getConfigurationModule().setModule(moduleByName);
		try
		{
			Executor executor = myIsDebug ? DefaultDebugExecutor.getDebugExecutorInstance() : DefaultRunExecutor.getRunExecutorInstance();
			ExecutionEnvironmentBuilder.create(myProject, executor, myConfiguration).contentToReuse(null).buildAndExecute();
			Balloon balloon = myToolWindowManager.getToolWindowBalloon(myTestRunDebugId);
			if(balloon != null)
			{
				balloon.hide();
			}
		}
		catch(ExecutionException e1)
		{
			LOG.error(e1);
		}
	}
}
 
開發者ID:consulo,項目名稱:consulo-java,代碼行數:24,代碼來源:ResetConfigurationModuleAdapter.java

示例3: log

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
public static void log(String msg) {
	Notification notification = new Notification(GROUP_ID, TITLE, msg, NotificationType.INFORMATION);//build a notification
	//notification.hideBalloon();//didn't work
	Notifications.Bus.notify(notification);//use the default bus to notify (application level)
	Balloon balloon = notification.getBalloon();
	if (balloon != null) {//fix: #20 潛在的NPE
		balloon.hide(true);//try to hide the balloon immediately.
	}
}
 
開發者ID:xusida,項目名稱:yaml-format,代碼行數:10,代碼來源:FormatYamlAction.java

示例4: hideBalloon

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
public void hideBalloon() {
  if (myBalloonRef != null) {
    final Balloon balloon = myBalloonRef.get();
    if (balloon != null) {
      balloon.hide();
    }
    myBalloonRef = null;
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:10,代碼來源:Notification.java

示例5: remove

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
private void remove(@Nonnull Balloon balloon, boolean hide) {
  myBalloons.remove(balloon);
  BalloonLayoutData layoutData = myLayoutData.remove(balloon);
  if (layoutData != null) {
    layoutData.mergeData = null;
  }
  if (hide) {
    balloon.hide();
    fireRelayout();
  }
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:12,代碼來源:DesktopBalloonLayoutImpl.java

示例6: hideBalloon

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
private static void hideBalloon(Notification notification1) {
  Balloon balloon = notification1.getBalloon();
  if (balloon != null) {
    balloon.hide(true);
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:7,代碼來源:EventLog.java

示例7: hideBalloon

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
private static void hideBalloon(Notification notification1) {
    Balloon balloon = notification1.getBalloon();
    if(balloon != null) {
        balloon.hide(true);
    }
}
 
開發者ID:headwirecom,項目名稱:aem-ide-tooling-4-intellij,代碼行數:7,代碼來源:ConsoleLog.java

示例8: hideBalloon

import com.intellij.openapi.ui.popup.Balloon; //導入方法依賴的package包/類
private static void hideBalloon(Notification notification) {
  Balloon balloon = notification.getBalloon();
  if (balloon != null) {
    balloon.hide(true);
  }
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:7,代碼來源:EventLog.java


注:本文中的com.intellij.openapi.ui.popup.Balloon.hide方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。