private void handleFilter() { boolean changed = false; String newFilter; if (fFilterText == null || (newFilter = fFilterText.getText().trim()).length() == 0) newFilter = "*"; // $NON-NLS-1$ changed = fAvailableFilter.setPattern(newFilter); if (changed) { fAvailableListViewer.refresh(); updateButtonEnablement(false, false); } }
@Override protected void okPressed() { libraryName = libraryText.getText(); super.okPressed(); }
/* (non-Javadoc) * @see org.eclipse.jface.wizard.WizardPage#isPageComplete() */ public boolean isPageComplete() { if (fNameText.getText().trim().length() == 0) return false; return true; }
@Override public int open() { libraryText.setText("library.jar"); // $NON-NLS-1$ libraryText.setSelection(0, libraryText.getText().length() - 4); return super.open(); }