protected void createImportLocation(Composite parent) { super.createImportLocation(parent); // create WSIL UI widgets createWSILStructure(fKindGroup); }
protected void buttonPressed(int id, boolean checked) { if (id == BID_BROWSE_WSIL) { if (checked == false) { return; } if (fBasePath == null || fBasePath.isEmpty()) { MessageDialog.openInformation( getShell(), Messages.SchemaImportDialogWithWSIL_Title, Messages.SchemaImportDialogWithWSIL_Message); Display.getDefault() .asyncExec( new Runnable() { @Override public void run() { fBtnWSIL.setSelection(false); fBtnResource.setSelection(true); buttonPressed(BID_BROWSE_WORKSPACE, true); } }); return; } } setVisibleControl( fWSILComposite, fImportSource == BID_BROWSE_WSIL && fImportType != BID_IMPORT_JAVA); if (fImportType != BID_IMPORT_JAVA) { setVisibleControl(fKindButtonComposite, true); setVisibleControl(fBrowseButton, true); fLocationLabel.setText(Messages.SchemaImportDialog_Location_Label); fBrowseButton.setText( fImportSource == BID_BROWSE_FILE || fImportSource == BID_BROWSE_WSIL ? Messages.SchemaImportDialog_Browse_Button : Messages.SchemaImportDialog_Load_Button); } super.buttonPressed(id, checked); }