Beispiel #1
0
 /*package*/ void loadState(MessageListState state) {
   myWarningsAction.setSelected(null, state.isWarnings());
   myInfoAction.setSelected(null, state.isInfo());
   myAutoscrollToSourceAction.setSelected(null, state.isAutoscrollToSource());
   setSearches(state.getSearches());
   myMaxListSize = state.getMaxListSize();
 }
Beispiel #2
0
 /*package*/ MessageListState getState() {
   return new MessageListState(
       myWarningsAction.isSelected(null),
       myInfoAction.isSelected(null),
       myAutoscrollToSourceAction.isSelected(null),
       mySearches,
       myMaxListSize);
 }
Beispiel #3
0
 public boolean isVisible(IMessage m) {
   switch (m.getKind()) {
     case ERROR:
       return true;
     case WARNING:
       return myWarningsAction.isSelected(null);
     case INFORMATION:
       return myInfoAction.isSelected(null);
   }
   return true;
 }
Beispiel #4
0
 public void setInfoEnabled(boolean enabled) {
   myInfoAction.setSelected(null, enabled);
 }
Beispiel #5
0
 public void setWarningsEnabled(boolean enabled) {
   myWarningsAction.setSelected(null, enabled);
 }