use of org.jkiss.dbeaver.ui.IHelpContextIdProvider in project dbeaver by serge-rider.
the class EditObjectDialog method createDialogArea.
@Override
protected Control createDialogArea(Composite parent) {
getShell().setText(dialogPage.getTitle());
Composite group = (Composite) super.createDialogArea(parent);
GridData gd = new GridData(GridData.FILL_BOTH);
group.setLayoutData(gd);
dialogPage.createControl(group);
if (dialogPage instanceof IHelpContextIdProvider) {
UIUtils.setHelp(dialogPage.getControl(), ((IHelpContextIdProvider) dialogPage).getHelpContextId());
}
return group;
}
use of org.jkiss.dbeaver.ui.IHelpContextIdProvider in project dbeaver by dbeaver.
the class BaseObjectEditPage method performHelp.
@Override
public void performHelp() {
if (this instanceof IHelpContextIdProvider) {
IWorkbenchHelpSystem helpSystem = UIUtils.getActiveWorkbenchWindow().getWorkbench().getHelpSystem();
if (helpSystem != null) {
String helpContextId = ((IHelpContextIdProvider) this).getHelpContextId();
IContext helpContext = new IContext() {
@Override
public IHelpResource[] getRelatedTopics() {
return new IHelpResource[] { new IHelpResource() {
@Override
public String getHref() {
return helpContextId;
}
@Override
public String getLabel() {
return helpContextId;
}
} };
}
@Override
public String getText() {
return helpContextId;
}
};
helpSystem.displayHelp(helpContext);
}
}
}
use of org.jkiss.dbeaver.ui.IHelpContextIdProvider in project dbeaver by serge-rider.
the class BaseObjectEditPage method performHelp.
@Override
public void performHelp() {
if (this instanceof IHelpContextIdProvider) {
IWorkbenchHelpSystem helpSystem = UIUtils.getActiveWorkbenchWindow().getWorkbench().getHelpSystem();
if (helpSystem != null) {
String helpContextId = ((IHelpContextIdProvider) this).getHelpContextId();
IContext helpContext = new IContext() {
@Override
public IHelpResource[] getRelatedTopics() {
return new IHelpResource[] { new IHelpResource() {
@Override
public String getHref() {
return helpContextId;
}
@Override
public String getLabel() {
return helpContextId;
}
} };
}
@Override
public String getText() {
return helpContextId;
}
};
helpSystem.displayHelp(helpContext);
}
}
}
use of org.jkiss.dbeaver.ui.IHelpContextIdProvider in project dbeaver by dbeaver.
the class EditObjectDialog method createDialogArea.
@Override
protected Control createDialogArea(Composite parent) {
getShell().setText(dialogPage.getTitle());
Composite group = (Composite) super.createDialogArea(parent);
GridData gd = new GridData(GridData.FILL_BOTH);
group.setLayoutData(gd);
dialogPage.createControl(group);
if (dialogPage instanceof IHelpContextIdProvider) {
UIUtils.setHelp(dialogPage.getControl(), ((IHelpContextIdProvider) dialogPage).getHelpContextId());
}
return group;
}
Aggregations