@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { value= text.getText(); } else { value= null; } super.buttonPressed(buttonId); } /* (non-Javadoc)
protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { // was the details button pressed? toggleDetailsArea(); } else { super.buttonPressed(id); } }
protected void buttonPressed( int buttonId ) { if ( buttonId == IDialogConstants.OK_ID ) { this.selectStr = cCombo.getText( ); } super.buttonPressed( buttonId ); }
@Override protected void buttonPressed(int id) { if (id == IDialogConstants.DETAILS_ID) { // was the details button pressed? toggleDetailsArea(); } else { super.buttonPressed(id); } }
protected void buttonPressed(int buttonId) { if ( buttonId == IDialogConstants.OK_ID ) { this.columnName = columnNameText.getText( ); this.xpath = xPathExpressionText.getText( ); this.type = typeCombo.getItem(typeCombo.getSelectionIndex()); } super.buttonPressed(buttonId); }
protected void buttonPressed(int buttonId) { if (buttonId == OK) { if (!fCompareEditorInput.okPressed()) return; } else if (buttonId == CANCEL) { fCompareEditorInput.cancelPressed(); } super.buttonPressed(buttonId); }
@Override protected void buttonPressed(int buttonId) { if (RESET_ID == buttonId) { resetPressed(); } else if (SELECT_ID == buttonId) { workingSetGroup.selectPressed(); } else { super.buttonPressed(buttonId); } }
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.CLOSE_ID) { storeSettings(); close(); } super.buttonPressed(buttonId); }
@Override protected void buttonPressed(int buttonId) { if (buttonId == OK) { if (!fCompareEditorInput.okPressed()) return; } else if (buttonId == CANCEL) { fCompareEditorInput.cancelPressed(); } super.buttonPressed(buttonId); }
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.CLOSE_ID) { storeSettings(); close(); } super.buttonPressed(buttonId); }
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { writeContextPreference(IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_TYPE, Integer.toString(currentSelection)); IPreferenceStore store = IDEWorkbenchPlugin.getDefault().getPreferenceStore(); store.putValue(IDEInternalPreferences.IMPORT_FILES_AND_FOLDERS_RELATIVE, Boolean.toString(variable != null)); } super.buttonPressed(buttonId); }
/** * {@inheritDoc} */ protected void buttonPressed(final int buttonId) { if (buttonId == IDialogConstants.OK_ID) { fData.setRefactoringAware(true); final RefactoringDescriptorProxy[] descriptors= fHistoryControl.getCheckedDescriptors(); Set set= new HashSet(); IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot(); for (int index= 0; index < descriptors.length; index++) { final String project= descriptors[index].getProject(); if (project != null && !"".equals(project)) //$NON-NLS-1$ set.add(root.getProject(project)); } fData.setRefactoringProjects((IProject[]) set.toArray(new IProject[set.size()])); fData.setRefactoringDescriptors(descriptors); fData.setExportStructuralOnly(fExportStructural.getSelection()); final IDialogSettings settings= fSettings; if (settings != null) settings.put(SETTING_SORT, fHistoryControl.isSortByProjects()); } super.buttonPressed(buttonId); }
@Override protected void buttonPressed(final int buttonId) { if (buttonId == IDialogConstants.OK_ID) { fData.setRefactoringAware(true); final RefactoringDescriptorProxy[] descriptors= fHistoryControl.getCheckedDescriptors(); Set<IProject> set= new HashSet<>(); IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot(); for (int index= 0; index < descriptors.length; index++) { final String project= descriptors[index].getProject(); if (project != null && !"".equals(project)) //$NON-NLS-1$ set.add(root.getProject(project)); } fData.setRefactoringProjects(set.toArray(new IProject[set.size()])); fData.setRefactoringDescriptors(descriptors); fData.setExportStructuralOnly(fExportStructural.getSelection()); final IDialogSettings settings= fSettings; if (settings != null) settings.put(SETTING_SORT, fHistoryControl.isSortByProjects()); } super.buttonPressed(buttonId); }
@Override protected void buttonPressed(final int buttonId) { if (buttonId == IDialogConstants.OK_ID) { fData.setRefactoringAware(true); final RefactoringDescriptorProxy[] descriptors= fHistoryControl.getCheckedDescriptors(); Set<IProject> set= new HashSet<>(); IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot(); for (int index= 0; index < descriptors.length; index++) { final String project= descriptors[index].getProject(); if (project != null && !"".equals(project)) //$NON-NLS-1$ set.add(root.getProject(project)); } fData.setRefactoringProjects(set.toArray(new IProject[set.size()])); fData.setRefactoringDescriptors(descriptors); fData.setExportStructuralOnly(fExportStructural.getSelection()); final IDialogSettings settings= fSettings; if (settings != null) settings.put(SETTING_SORT, fHistoryControl.isSortByProjects()); } super.buttonPressed(buttonId); }
@Override protected void buttonPressed(int id) { if (id == GOTO_ACTION_ID) { IAction gotoAction = getGotoAction(); if (gotoAction != null) { if (isPromptToClose()) { okPressed(); // close the dialog gotoAction.run(); // run the goto action } } } if (id == IDialogConstants.DETAILS_ID) { // was the details button pressed? dialogState.put(IStatusDialogConstants.DETAILS_OPENED, Boolean.valueOf( toggleDetailsArea())); } else { super.buttonPressed(id); } }
@Override protected void buttonPressed(int buttonId) { switch (buttonId) { case DETAILS_ID: BusyIndicator.showWhile(getShell().getDisplay(), () -> { IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); InstallationDialog dialog = new InstallationDialog(getShell(), workbenchWindow); dialog.setModalParent(AboutDialog.this); dialog.open(); }); break; default: super.buttonPressed(buttonId); break; } }