/** Creates a single button named "close" that is in fact an OK button. */ @Override protected void createButtonsForButtonBar(Composite parent) { super.createButton(parent, OK, "Close", true); }
protected void initializeBounds() { super.createButton((Composite) getButtonBar(), CALCBTN_ID, "计算", false); super.createButton((Composite) getButtonBar(), IDialogConstants.OK_ID, "确定", true); super.createButton((Composite) getButtonBar(), IDialogConstants.CANCEL_ID, "取消", true); super.initializeBounds(); }
/** 添加确定按钮 @Override */ protected void initializeBounds() { super.createButton((Composite) getButtonBar(), IDialogConstants.OK_ID, "确定", true); super.initializeBounds(); }