Search in sources :

Example 1 with IServerEditorInput

use of org.eclipse.wst.server.ui.internal.editor.IServerEditorInput in project webtools.servertools by eclipse.

the class ServerUIPlugin method editServer.

/**
 * Open the given server id with the server editor.
 *
 * @param serverId
 */
protected static void editServer(String serverId) {
    if (serverId == null)
        return;
    IWorkbenchWindow workbenchWindow = ServerUIPlugin.getInstance().getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage page = workbenchWindow.getActivePage();
    try {
        IServerEditorInput input = new ServerEditorInput(serverId);
        page.openEditor(input, IServerEditorInput.EDITOR_ID);
    } catch (Exception e) {
        if (Trace.SEVERE) {
            Trace.trace(Trace.STRING_SEVERE, "Error opening server editor", e);
        }
    }
}
Also used : IServerEditorInput(org.eclipse.wst.server.ui.internal.editor.IServerEditorInput) ServerEditorInput(org.eclipse.wst.server.ui.internal.editor.ServerEditorInput) IServerEditorInput(org.eclipse.wst.server.ui.internal.editor.IServerEditorInput)

Aggregations

IServerEditorInput (org.eclipse.wst.server.ui.internal.editor.IServerEditorInput)1 ServerEditorInput (org.eclipse.wst.server.ui.internal.editor.ServerEditorInput)1