Search in sources :

Example 1 with ConfEditInput

use of com.cubrid.cubridmanager.ui.host.action.ConfEditInput in project cubrid-manager by CUBRID.

the class EditBrokerConfigEditor method init.

/**
	 * @see com.cubrid.common.ui.spi.part.CubridEditorPart#init(org.eclipse.ui.IEditorSite,
	 *      org.eclipse.ui.IEditorInput)
	 * @param site the editor site
	 * @param input the editor input
	 * @exception PartInitException if this editor was not initialized
	 *            successfully
	 */
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    super.init(site, input);
    if (input instanceof ConfEditInput) {
        editorInput = (ConfEditInput) input;
        ServerInfo serverInfo = editorInput.getServerInfo();
        contents = ConfigParaHelp.performGetBrokerConf(serverInfo);
    }
}
Also used : ConfEditInput(com.cubrid.cubridmanager.ui.host.action.ConfEditInput) ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo)

Example 2 with ConfEditInput

use of com.cubrid.cubridmanager.ui.host.action.ConfEditInput in project cubrid-manager by CUBRID.

the class EditCmConfigEditor method init.

/**
	 * @see com.cubrid.common.ui.spi.part.CubridEditorPart#init(org.eclipse.ui.IEditorSite,
	 *      org.eclipse.ui.IEditorInput)
	 * @param site the editor site
	 * @param input the editor input
	 * @exception PartInitException if this editor was not initialized
	 *            successfully
	 */
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    super.init(site, input);
    if (input instanceof ConfEditInput) {
        editorInput = (ConfEditInput) input;
        ServerInfo serverInfo = editorInput.getServerInfo();
        contents = ConfigParaHelp.performGetCmConf(serverInfo);
    }
}
Also used : ConfEditInput(com.cubrid.cubridmanager.ui.host.action.ConfEditInput) ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo)

Example 3 with ConfEditInput

use of com.cubrid.cubridmanager.ui.host.action.ConfEditInput in project cubrid-manager by CUBRID.

the class EditCubridConfigEditor method init.

/**
	 * @see com.cubrid.common.ui.spi.part.CubridEditorPart#init(org.eclipse.ui.IEditorSite,
	 *      org.eclipse.ui.IEditorInput)
	 * @param site the editor site
	 * @param input the editor input
	 * @exception PartInitException if this editor was not initialized
	 *            successfully
	 */
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    super.init(site, input);
    if (input instanceof ConfEditInput) {
        editorInput = (ConfEditInput) input;
        ServerInfo serverInfo = editorInput.getServerInfo();
        contents = ConfigParaHelp.performGetCubridConf(serverInfo);
    }
}
Also used : ConfEditInput(com.cubrid.cubridmanager.ui.host.action.ConfEditInput) ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo)

Example 4 with ConfEditInput

use of com.cubrid.cubridmanager.ui.host.action.ConfEditInput in project cubrid-manager by CUBRID.

the class EditHAConfigEditor method init.

/**
	 * @see com.cubrid.common.ui.spi.part.CubridEditorPart#init(org.eclipse.ui.IEditorSite,
	 *      org.eclipse.ui.IEditorInput)
	 * @param site the editor site
	 * @param input the editor input
	 * @exception PartInitException if this editor was not initialized
	 *            successfully
	 */
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    super.init(site, input);
    if (input instanceof ConfEditInput) {
        editorInput = (ConfEditInput) input;
        ServerInfo serverInfo = editorInput.getServerInfo();
        contents = ConfigParaHelp.performGetHAConf(serverInfo);
    }
}
Also used : ConfEditInput(com.cubrid.cubridmanager.ui.host.action.ConfEditInput) ServerInfo(com.cubrid.cubridmanager.core.common.model.ServerInfo)

Example 5 with ConfEditInput

use of com.cubrid.cubridmanager.ui.host.action.ConfEditInput in project cubrid-manager by CUBRID.

the class EditConfigEditor method init.

/**
	 * @see com.cubrid.common.ui.spi.part.CubridEditorPart#init(org.eclipse.ui.IEditorSite,
	 *      org.eclipse.ui.IEditorInput)
	 * @param site the editor site
	 * @param input the editor input
	 * @exception PartInitException if this editor was not initialized
	 *            successfully
	 */
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
    if (input instanceof ConfEditInput) {
        setSite(site);
        setInput(input);
        ConfEditInput editInput = (ConfEditInput) input;
        String title = this.getPartName();
        String partName = title + " - " + input.getName() + "@" + editInput.getServerName() + ":" + editInput.getServerPort();
        this.setTitleToolTip(partName);
        this.setPartName(partName);
    }
}
Also used : ConfEditInput(com.cubrid.cubridmanager.ui.host.action.ConfEditInput)

Aggregations

ConfEditInput (com.cubrid.cubridmanager.ui.host.action.ConfEditInput)7 ServerInfo (com.cubrid.cubridmanager.core.common.model.ServerInfo)4 IEditorInput (org.eclipse.ui.IEditorInput)2 ExportConfigDialog (com.cubrid.cubridmanager.ui.host.dialog.ExportConfigDialog)1 ImportConfigDialog (com.cubrid.cubridmanager.ui.host.dialog.ImportConfigDialog)1