本文整理匯總了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);
}
}
}
示例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);
}
}
}
示例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.
}
}
示例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;
}
}
示例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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}