Example usage for com.google.gwt.eclipse.core.preferences GWTPreferences setRemoveTerminatedLaunches

List of usage examples for com.google.gwt.eclipse.core.preferences GWTPreferences setRemoveTerminatedLaunches

Introduction

In this page you can find the example usage for com.google.gwt.eclipse.core.preferences GWTPreferences setRemoveTerminatedLaunches.

Prototype

public static void setRemoveTerminatedLaunches(boolean remove) 

Source Link

Document

Sets whether terminated launches should be cleared from the devmode view when a new launch is launched

Usage

From source file:com.google.gdt.eclipse.suite.preferences.ui.GooglePreferencePage.java

License:Open Source License

@Override
public boolean performOk() {
    boolean selection = updateNotificationCheckbox.getSelection();

    if (selection != updateNotificationsEnabledInitalValue) {
        GdtPreferences.setUpdateNotificationsEnabled(selection);
    }/*from ww  w. j a va 2s.c om*/

    boolean removeTerminatedLaunches = removeTerminatedLaunchesButton.getSelection();

    if (removeTerminatedLaunchesInitialValue != removeTerminatedLaunches) {
        GWTPreferences.setRemoveTerminatedLaunches(removeTerminatedLaunches);
    }

    performDeferredOk = true;

    return super.performOk();
}

From source file:com.google.gdt.eclipse.suite.preferences.ui.GwtPreferencePage.java

License:Open Source License

@Override
public boolean performOk() {
    boolean selectionUpdateNotification = updateNotificationCheckbox.getSelection();

    // Update Notifications
    if (selectionUpdateNotification != updateNotificationsEnabledInitalValue) {
        GdtPreferences.setUpdateNotificationsEnabled(selectionUpdateNotification);
    }//from   w  ww .  j  a  v a  2 s  .c om

    // Remove terminated launches
    boolean selectionRemoveTerminated = removeTerminatedLaunchesButton.getSelection();
    if (removeTerminatedLaunchesInitialValue != selectionRemoveTerminated) {
        GWTPreferences.setRemoveTerminatedLaunches(selectionRemoveTerminated);
    }

    // Capture Analytics
    boolean selectionAnalytics = analyticsButton.getSelection();
    if (analyticsInitialValue != selectionAnalytics) {
        GdtPreferences.setAnalytics(selectionAnalytics);
    }

    performDeferredOk = true;

    return super.performOk();
}