1 11 package org.eclipse.debug.ui.contexts; 12 13 import java.util.EventObject ; 14 15 import org.eclipse.jface.viewers.ISelection; 16 17 28 public class DebugContextEvent extends EventObject { 29 30 33 private ISelection fContext; 34 35 38 private int fFlags; 39 40 43 public static final int ACTIVATED = 0x01; 44 45 49 public static final int STATE = 0x10; 50 51 54 private static final long serialVersionUID = 3395172504615255524L; 55 56 64 public DebugContextEvent(IDebugContextProvider source, ISelection context, int flags) { 65 super(source); 66 fContext = context; 67 fFlags = flags; 68 } 69 70 75 public ISelection getContext() { 76 return fContext; 77 } 78 79 85 public int getFlags() { 86 return fFlags; 87 } 88 89 94 public IDebugContextProvider getDebugContextProvider() { 95 return (IDebugContextProvider) getSource(); 96 } 97 } 98 | Popular Tags |