Package org.jtrim.concurrent

Examples of org.jtrim.concurrent.CancelableTask


        CancellationSource cancel = Cancellation.createCancellationSource();
        final ProgressHandle progress = createProgress(cancel.getController());

        progress.start();
        PROJECT_PROCESSOR.execute(cancel.getToken(), new CancelableTask() {
            @Override
            public void execute(CancellationToken cancelToken) {
                doRemoveProject(cancelToken);
            }
        }, new CleanupTask() {
View Full Code Here


            super(NbStrings.getJumpToSource());
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            ShowTestUtils.FILE_OPEN_PROCESSOR.execute(Cancellation.UNCANCELABLE_TOKEN, new CancelableTask() {
                @Override
                public void execute(CancellationToken cancelToken) {
                    jumpToSourcesNow();
                }
            }, null);
View Full Code Here

                    cancel.getController().cancel();
                    return true;
                }
            });

            ShowTestUtils.FILE_OPEN_PROCESSOR.execute(cancel.getToken(), new CancelableTask() {
                @Override
                public void execute(CancellationToken cancelToken) {
                    progress.start();
                    try {
                        doActionNow(cancelToken, e);
View Full Code Here

            }
        }

        @Override
        public void actionPerformed(final ActionEvent e) {
            ShowTestUtils.FILE_OPEN_PROCESSOR.execute(Cancellation.UNCANCELABLE_TOKEN, new CancelableTask() {
                @Override
                public void execute(CancellationToken cancelToken) {
                    doActionNow(e);
                }
            }, null);
View Full Code Here

TOP

Related Classes of org.jtrim.concurrent.CancelableTask

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.