if (myCreateInverseFK) { String inverseFKName = myInverseFKNameText.getText(); myRelationship.createForeignKeyAndJoin(inverseFKName, inverseFKName); }
	protected void okPressed() {		buttonBar.forceFocus();		try {			String name = myNameText.getText();			String inverseName = myInverseNameText.getText();			if (myManyToMany) {				String joinEntityName = myJoinEntityNameText.getText();				boolean flatten = myFlattenButton.getSelection();				myEntity1.joinInManyToManyWith(myEntity2, name, inverseName, joinEntityName, flatten);			}			else {				if (myCreateButton.getSelection()) {					myRelationship.setName(name);					myRelationship.setToMany(Boolean.valueOf(myToManyButton.getSelection()));					if (myCreateFK) {						myRelationship.removeAllJoins();						if (myCreateFK) {							String fkName = myFKNameText.getText();							myRelationship.createForeignKeyAndJoin(fkName, fkName);						}					}					myRelationship.setMandatoryIfNecessary();					myRelationship.getEntity().addRelationship(myRelationship);				}				if (myCreateInverseButton.getSelection()) {					myInverseRelationship = myRelationship.createInverseRelationshipNamed(inverseName, myInverseToManyButton.getSelection());					if (myCreateInverseFK) {						String inverseFKName = myInverseFKNameText.getText();						myRelationship.createForeignKeyAndJoin(inverseFKName, inverseFKName);					}					myInverseRelationship.setMandatoryIfNecessary();					myInverseRelationship.getEntity().addRelationship(myInverseRelationship);				}			}			super.okPressed();		} catch (Throwable t) {			ErrorUtils.openErrorDialog(Display.getDefault().getActiveShell(), t);		}	}