use of org.jboss.tools.openshift.internal.ui.property.OpenShiftResourceInput in project jbosstools-openshift by jbosstools.
the class EditResourceHandler method openInEditor.
private void openInEditor(IWorkbenchWindow window, Connection connection, IResource resource) throws PartInitException {
IStorageEditorInput input = new OpenShiftResourceInput(connection, resource);
IWorkbenchPage page = window.getActivePage();
if (page != null) {
IEditorRegistry editorRegistry = PlatformUI.getWorkbench().getEditorRegistry();
String defaultJsonEditorId = getDefaultJSONEditorDescriptorId(editorRegistry);
page.openEditor(input, defaultJsonEditorId);
}
}
Aggregations