url = dialog.getURL(); // will be null or empty or contain URL
// parse the note description and get back the note context
String noteContextXML = getEmbetClient().submitNote( null, dialog.getText(), userID, url );
ContextSelectionDialog cDialog = new ContextSelectionDialog( parent.getShell(),
ContextSelectionDialog.Type.Note,
new StringReader( noteContextXML ) );
cDialog.open();
getEmbetClient().submitNoteContext( cDialog.getNoteID(), cDialog.getSelectedIDs(), userID );
reloadContent();
}
}
};