List of usage examples for com.google.gwt.eclipse.core.preferences GWTPreferences getRemoveTerminatedLaunches
public static boolean getRemoveTerminatedLaunches()
From source file:com.google.gdt.eclipse.suite.preferences.ui.GooglePreferencePage.java
License:Open Source License
@Override protected Control createContents(Composite parent) { noDefaultAndApplyButton();//from w w w.j a v a2 s. c o m Composite panel = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; panel.setLayout(layout); updateNotificationCheckbox = new Button(panel, SWT.CHECK); GridData autoUpdateGridData = new GridData(); autoUpdateGridData.horizontalSpan = 2; updateNotificationCheckbox.setLayoutData(autoUpdateGridData); updateNotificationCheckbox.setText("Notify me about updates"); updateNotificationsEnabledInitalValue = GdtPreferences.areUpdateNotificationsEnabled(); updateNotificationCheckbox.setSelection(updateNotificationsEnabledInitalValue); removeTerminatedLaunchesButton = new Button(panel, SWT.CHECK); GridData removeTerminatedGridData = new GridData(); removeTerminatedGridData.horizontalSpan = 2; removeTerminatedLaunchesButton.setLayoutData(removeTerminatedGridData); // Remove terminated launches when a new launch is created removeTerminatedLaunchesButton.setText("Remove terminated launches from " + "Development Mode view"); removeTerminatedLaunchesInitialValue = GWTPreferences.getRemoveTerminatedLaunches(); removeTerminatedLaunchesButton.setSelection(removeTerminatedLaunchesInitialValue); jsoDetailFormattingButton = new Button(panel, SWT.CHECK); GridData jsoDetailFormattingGridData = new GridData(); jsoDetailFormattingGridData.horizontalSpan = 2; jsoDetailFormattingButton.setLayoutData(jsoDetailFormattingGridData); jsoDetailFormattingButton.setText("Display Javascript object properties"); jsoDetailFormattingInitialValue = GWTPreferences.getJsoDetailFormatting(); jsoDetailFormattingButton.setSelection(jsoDetailFormattingInitialValue); return panel; }
From source file:com.google.gdt.eclipse.suite.preferences.ui.GwtPreferencePage.java
License:Open Source License
@Override protected Control createContents(Composite parent) { noDefaultAndApplyButton();/* w w w . j a v a 2s. co m*/ Composite panel = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 2; layout.marginWidth = 0; layout.marginHeight = 0; panel.setLayout(layout); // Update Notifiations updateNotificationCheckbox = new Button(panel, SWT.CHECK); GridData autoUpdateGridData = new GridData(); autoUpdateGridData.horizontalSpan = 2; updateNotificationCheckbox.setLayoutData(autoUpdateGridData); updateNotificationCheckbox.setText("Notify me about updates"); updateNotificationsEnabledInitalValue = GdtPreferences.areUpdateNotificationsEnabled(); updateNotificationCheckbox.setSelection(updateNotificationsEnabledInitalValue); // Remove Terminated removeTerminatedLaunchesButton = new Button(panel, SWT.CHECK); GridData removeTerminatedGridData = new GridData(); removeTerminatedGridData.horizontalSpan = 2; removeTerminatedLaunchesButton.setLayoutData(removeTerminatedGridData); // Remove terminated launches when a new launch is created removeTerminatedLaunchesButton.setText("Remove terminated launches from " + "Development Mode view"); removeTerminatedLaunchesInitialValue = GWTPreferences.getRemoveTerminatedLaunches(); removeTerminatedLaunchesButton.setSelection(removeTerminatedLaunchesInitialValue); // Display JSO properties jsoDetailFormattingButton = new Button(panel, SWT.CHECK); GridData jsoDetailFormattingGridData = new GridData(); jsoDetailFormattingGridData.horizontalSpan = 2; jsoDetailFormattingButton.setLayoutData(jsoDetailFormattingGridData); jsoDetailFormattingButton.setText("Display Javascript object properties"); jsoDetailFormattingInitialValue = GWTPreferences.getJsoDetailFormatting(); jsoDetailFormattingButton.setSelection(jsoDetailFormattingInitialValue); // Capture Analytics String shareAnon = "Share anonymous usage statistics of the GWT Eclipse Plugin with the GWT Community.\n" + "This helps provide a reason to continue development."; analyticsInitialValue = GdtPreferences.getCaptureAnalytics(); analyticsButton = new Button(panel, SWT.CHECK); GridData analtyicsGridData = new GridData(); analtyicsGridData.horizontalSpan = 2; analyticsButton.setLayoutData(analtyicsGridData); analyticsButton.setText(shareAnon); analyticsButton.setSelection(analyticsInitialValue); return panel; }