use of com.cubrid.common.ui.cubrid.user.editor.UsersDashboardInput in project cubrid-manager by CUBRID.
the class OpenTargetAction method openUsersDetailInfoEditor.
/**
* open users detail info part
* @param database
*/
public void openUsersDetailInfoEditor(CubridDatabase database) {
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (null == window) {
return;
}
if (database == null) {
return;
}
/*Check it open same editor*/
IEditorPart editorPart = getOpenedEditorPart(database, UserDashboardEditorPart.ID);
if (editorPart == null) {
UsersDashboardInput input = new UsersDashboardInput(database);
try {
editorPart = window.getActivePage().openEditor(input, UserDashboardEditorPart.ID);
} catch (PartInitException e) {
LOGGER.error("Can not initialize the users view list UI.", e);
}
} else {
UserDashboardEditorPart userDetailInfoPart = (UserDashboardEditorPart) editorPart;
window.getActivePage().activate(userDetailInfoPart);
userDetailInfoPart.refresh();
}
}
Aggregations