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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations