• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Project / Folder Management

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am writing a program which is able to take screenshots of a webpage and obtain the page source.

I am not sure about the term that is used but I want to be able to perform some project / folder management.

The user can start a new project, which will obtain the project name, path, user name, and the user email.
All output created will be stored in the path with the specified project name as the folder name, and the user can view all output generated. I want to be able to email the user as well for a future feature.
The user will be able to open another project, and close the current one.

I know I can store information permanently through using Properties or a text file so I can generate a file for each project to save the user's information, but I want a clearer idea behind how this is usually achieved. Any pointers?
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shachen Han wrote:The user can start a new project, which will obtain the project name, path, user name, and the user email.
All output created will be stored in the path with the specified project name as the folder name, and the user can view all output generated. I want to be able to email the user as well for a future feature.


I'm afraid that's a very vague description. What output? From where?

The user will be able to open another project, and close the current one.


I presume then that they can only have one "open" project at a time.

I know I can store information permanently through using Properties or a text file so I can generate a file for each project to save the user's information, but I want a clearer idea behind how this is usually achieved. Any pointers?


I'd suggest starting here; but if you need other ways of doing it, XML springs to mind...

I am writing a program which is able to take screenshots of a webpage and obtain the page source.


I'm not quite sure what this has to do with anything, but hopefully you'll let us know.

Winston
 
Shachen Han
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Winston Gutkowski wrote:I'm afraid that's a very vague description. What output? From where?



My program is supposed to take screenshots from a webpage as well as obtain the page source of the webpage (I am doing this with Selenium WebDriver). The outputs I am expecting are the screenshots and page source that the program has obtained. It will be stored in the project folder the user has specified. Through the program, the user can view the images and page source in text.

I presume then that they can only have one "open" project at a time.



Yes, I only intend to have one project at a time.

Thanks for the suggestion, I have looked it through. So how is the project / folder management usually carried out? What's the workflow behind it? Do I create property files for each project to track the given information? Do I also need to create my own project file extension to be opened for my particular program? I see this is the case in many other programs such as Word or Photoshop.

 
Winston Gutkowski
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shachen Han wrote:So how is the project / folder management usually carried out? What's the workflow behind it? Do I create property files for each project to track the given information?


Well, it seems like there are two things going on here: You have a bunch of projects that have files in them. You also have a bunch of users creating projects. Now you also talk about URLs: Does that mean that each user will be responsible for their OWN project(s) - ie, will they be on their own machines? Or will they be kept on a local file system somewhere?

If the latter, I suspect you don't need anything except a directory structure. If the first, then you'll probably need a property file of the form:and then some way of writing subdirectories and files to the root directory URL you're given.

Do I also need to create my own project file extension to be opened for my particular program? I see this is the case in many other programs such as Word or Photoshop.


Probably not. File extensions are usually registered with the Operating system; and that's quite a major task - which every person using your system would then have to do. Just have them run your program; IT should know what files it has to read.

Winston
 
Shachen Han
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see, thanks a bunch I have a better idea of what to do now.
reply
    Bookmark Topic Watch Topic
  • New Topic