use of org.eclipse.jface.wizard.IWizardPage in project cubrid-manager by CUBRID.
the class SetAutoAddVolumeInfoPage method pageChanged.
/**
* Call this method when page changed
*
* @param event the page changed event
*/
public void pageChanged(PageChangedEvent event) {
IWizardPage page = (IWizardPage) event.getSelectedPage();
if (page.getName().equals(PAGENAME)) {
VolumeInfoPage volumeInfoPage = (VolumeInfoPage) getWizard().getPage(VolumeInfoPage.PAGENAME);
volumeList = volumeInfoPage.getVolumeList();
changeButtonStatus(true);
}
}
use of org.eclipse.jface.wizard.IWizardPage in project cubrid-manager by CUBRID.
the class PartitionEditHashPage method pageChanged.
/**
* Call this method when page changed
*
* @param event the page changed event
*/
public void pageChanged(PageChangedEvent event) {
IWizardPage page = (IWizardPage) event.getSelectedPage();
if (page.getName().equals(PAGENAME)) {
PartitionTypePage partitionTypePage = (PartitionTypePage) getWizard().getPage(PartitionTypePage.PAGENAME);
String partitionType = partitionTypePage.getPartitionType();
String partitionExpr = partitionTypePage.getPartitionExpr();
partitionTypeText.setText(partitionType);
partitionExprText.setText(partitionExpr);
partitionNumText.selectAll();
partitionNumText.setFocus();
}
}
use of org.eclipse.jface.wizard.IWizardPage in project dbeaver by serge-rider.
the class MultiPageWizardDialog method updateButtons.
@Override
public void updateButtons() {
boolean complete = true;
for (TreeItem item : pagesTree.getItems()) {
if (item.getData() instanceof IWizardPage) {
IWizardPage page = (IWizardPage) item.getData();
if (page.getControl() != null && !page.isPageComplete()) {
complete = false;
break;
}
}
}
Button button = getButton(IDialogConstants.OK_ID);
if (button != null && !button.isDisposed()) {
button.setEnabled(complete);
}
}
use of org.eclipse.jface.wizard.IWizardPage in project cubrid-manager by CUBRID.
the class ChangeTablesPage method pageChanged.
/**
* @see org.eclipse.jface.dialogs.IPageChangedListener#pageChanged(org.eclipse.jface.dialogs.PageChangedEvent)
* @param event PageChangedEvent
*/
public void pageChanged(PageChangedEvent event) {
IWizardPage page = (IWizardPage) event.getSelectedPage();
if (page.getName().equals(PAGENAME)) {
SetDatabaseInfoPage selectDatabasePage = (SetDatabaseInfoPage) getWizard().getPage(SetDatabaseInfoPage.PAGENAME);
String ip = selectDatabasePage.getIp();
String port = selectDatabasePage.getPort();
String userName = selectDatabasePage.getUserName();
String password = selectDatabasePage.getPassword();
String dbName = selectDatabasePage.getMasterDbName();
String dbaPassword = selectDatabasePage.getMasterDbaPassword();
GetAllClassesTaskExecutor taskExcutor = new GetAllClassesTaskExecutor(getShell(), ip, port, userName, password, dbName, dbaPassword);
new ExecTaskWithProgress(taskExcutor).exec(true, true);
if (taskExcutor.isSuccess()) {
DBClasses dbClasses = taskExcutor.getDBClasses();
selectTableComp.fillTableViewer(dbClasses);
initialize();
setErrorMessage(null);
} else {
setErrorMessage(Messages.errPreviousPage);
}
}
}
use of org.eclipse.jface.wizard.IWizardPage in project cubrid-manager by CUBRID.
the class SelectTablesPage method pageChanged.
/**
* @see org.eclipse.jface.dialogs.IPageChangedListener#pageChanged(org.eclipse.jface.dialogs.PageChangedEvent)
* @param event PageChangedEvent
*/
public void pageChanged(PageChangedEvent event) {
setPageComplete(false);
IWizardPage page = (IWizardPage) event.getSelectedPage();
if (page.getName().equals(PAGENAME)) {
SlaveDbInfoPage slaveDbInfoPage = (SlaveDbInfoPage) getWizard().getPage(SlaveDbInfoPage.PAGENAME);
String ip = slaveDbInfoPage.getReplInfo().getMasterList().get(0).getMasterIp();
String port = slaveDbInfoPage.getMasterHostPort();
String userName = "admin";
String password = slaveDbInfoPage.getMasterHostPassword();
String mdbName = slaveDbInfoPage.getMasterDbName();
String mdbDbaPassword = slaveDbInfoPage.getMasterDbDbaPassword();
GetAllClassesTaskExecutor taskExcutor = new GetAllClassesTaskExecutor(getShell(), ip, port, userName, password, mdbName, mdbDbaPassword);
new ExecTaskWithProgress(taskExcutor).exec();
if (taskExcutor.isSuccess()) {
DBClasses dbClasses = taskExcutor.getDBClasses();
selectTableComp.fillTableViewer(dbClasses);
setErrorMessage(null);
setPageComplete(true);
} else {
setErrorMessage(Messages.errPreviousPage);
setPageComplete(false);
}
}
}
Aggregations