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


Java QuickListsManager類代碼示例

本文整理匯總了Java中com.intellij.openapi.actionSystem.ex.QuickListsManager的典型用法代碼示例。如果您正苦於以下問題:Java QuickListsManager類的具體用法?Java QuickListsManager怎麽用?Java QuickListsManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


QuickListsManager類屬於com.intellij.openapi.actionSystem.ex包,在下文中一共展示了QuickListsManager類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setItem

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
public void setItem(@Nullable QuickList item) {
  apply();

  this.item = item;
  if (item == null) {
    return;
  }

  myName.setText(item.getName());
  myName.setEnabled(QuickListsManager.getInstance().getSchemeManager().isMetadataEditable(item));
  myDescription.setText(item.getDescription());

  actionsModel.removeAll();
  for (String id : item.getActionIds()) {
    includeActionId(id);
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:18,代碼來源:QuickListPanel.java

示例2: apply

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public void apply(@NotNull List<QuickList> settings) throws ConfigurationException {
  itemPanel.apply();

  editor.ensureNonEmptyNames("Quick list should have non empty name");
  editor.processModifiedItems(new PairProcessor<QuickList, QuickList>() {
    @Override
    public boolean process(QuickList newItem, QuickList oldItem) {
      if (!oldItem.getName().equals(newItem.getName())) {
        keymapListener.quickListRenamed(oldItem, newItem);
      }
      return true;
    }
  });

  if (isModified(settings)) {
    java.util.List<QuickList> result = editor.apply();
    keymapListener.processCurrentKeymapChanged(result.toArray(new QuickList[result.size()]));
    QuickListsManager.getInstance().setQuickLists(result);
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:22,代碼來源:QuickListsUi.java

示例3: reset

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public void reset() {
  myQuickListsModel.removeAllElements();
  for (QuickList list : QuickListsManager.getInstance().getAllQuickLists()) {
    myQuickListsModel.addElement(list);
  }

  SwingUtilities.invokeLater(new Runnable() {
    @Override
    public void run() {
      if (!myQuickListsModel.isEmpty()) {
        myQuickListsList.setSelectedIndex(0);
      }
    }
  });
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:17,代碼來源:QuickListsPanel.java

示例4: reset

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
public void reset() {
  myQuickListsModel.removeAllElements();
  QuickList[] allQuickLists = QuickListsManager.getInstance().getAllQuickLists();
  for (QuickList list : allQuickLists) {
    myQuickListsModel.addElement(list);
  }

  SwingUtilities.invokeLater(new Runnable() {
    public void run() {
      if (myQuickListsModel.size() > 0) {
        myQuickListsList.setSelectedIndex(0);
      }
    }
  });
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:16,代碼來源:QuickListsPanel.java

示例5: apply

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
public void apply() {
  QuickListsManager.getInstance().removeAllQuickLists();
  final QuickList[] currentQuickLists = getCurrentQuickListIds();
  for (QuickList quickList : currentQuickLists) {
    QuickListsManager.getInstance().registerQuickList(quickList);
  }
  QuickListsManager.getInstance().registerActions();
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:9,代碼來源:QuickListsPanel.java

示例6: getSettings

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@NotNull
@Override
protected List<QuickList> getSettings() {
  return QuickListsManager.getInstance().getSchemeManager().getAllSchemes();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:QuickListsPanel.java

示例7: isRemovable

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public boolean isRemovable(@NotNull QuickList item) {
  return QuickListsManager.getInstance().getSchemeManager().isMetadataEditable(item);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:QuickListsUi.java

示例8: isModified

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
public boolean isModified() {
  QuickList[] storedLists = QuickListsManager.getInstance().getAllQuickLists();
  QuickList[] modelLists = getCurrentQuickListIds();
  return !Comparing.equal(storedLists, modelLists);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:6,代碼來源:QuickListsPanel.java

示例9: isModified

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public boolean isModified() {
  QuickList[] storedLists = QuickListsManager.getInstance().getAllQuickLists();
  QuickList[] modelLists = getCurrentQuickListIds();
  return !Comparing.equal(storedLists, modelLists);
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:7,代碼來源:QuickListsPanel.java

示例10: apply

import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public void apply() {
  QuickListsManager.getInstance().setQuickLists(getCurrentQuickListIds());
}
 
開發者ID:consulo,項目名稱:consulo,代碼行數:5,代碼來源:QuickListsPanel.java


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