Exemple #1
0
 public bool Equals(JavaImportObject iobj)
 {
     return(userProjectName.Equals(iobj.userProjectName) &&
            userPackageName.Equals(iobj.userPackageName) &&
            userObjectName.Equals(iobj.userObjectName) &&
            importPackageName.Equals(iobj.importPackageName) &&
            importObjectName.Equals(iobj.importObjectName));
 }
        public bool AddImport(JavaImportObject iobj)
        {
            JavaImportObject objinlist = imports.Find(x => x.Equals(iobj));

            if (objinlist == null)
            {
                imports.Add(iobj);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public bool AddImport(string userProjectName, string userPackageName, string userObjectName, string importPackageName, string importObjectName, bool isFileGenerationNeeded)
        {
            JavaImportObject obj = new JavaImportObject(userProjectName, userPackageName, userObjectName, importPackageName, importObjectName, isFileGenerationNeeded);

            return(AddImport(obj));
        }