本文整理匯總了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);
}
}
示例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);
}
}
示例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);
}
}
});
}
示例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);
}
}
});
}
示例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();
}
示例6: getSettings
import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@NotNull
@Override
protected List<QuickList> getSettings() {
return QuickListsManager.getInstance().getSchemeManager().getAllSchemes();
}
示例7: isRemovable
import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public boolean isRemovable(@NotNull QuickList item) {
return QuickListsManager.getInstance().getSchemeManager().isMetadataEditable(item);
}
示例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);
}
示例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);
}
示例10: apply
import com.intellij.openapi.actionSystem.ex.QuickListsManager; //導入依賴的package包/類
@Override
public void apply() {
QuickListsManager.getInstance().setQuickLists(getCurrentQuickListIds());
}