Search in sources :

Example 1 with ServerWorkingCopy

use of org.eclipse.wst.server.core.internal.ServerWorkingCopy in project webtools.servertools by eclipse.

the class SetPublisherEnablementCommand method execute.

/**
 * Execute the command.
 */
public void execute() {
    ServerWorkingCopy swc = (ServerWorkingCopy) server;
    oldEnabled = swc.isPublisherEnabled(pub);
    swc.setPublisherEnabled(pub, enabled);
}
Also used : ServerWorkingCopy(org.eclipse.wst.server.core.internal.ServerWorkingCopy) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Example 2 with ServerWorkingCopy

use of org.eclipse.wst.server.core.internal.ServerWorkingCopy in project webtools.servertools by eclipse.

the class SetPublisherEnablementCommand method undo.

/**
 * Undo the command.
 */
public void undo() {
    ServerWorkingCopy swc = (ServerWorkingCopy) server;
    swc.setPublisherEnabled(pub, oldEnabled);
}
Also used : ServerWorkingCopy(org.eclipse.wst.server.core.internal.ServerWorkingCopy) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Example 3 with ServerWorkingCopy

use of org.eclipse.wst.server.core.internal.ServerWorkingCopy in project webtools.servertools by eclipse.

the class SetServerStopTimeoutCommand method undo.

/**
 * Undo the command.
 */
public void undo() {
    ServerWorkingCopy swc = (ServerWorkingCopy) server;
    swc.setStopTimeout(oldTime);
}
Also used : ServerWorkingCopy(org.eclipse.wst.server.core.internal.ServerWorkingCopy) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Example 4 with ServerWorkingCopy

use of org.eclipse.wst.server.core.internal.ServerWorkingCopy in project webtools.servertools by eclipse.

the class SetServerAutoPublishDefaultCommand method execute.

/**
 * Execute the command.
 */
public void execute() {
    ServerWorkingCopy swc = (ServerWorkingCopy) server;
    oldSetting = swc.getAutoPublishSetting();
    swc.setAutoPublishSetting(setting);
}
Also used : ServerWorkingCopy(org.eclipse.wst.server.core.internal.ServerWorkingCopy) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Example 5 with ServerWorkingCopy

use of org.eclipse.wst.server.core.internal.ServerWorkingCopy in project webtools.servertools by eclipse.

the class SetServerAutoPublishDefaultCommand method undo.

/**
 * Undo the command.
 */
public void undo() {
    ServerWorkingCopy swc = (ServerWorkingCopy) server;
    swc.setAutoPublishSetting(oldSetting);
}
Also used : ServerWorkingCopy(org.eclipse.wst.server.core.internal.ServerWorkingCopy) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Aggregations

ServerWorkingCopy (org.eclipse.wst.server.core.internal.ServerWorkingCopy)15 IServerWorkingCopy (org.eclipse.wst.server.core.IServerWorkingCopy)14 CoreException (org.eclipse.core.runtime.CoreException)3 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)2 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)2 IServerType (org.eclipse.wst.server.core.IServerType)2 WizardFragment (org.eclipse.wst.server.ui.wizard.WizardFragment)2 Test (org.junit.Test)2 IRuntimeWorkingCopy (org.eclipse.wst.server.core.IRuntimeWorkingCopy)1 IServer (org.eclipse.wst.server.core.IServer)1 RuntimeTypeWithServerProxy (org.eclipse.wst.server.core.internal.RuntimeTypeWithServerProxy)1 RuntimeWorkingCopy (org.eclipse.wst.server.core.internal.RuntimeWorkingCopy)1