Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Red Hat, Inc. and/or its affiliates.
  *
  * Licensed under the Eclipse Public License version 1.0, available at
  * http://www.eclipse.org/legal/epl-v10.html
  */
 package org.jboss.forge.maven;
 

Author(s):
Lincoln Baxter, III
public class ProjectImpl extends BaseProject
   private DirectoryResource projectRoot = null;
   private final ProjectFactory factory;
   public ProjectImpl(final ProjectFactory factoryfinal DirectoryResource dir)
   {
      this. = factory;
      this. = dir;
   }
   @Override
   public <F extends Facet> F getFacet(final Class<F> type)
   {
      try
      {
         return super.getFacet(type);
      }
      catch (FacetNotFoundException e)
      {
         .registerSingleFacet(thistype);
         return super.getFacet(type);
      }
   }
   @Override
   {
      return ;
   }
   @Override
   public boolean exists()
   {
      return ( != null) && .exists();
   }
   @Override
   public String toString()
   {
      return "ProjectImpl [" + getProjectRoot() + "]";
   }
New to GrepCode? Check out our FAQ X