Package org.eclipse.jdt.internal.ui.callhierarchy

Examples of org.eclipse.jdt.internal.ui.callhierarchy.CancelSearchAction


        try {
            Field fCancelSearchActionField = callHiearachyClass.getDeclaredField(CallHierarchyTracker.CANCEL_SEARCH_ACTION_ATTRIBUTE);
            fCancelSearchActionField.setAccessible(true);
            Object cancelSearchActionObj = fCancelSearchActionField.get(callHierarchyPart);
            if (!(cancelSearchActionObj instanceof CancelSearchAction)) return;
            CancelSearchAction cancelSearchAction = (CancelSearchAction) cancelSearchActionObj;
            // TODO: maybe handle InterruptedExcpetions appropriately
            while(cancelSearchAction.isEnabled()) {
                Thread.sleep(sleepTime());                               
            }
        } catch (Exception e) {
            Log.error(e);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.callhierarchy.CancelSearchAction

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.