Package org.eclipse.php.internal.server.core

Examples of org.eclipse.php.internal.server.core.Server


      return;
    }
    IPath path = new Path(fDefaultBasePath.getText());
    defaultBasePath = fDefaultBasePath.getText();

    Server server = ServersManager.getServer(getSelectedServerName());
    autoGeneratedURL = generateBaseURL(server, path);
    dispalyAutoGeneratedURL(autoGeneratedURL);
  }
View Full Code Here


      }
      PHPLaunchUtilities.showDebugView();
    }

    // Resolve the Server
    Server server = ServersManager.getServer(configuration.getAttribute(
        Server.NAME, "")); //$NON-NLS-1$
    if (server == null) {
      Logger.log(Logger.ERROR,
          "Launch configuration could not find server"); //$NON-NLS-1$
      displayErrorMessage(PHPDebugCoreMessages.XDebug_WebLaunchConfigurationDelegate_1);
View Full Code Here

      monitor.done();
      return;
    }
    PHPLaunchUtilities.showDebugView();
    this.launch = launch;
    Server server = ServersManager.getServer(configuration.getAttribute(
        Server.NAME, "")); //$NON-NLS-1$
    if (server == null) {
      Logger.log(Logger.ERROR,
          "Launch configuration could not find server"); //$NON-NLS-1$
      terminated();
View Full Code Here

   */
  public boolean preLaunchCheck(final ILaunchConfiguration configuration,
      final String mode, IProgressMonitor monitor) throws CoreException {
    // Check if the server exists
    final String serverName = configuration.getAttribute(Server.NAME, ""); //$NON-NLS-1$
    Server server = ServersManager.getServer(serverName);
    if (server == null) {
      Display.getDefault().asyncExec(new Runnable() {
        public void run() {
          MessageDialog
              .openWarning(
View Full Code Here

   */
  public static String getBaseUrl(ILaunchConfiguration configuration, IScriptProject project, AppKernel kernel)
      throws CoreException {
   
    ILaunchConfigurationWorkingCopy wc = configuration.getWorkingCopy();   
    Server server = ServersManager.getServer(configuration.getAttribute(
        Server.NAME, ""));
   
    if (kernel == null)
      return null;
   
   
    String env = kernel.getEnvironment();
    wc.setAttribute(SymfonyServer.ENVIRONMENT, env);
    wc.doSave();
   
    boolean isVhost = isVirtualHost(server, kernel);

    String base = "";
   
    if (isVhost) {
      base = String.format("%s/%s", server.getBaseURL(), kernel.getScript());
    } else {
      base = String.format("%s/%s/%s", server.getBaseURL(), project.getElementName(), kernel.getPath());     
    }
   
    return base;
   
  }
View Full Code Here

 
 
  @Override
  protected void createLocalServersGroup(Group group, int numColumns) {
    Server[] servers = ServersManager.getServers();
    Server defaultServer = ServersManager.getDefaultServer(null);
    int initialSelection = 0;
   
    List<String> docRoots = new ArrayList<String>();
    for (int i = 0; i < servers.length; i++) {
     
      String docRoot = servers[i].getDocumentRoot();
      if (docRoot != null && !"".equals(docRoot.trim())) { //$NON-NLS-1$
        if (defaultServer != null && defaultServer.getBaseURL().equals(servers[i].getBaseURL())) {
          initialSelection = i;
        }
        docRoots.add(docRoot);
      }
    }
View Full Code Here

          if (!firstPage.isInLocalServer()) {
            return;
          }

          Server server = createServer();
          LaunchConfigurationHelper.createLaunchConfiguration(getProject(), server, getProject().getFile(new Path("web/app_dev.php")));

    } catch (Exception e) {
      Logger.logException(e);
    }
View Full Code Here

        return null;
    }

    protected Server createServer() throws MalformedURLException {
      Server server = ServersManager.createServer(getProject().getName(), ((SymfonyProjectWizardFirstPage)firstPage).getVirtualHost());
      server.setDocumentRoot(getProject().getRawLocation().append("web").toOSString());
      ServersManager.addServer(server);
      ServersManager.save();
      return server;
    }
View Full Code Here

                    if (contentType.isAssociatedWith(file.getName())) {
                        phpPathString = file.getFullPath().toString();
                    }
                }

                Server defaultServer = ServersManager.getDefaultServer(project);
                if (defaultServer == null) {
                    PHPDebugPlugin.createDefaultPHPServer();
                    defaultServer = ServersManager.getDefaultServer(project);
                    if (defaultServer == null) {
                        // Sould not happen
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.server.core.Server

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.