本文整理汇总了Java中com.intellij.ide.ui.UISettings.addUISettingsListener方法的典型用法代码示例。如果您正苦于以下问题:Java UISettings.addUISettingsListener方法的具体用法?Java UISettings.addUISettingsListener怎么用?Java UISettings.addUISettingsListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ide.ui.UISettings
的用法示例。
在下文中一共展示了UISettings.addUISettingsListener方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: show
import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
public final void show(){
setFocusableWindowState(myInfo.isActive());
super.show();
final UISettings uiSettings=UISettings.getInstance();
if(uiSettings.ENABLE_ALPHA_MODE){
final WindowManagerEx windowManager=WindowManagerEx.getInstanceEx();
windowManager.setAlphaModeEnabled(this,true);
if(myInfo.isActive()){
windowManager.setAlphaModeRatio(this,0.0f);
}else{
windowManager.setAlphaModeRatio(this,uiSettings.ALPHA_MODE_RATIO);
}
}
paint(getGraphics()); // This prevents annoying flick
setFocusableWindowState(true);
uiSettings.addUISettingsListener(myUISettingsListener, myDelayAlarm);
}
示例2: EditorHistoryManager
import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
/**
* Invoked by reflection
*/
EditorHistoryManager(final Project project, final UISettings uiSettings) {
super(project);
uiSettings.addUISettingsListener(new MyUISettingsListener(), project);
}