Package org.eclipse.debug.ui.contexts

Examples of org.eclipse.debug.ui.contexts.IDebugContextService


            }
        }
        // else get selected thread and determine if any of the stack frames
        // is executing in a working memory, if so, use that one
        if (input == null) {
            IDebugContextService debugContextService = DebugContextManager.getDefault().getContextService(getSite().getWorkbenchWindow());
            if (debugContextService != null) {
                ISelection stackSelection = debugContextService.getActiveContext();
                if (stackSelection instanceof IStructuredSelection) {
                    Object selection = ((IStructuredSelection) stackSelection).getFirstElement();
                    if (selection instanceof IJavaStackFrame) {
                        try {
                            IJavaThread thread = (IJavaThread) ((IJavaStackFrame) selection).getThread();
View Full Code Here


            }
        }
        // else get selected thread and determine if any of the stack frames
        // is executing in a working memory, if so, use that one
        if (input == null) {
            IDebugContextService debugContextService = DebugContextManager.getDefault().getContextService(getSite().getWorkbenchWindow());
            if (debugContextService != null) {
                ISelection stackSelection = debugContextService.getActiveContext();
                if (stackSelection instanceof IStructuredSelection) {
                    Object selection = ((IStructuredSelection) stackSelection).getFirstElement();
                    if (selection instanceof IJavaStackFrame) {
                        try {
                            IJavaThread thread = (IJavaThread) ((IJavaStackFrame) selection).getThread();
View Full Code Here

            }
        }
        // else get selected thread and determine if any of the stack frames
        // is executing in a working memory, if so, use that one
        if (input == null) {
            IDebugContextService debugContextService = DebugContextManager.getDefault().getContextService(getSite().getWorkbenchWindow());
            if (debugContextService != null) {
                ISelection stackSelection = debugContextService.getActiveContext();
                if (stackSelection instanceof IStructuredSelection) {
                    Object selection = ((IStructuredSelection) stackSelection).getFirstElement();
                    if (selection instanceof IJavaStackFrame) {
                        try {
                            IJavaThread thread = (IJavaThread) ((IJavaStackFrame) selection).getThread();
View Full Code Here

            }
        }
        // else get selected thread and determine if any of the stack frames
        // is executing in a working memory, if so, use that one
        if (input == null) {
            IDebugContextService debugContextService = DebugContextManager.getDefault().getContextService(getSite().getWorkbenchWindow());
            if (debugContextService != null) {
                ISelection stackSelection = debugContextService.getActiveContext();
                if (stackSelection instanceof IStructuredSelection) {
                    Object selection = ((IStructuredSelection) stackSelection).getFirstElement();
                    if (selection instanceof IJavaStackFrame) {
                        try {
                            IJavaThread thread = (IJavaThread) ((IJavaStackFrame) selection).getThread();
View Full Code Here

     * @seeorg.eclipse.ui.IWorkbenchWindowActionDelegate#init(org.eclipse.ui.
     * IWorkbenchWindow)
     */
    public void init(IWorkbenchWindow window) {
        super.init(window);
        IDebugContextService service = DebugUITools.getDebugContextManager().getContextService(window);
        service.addDebugContextListener(fContextListener);
        ISelection activeContext = service.getActiveContext();
        fContextListener.contextActivated(activeContext);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.ui.contexts.IDebugContextService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.