Package org.erlide.tracing.core.ui.dialogs

Examples of org.erlide.tracing.core.ui.dialogs.RunnableWithProgress


                        .getLocation().toString());
                // dialog.setFilterExtensions(new String[] { "*.*" });
                dialog.setText("Load trace data...");
                final String selected = dialog.open();
                if (selected != null) {
                    task = new RunnableWithProgress("Load trace data...") {
                        @Override
                        public void doAction() {
                            TraceBackend.getInstance().loadFile(selected);
                        }
                    };
View Full Code Here


    private void doSelection(final SelectionChangedEvent event) {
        final IStructuredSelection selection = (IStructuredSelection) event
                .getSelection();
        final ITreeNode treeNode = (ITreeNode) selection.getFirstElement();
        if (treeNode != null) {
            task = new RunnableWithProgress("Loading trace results...") {
                @Override
                public void doAction() {
                    TraceBackend.getInstance().setActiveResultSet(
                            (TracingResultsNode) treeNode);
                    final int limit = Activator.getDefault().getPreferenceStore()
View Full Code Here

    /**
     * Method called when starting tracing.
     */
    private void doStartTracing() {
        try {
            task = new RunnableWithProgress("Starting tracing") {

                @Override
                public void doAction() {
                    status = TraceBackend.getInstance().start();
                    finish();
View Full Code Here

    /**
     * Method called when stopping tracing.
     */
    private void doStopTracing() {
        task = new RunnableWithProgress("Loading trace results...") {
            @Override
            public void doAction() {
                TraceBackend.getInstance().stop();
            }
        };
View Full Code Here

                .getImage(ISharedImages.IMG_TOOL_BACK));
        previousButton.addSelectionListener(new SelectionAdapter() {

            @Override
            public void widgetSelected(final SelectionEvent e) {
                task = new RunnableWithProgress("Loading trace results...") {
                    @Override
                    public void doAction() {
                        final int limit = Activator.getDefault().getPreferenceStore()
                                .getInt(PreferenceNames.TRACES_LOAD_LIMIT);
                        final long startIndex = Math.max(1L, index - limit);
                        final long endIndex = startIndex + limit - 1;
                        TraceBackend.getInstance().loadDataFromFile(startIndex, endIndex);
                    }
                };
                executeTask();
            }
        });

        // "Next" button
        nextButton = new Button(buttonsPanel, SWT.PUSH | SWT.CENTER);
        nextButton.setToolTipText("Show next trace set");
        nextButton.setImage(PlatformUI.getWorkbench().getSharedImages()
                .getImage(ISharedImages.IMG_TOOL_FORWARD));
        nextButton.addSelectionListener(new SelectionAdapter() {

            @Override
            public void widgetSelected(final SelectionEvent e) {
                task = new RunnableWithProgress("Loading trace results...") {
                    @Override
                    public void doAction() {
                        final int limit = Activator.getDefault().getPreferenceStore()
                                .getInt(PreferenceNames.TRACES_LOAD_LIMIT);
                        final long endIndex = Math
View Full Code Here

        updateButtonsPanel();
    }

    private void doSelection() {
        task = new RunnableWithProgress("Loading trace results...") {
            @Override
            public void doAction() {
                final int limit = Activator.getDefault().getPreferenceStore()
                        .getInt(PreferenceNames.TRACES_LOAD_LIMIT);
                TraceBackend.getInstance().loadDataFromFile(index, index + limit - 1);
View Full Code Here

TOP

Related Classes of org.erlide.tracing.core.ui.dialogs.RunnableWithProgress

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.