当前位置: 首页>>代码示例>>Java>>正文


Java UISettings.fireUISettingsChanged方法代码示例

本文整理汇总了Java中com.intellij.ide.ui.UISettings.fireUISettingsChanged方法的典型用法代码示例。如果您正苦于以下问题:Java UISettings.fireUISettingsChanged方法的具体用法?Java UISettings.fireUISettingsChanged怎么用?Java UISettings.fireUISettingsChanged使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.ide.ui.UISettings的用法示例。


在下文中一共展示了UISettings.fireUISettingsChanged方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: apply

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
@Override
public void apply() throws ConfigurationException {
  EditorSettingsExternalizable editorSettings = EditorSettingsExternalizable.getInstance();
  UISettings uiSettings = UISettings.getInstance();

  editorSettings.setUseSoftWraps(myCbUseSoftWrapsAtConsole.isSelected(), SoftWrapAppliancePlaces.CONSOLE);
  boolean uiSettingsChanged = false;
  if (isModified(myCommandsHistoryLimitField, uiSettings.CONSOLE_COMMAND_HISTORY_LIMIT)) {
    uiSettings.CONSOLE_COMMAND_HISTORY_LIMIT = Math.max(0, Math.min(1000, Integer.parseInt(myCommandsHistoryLimitField.getText().trim())));
    uiSettingsChanged = true;
  }
  if (ConsoleBuffer.useCycleBuffer()) {
    if (isModified(myCbOverrideConsoleCycleBufferSize, uiSettings.OVERRIDE_CONSOLE_CYCLE_BUFFER_SIZE)) {
      uiSettings.OVERRIDE_CONSOLE_CYCLE_BUFFER_SIZE = myCbOverrideConsoleCycleBufferSize.isSelected();
      uiSettingsChanged = true;
    }
    if (isModified(myConsoleCycleBufferSizeField, uiSettings.CONSOLE_CYCLE_BUFFER_SIZE_KB)) {
      uiSettings.CONSOLE_CYCLE_BUFFER_SIZE_KB = Math.max(0, Math.min(1024*100, Integer.parseInt(myConsoleCycleBufferSizeField.getText().trim())));
      uiSettingsChanged = true;
    }
  }
  if (uiSettingsChanged) {
    uiSettings.fireUISettingsChanged();
  }


  myNegativePanel.applyTo(mySettings.getNegativePatterns());
  myPositivePanel.applyTo(mySettings.getPositivePatterns());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:30,代码来源:ConsoleConfigurable.java

示例2: run

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
@Override
public void run() {
  final UISettings settings = UISettings.getInstance();
  settings.SHOW_MAIN_TOOLBAR = SHOWN;
  settings.fireUISettingsChanged();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:MacMainFrameDecorator.java

示例3: setSelected

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
public void setSelected(AnActionEvent e,boolean state){
  UISettings uiSettings = UISettings.getInstance();
  uiSettings.SHOW_STATUS_BAR=state;
  uiSettings.fireUISettingsChanged();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ViewStatusBarAction.java

示例4: setSelected

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
public void setSelected(AnActionEvent event,boolean state) {
  UISettings uiSettings = UISettings.getInstance();
  uiSettings.HIDE_TOOL_STRIPES=!state;
  uiSettings.fireUISettingsChanged();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ViewToolWindowButtonsAction.java

示例5: setSelected

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
public void setSelected(AnActionEvent event,boolean state) {
  UISettings uiSettings = UISettings.getInstance();
  uiSettings.SHOW_MAIN_TOOLBAR=state;
  uiSettings.fireUISettingsChanged();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ViewToolbarAction.java

示例6: apply

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
@Override
public void apply() throws ConfigurationException {
  UISettings uiSettings=UISettings.getInstance();

  boolean uiSettingsChanged = uiSettings.MARK_MODIFIED_TABS_WITH_ASTERISK != myCbModifiedTabsMarkedWithAsterisk.isSelected();
  uiSettings.MARK_MODIFIED_TABS_WITH_ASTERISK = myCbModifiedTabsMarkedWithAsterisk.isSelected();

  if (isModified(myShowTabsTooltipsCheckBox, uiSettings.SHOW_TABS_TOOLTIPS)) uiSettingsChanged = true;
  uiSettings.SHOW_TABS_TOOLTIPS = myShowTabsTooltipsCheckBox.isSelected();

  if (isModified(myScrollTabLayoutInEditorCheckBox, uiSettings.SCROLL_TAB_LAYOUT_IN_EDITOR)) uiSettingsChanged = true;
  uiSettings.SCROLL_TAB_LAYOUT_IN_EDITOR = myScrollTabLayoutInEditorCheckBox.isSelected();

  if (isModified(myHideTabsCheckbox, uiSettings.HIDE_TABS_IF_NEED)) uiSettingsChanged = true;
  uiSettings.HIDE_TABS_IF_NEED = myHideTabsCheckbox.isSelected();

  if (isModified(myShowCloseButtonOnCheckBox, uiSettings.SHOW_CLOSE_BUTTON)) uiSettingsChanged = true;
  uiSettings.SHOW_CLOSE_BUTTON = myShowCloseButtonOnCheckBox.isSelected();

  final int tabPlacement = ((Integer)myEditorTabPlacement.getSelectedItem()).intValue();
  if (uiSettings.EDITOR_TAB_PLACEMENT != tabPlacement) uiSettingsChanged = true;
  uiSettings.EDITOR_TAB_PLACEMENT = tabPlacement;

  boolean hide = myHideKnownExtensions.isSelected();
  if (uiSettings.HIDE_KNOWN_EXTENSION_IN_TABS != hide) uiSettingsChanged = true;
  uiSettings.HIDE_KNOWN_EXTENSION_IN_TABS = hide;

  boolean dir = myShowDirectoryInTabCheckBox.isSelected();
  if (uiSettings.SHOW_DIRECTORY_FOR_NON_UNIQUE_FILENAMES != dir) uiSettingsChanged = true;
  uiSettings.SHOW_DIRECTORY_FOR_NON_UNIQUE_FILENAMES = dir;

  uiSettings.CLOSE_NON_MODIFIED_FILES_FIRST = myCloseNonModifiedFilesFirstRadio.isSelected();
  uiSettings.ACTIVATE_MRU_EDITOR_ON_CLOSE = myActivateMRUEditorOnCloseRadio.isSelected();
  uiSettings.ACTIVATE_RIGHT_EDITOR_ON_CLOSE = myActivateRightNeighbouringTabRadioButton.isSelected();

  if (isModified(myReuseNotModifiedTabsCheckBox, uiSettings.REUSE_NOT_MODIFIED_TABS)) uiSettingsChanged = true;
  uiSettings.REUSE_NOT_MODIFIED_TABS = myReuseNotModifiedTabsCheckBox.isSelected();

  String temp = myEditorTabLimitField.getText();
  if (temp.trim().length() > 0) {
    try {
      int newEditorTabLimit = Integer.parseInt(temp);
      if (newEditorTabLimit > 0 && newEditorTabLimit != uiSettings.EDITOR_TAB_LIMIT) {
        uiSettings.EDITOR_TAB_LIMIT = newEditorTabLimit;
        uiSettingsChanged = true;
      }
    }
    catch (NumberFormatException ignored) {
    }
  }
  if(uiSettingsChanged){
    uiSettings.fireUISettingsChanged();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:55,代码来源:EditorTabsConfigurable.java

示例7: apply

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
@Override
public void apply() throws ConfigurationException {
  EditorSettingsExternalizable editorSettings = EditorSettingsExternalizable.getInstance();
  editorSettings.setBlinkCaret(myCbBlinkCaret.isSelected());
  try {
    editorSettings.setBlinkPeriod(Integer.parseInt(myBlinkIntervalField.getText()));
  }
  catch (NumberFormatException ignore) {
  }

  editorSettings.setBlockCursor(myCbBlockCursor.isSelected());
  editorSettings.setRightMarginShown(myCbRightMargin.isSelected());
  editorSettings.setLineNumbersShown(myCbShowLineNumbers.isSelected());
  editorSettings.setWhitespacesShown(myCbShowWhitespaces.isSelected());
  editorSettings.setLeadingWhitespacesShown(myLeadingWhitespacesCheckBox.isSelected());
  editorSettings.setInnerWhitespacesShown(myInnerWhitespacesCheckBox.isSelected());
  editorSettings.setTrailingWhitespacesShown(myTrailingWhitespacesCheckBox.isSelected());
  editorSettings.setIndentGuidesShown(myShowVerticalIndentGuidesCheckBox.isSelected());

  EditorOptionsPanel.reinitAllEditors();

  DaemonCodeAnalyzerSettings.getInstance().SHOW_METHOD_SEPARATORS = myCbShowMethodSeparators.isSelected();
  DaemonCodeAnalyzerSettings.getInstance().SHOW_SMALL_ICONS_IN_GUTTER = myCbShowIconsInGutter.isSelected();

  UISettings uiSettings = UISettings.getInstance();
  boolean uiSettingsModified = false;
  boolean lafSettingsModified = false;
  //if (uiSettings.ANTIALIASING_IN_EDITOR != myAntialiasingInEditorCheckBox.isSelected()) {
  //  uiSettings.ANTIALIASING_IN_EDITOR = myAntialiasingInEditorCheckBox.isSelected();
  //  uiSettingsModified = true;
  //}

  //if (uiSettings.USE_LCD_RENDERING_IN_EDITOR != myUseLCDRendering.isSelected()) {
  //  uiSettings.USE_LCD_RENDERING_IN_EDITOR = myUseLCDRendering.isSelected();
  //  uiSettingsModified = true;
  //}

  if (uiSettings.SHOW_EDITOR_TOOLTIP != myShowCodeLensInEditorCheckBox.isSelected()) {
    uiSettings.SHOW_EDITOR_TOOLTIP = myShowCodeLensInEditorCheckBox.isSelected();
    uiSettingsModified = true;
    lafSettingsModified = true;
  }
  
  if(editorSettings.isBreadcrumbsShown() != myShowBreadcrumbsCheckBox.isSelected()) {
    editorSettings.setBreadcrumbsShown(myShowBreadcrumbsCheckBox.isSelected());
    uiSettingsModified = true;
  }

  if (lafSettingsModified) {
    LafManager.getInstance().repaintUI();
  }
  if (uiSettingsModified) {
    uiSettings.fireUISettingsChanged();
  }
  EditorOptionsPanel.restartDaemons();

  super.apply();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:59,代码来源:EditorAppearanceConfigurable.java

示例8: setSelected

import com.intellij.ide.ui.UISettings; //导入方法依赖的package包/类
@Override
public void setSelected(AnActionEvent e,boolean state){
  UISettings uiSettings = UISettings.getInstance();
  uiSettings.SHOW_NAVIGATION_BAR=state;
  uiSettings.fireUISettingsChanged();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ViewNavigationBarAction.java


注:本文中的com.intellij.ide.ui.UISettings.fireUISettingsChanged方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。