mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'sdombrovsky/OC-12825'
This commit is contained in:
@@ -112,7 +112,7 @@ public abstract class ProjectView {
|
||||
|
||||
public abstract boolean isManualOrder(String paneId);
|
||||
public abstract void setManualOrder(@NotNull String paneId, final boolean enabled);
|
||||
|
||||
|
||||
public abstract boolean isSortByType(String paneId);
|
||||
public abstract void setSortByType(@NotNull String paneId, final boolean sortByType);
|
||||
|
||||
|
||||
@@ -1922,6 +1922,10 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
pane.installComparator();
|
||||
}
|
||||
|
||||
protected String getManualOrderOptionText() {
|
||||
return IdeBundle.message("action.manual.order");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSortByType(String paneId) {
|
||||
return getPaneOptionValue(mySortByType, paneId, ourSortByTypeDefaults);
|
||||
@@ -1936,7 +1940,7 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
|
||||
private class ManualOrderAction extends ToggleAction implements DumbAware {
|
||||
private ManualOrderAction() {
|
||||
super(IdeBundle.message("action.manual.order"), IdeBundle.message("action.manual.order"), AllIcons.ObjectBrowser.Sorted);
|
||||
super(getManualOrderOptionText(), getManualOrderOptionText(), AllIcons.ObjectBrowser.Sorted);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user