1 11 package org.eclipse.debug.internal.ui.views; 12 13 14 import org.eclipse.debug.ui.AbstractDebugView; 15 import org.eclipse.jface.action.IStatusLineManager; 16 17 21 public abstract class AbstractDebugEventHandlerView extends AbstractDebugView { 22 23 26 private AbstractDebugEventHandler fEventHandler; 27 28 33 protected void setEventHandler(AbstractDebugEventHandler eventHandler) { 34 fEventHandler = eventHandler; 35 } 36 37 42 protected AbstractDebugEventHandler getEventHandler() { 43 return fEventHandler; 44 } 45 46 49 public void dispose() { 50 super.dispose(); 51 if (getEventHandler() != null) { 52 getEventHandler().dispose(); 53 } 54 } 55 56 59 protected void becomesHidden() { 60 super.becomesHidden(); 61 getEventHandler().viewBecomesHidden(); 62 } 63 64 67 protected void becomesVisible() { 68 super.becomesVisible(); 69 getEventHandler().viewBecomesVisible(); 70 } 71 72 protected void clearStatusLine() { 73 IStatusLineManager manager = getViewSite().getActionBars().getStatusLineManager(); 74 manager.setErrorMessage(null); 75 manager.setMessage(null); 76 } 77 78 } 79 | Popular Tags |