Search in sources :

Example 1 with BundleFactoryDelegate

use of com.liferay.ide.project.core.BundleFactoryDelegate in project liferay-ide by liferay.

the class PortalSourceLookupTests method addProjectToServer.

private IServer addProjectToServer(IProject project, IServer server) throws CoreException {
    IServerWorkingCopy serverWorkingCopy = server.createWorkingCopy();
    IModule module = new BundleFactoryDelegate().createSimpleModule(project);
    serverWorkingCopy.modifyModules(new IModule[] { module }, null, _NPM);
    return serverWorkingCopy.save(true, _NPM);
}
Also used : IModule(org.eclipse.wst.server.core.IModule) BundleFactoryDelegate(com.liferay.ide.project.core.BundleFactoryDelegate) IServerWorkingCopy(org.eclipse.wst.server.core.IServerWorkingCopy)

Aggregations

BundleFactoryDelegate (com.liferay.ide.project.core.BundleFactoryDelegate)1 IModule (org.eclipse.wst.server.core.IModule)1 IServerWorkingCopy (org.eclipse.wst.server.core.IServerWorkingCopy)1