View unanswered posts | View active topics



Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next
Project Manager Plugin Modification 
Author Message
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
I wanted to develop a Flash Develop Plugin so I though I modify an existing one to get an idea of how plugins work. I am making a modification to the Project Manager Plugin to add support for "Package" declaration to allow me to build more complex Project Templates.

I want to build project template for Cairngorm & PureMVC but I needed to know what package structure the user would be using and place some files within that structure. So I added a package field to the New Project dialog so that the user could specify a package (com.yahoo.apps) . The value enter would be inserted whereever the $(PACKAGENAME) keyword is found.

The trick is that you can use the filename to create the package directory structure. Suppose the user enters the following package name into the New Project dialog ( com.yahoo.apps ) . In the Project Template directory there could be a file named $(PACKAGENAME).model.MyClass.as . The New Project wizard would generated the following:

com/yahoo/apps/model/MyClass.as

And if the $(PACKAGENAME) keyword is found anywhere within the file it is also replaced. So basically I have everything work I just need to fix a few small bugs and I will release it for user testing.

_________________
Michael Ramirez
Sr. Web Developer


Thu Jun 28, 2007 6:14 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
Sounds good - if you keep it generic we can consider integrating it in the main base.


Thu Jun 28, 2007 6:27 pm
Profile WWW
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
I have downloaded the FD3 Beta 2 but I am not sure how to install my plugin modification. There is no ProjectManager.dll only ProjectExplorer.dll?

How To Use:
To utilize the package name entered via the New Project Wizard dialog box just create a directory and name it $(PACKAGENAME). Then just place any combination of files and subdirectories within the new directory.

Examples:
$(PACKAGENAME)
---| model
-------| EmployeeVO.as

Package Name: org.flashdevelop
Result: org\flashdevelop\model\EmployeeVO.as

Download
http://develop.gurufaction.com/fd3/projectmanager/ProjectManager.dll

_________________
Michael Ramirez
Sr. Web Developer


Last edited by michael_ramirez44 on Sat Jul 07, 2007 4:38 am, edited 1 time in total.



Fri Jun 29, 2007 6:59 am
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
I think you should provide a sample project template which leverages this new functionality.


Fri Jun 29, 2007 9:04 am
Profile WWW
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
Here is an example project template for the ProjectManager Mod. This template generates a PureMVC project. In writing this project template I noticed one issue. The $(PACKAGENAME) and $(PROJECTNAME) keywords are not processed in MXML files. I will post an updated dll when I complete the change.

http://develop.gurufaction.com/fd3/projectmanager/Actionscript3-PureMVCProject.zip

_________________
Michael Ramirez
Sr. Web Developer


Fri Jun 29, 2007 2:52 pm
Profile
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
I have updated the Project Manager Plugin Mod. The Plugin has been updated to include MXML files where replacing keywords and the Actionscript 3 PureMVC Project template has been updated to fix a few minor bugs.

Updated Downloads
http://develop.gurufaction.com/fd3/projectmanager/ProjectManager.dll
http://develop.gurufaction.com/fd3/projectmanager/Actionscript3-PureMVCProject.zip

_________________
Michael Ramirez
Sr. Web Developer


Sat Jun 30, 2007 2:58 am
Profile
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
I have updated the Project Manager Plugin Mod with a cool new feature. Currently the Project Manager Plugin supports Project File Templates. When you right-click a folder within a specific project you can Add new project files. You can add to this list by placing a .fdt file within the appropriate ProjectFiles subfolder. One thing that was missing from this feature was support for subfolder. I wanted subfolders show up as submenus. This would allow better grouping of file you can add. So I modified the Project Manager Plugin to support Project File subfolder templates.

Adding AS3 Project sub-templates
--Place a subfolder within FirstRun\Templates\ProjectFiles\AS3Project.
--Inside your new folder create a .fdt file.
--Open or Create a new Project.
--Right-Click a folder and choose "Add".
--Your subfolder should show up as a new menu item

_________________
Michael Ramirez
Sr. Web Developer


Last edited by michael_ramirez44 on Mon Jul 02, 2007 9:13 pm, edited 1 time in total.



Sat Jun 30, 2007 8:52 am
Profile
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
Post 
Will the next release of FD3 have the Project Manager DLL instead of the Project Explorer DLL? If you guys decide to integrate my plugin modification into the main base how to I send you my changes?

_________________
Michael Ramirez
Sr. Web Developer


Mon Jul 02, 2007 3:35 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Post 
michael_ramirez44 wrote:
Will the next release of FD3 have the Project Manager DLL instead of the Project Explorer DLL? If you guys decide to integrate my plugin modification into the main base how to I send you my changes?

If you work on the FD3 version it should generate ProjectManager.dll - ProjectExplorer was the FD2 version maybe you installed FD3 over FD2.

We will contact you offline to discuss the integration of your submission. You should send us the code modifications based on the latest SVN version. We will review it and see if it can be integrated.


Mon Jul 02, 2007 3:55 pm
Profile WWW
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
Here are the PureMVC Project File Templates. These templates allow you to quickly add Proxies,Mediators and Commands to your PureMVC projects.

Download
http://develop.gurufaction.com/fd3/projectmanager/PureMVC_ProjectFiles.zip

Installation
Unzip the PureMVC_ProjectFiles zip file into C:\Program Files\FlashDevelop\FirstRun\Templates\ProjectFiles\AS3Project\

Usage
-Open/Create a project
-Right-click any folder in your project browser.
-Select "Add" from the context menu.
-Select "PureMVC" from the submenu.
-Select a template.

_________________
Michael Ramirez
Sr. Web Developer


Mon Jul 02, 2007 9:09 pm
Profile
Member

Joined: Thu Oct 05, 2006 9:55 pm
Posts: 23
Reply with quote
:!: UPDATE

The PureMVC framework has been updated to version1.3. I have updated my Project Template and Project Files Templates to reflect this change.

Download
http://develop.gurufaction.com/fd3/projectmanager/PureMVC_ProjectFiles.zip
http://develop.gurufaction.com/fd3/projectmanager/Actionscript3-PureMVCProject.zip

_________________
Michael Ramirez
Sr. Web Developer


Tue Jul 03, 2007 3:58 pm
Profile
Member

Joined: Fri Apr 28, 2006 3:11 am
Posts: 78
Reply with quote
Post 
Thx for this great plugin. I was about to start doing similar when philippe show me theis thread...
Thx man :)

_________________
http://dev.webbymx.net


Thu Jul 05, 2007 10:56 am
Profile WWW
Member

Joined: Fri Apr 28, 2006 3:11 am
Posts: 78
Reply with quote
Post 
Hello again,

I am wondering if it is possible to add custom right click menu item when you have created a project based on a template you have done.
let's say for your pureMVC, when you are creating a new project and selecting this template, then you are right clicking on a project subfolder ( eg command ) and you have in the menu all the basic classes you can have ( like Command, ... )

Doable?

Thx

[edit] my bad didn't unzip the projectFile in the AS3 subfolder. I am wondering thought if we can have separate folder for separate framework all based eg on as3. So you'll get the basic as3 classes + the one of the framework.[edit]

[edit2] Mannn I'm so tired today. My brain is not working. I unziped just the files ( not the whole pureMVC folder ) in the AS3Project subfolder. So now it's cool you can have like different framework, custom classes. GREAT... Thx and sorry for all those dumb questions ;) [edit2]

_________________
http://dev.webbymx.net


Thu Jul 05, 2007 11:50 pm
Profile WWW
Member

Joined: Fri Apr 28, 2006 3:11 am
Posts: 78
Reply with quote
Post 
Hello again again...:)

Ok I've done a project template. It works fine.
i really like this feature. It saves lots of time when you are using structured projects ( like one based on frameworks ).

Anyway I do have some question.
In my project template I have 3 folders
- classes, where my AS structure will be create ( classes and package )
- deploy where all the final files are available
- src where the author files are.

The thing is in my deploy folder I have a file called index.html
In this one I would like to be able too to replace the ${PROJECTNAME} too
It's not doing it for now ( or maybe I'm doind somethign wrong)

Another thing is sometimes I want to capitalized the ${PROJECTNAME} in my as classes. Any idea how could this be done automatically???

I'll post the template I've done here once everything will be ok...

Thx one more time
C ya

_________________
http://dev.webbymx.net


Fri Jul 06, 2007 2:07 am
Profile WWW
Member

Joined: Fri Apr 28, 2006 3:11 am
Posts: 78
Reply with quote
Post 
One more thing...
It could be great if for the classes templates ( myClass.as.fdt ) we could access the ProjectName too using $(Project) maybe.
For now I think we can only access the $(Package) $(FileNameWithPackage) and $(FileName)...
is it possible updating the FileAction.cs???
Thx much :)

_________________
http://dev.webbymx.net


Fri Jul 06, 2007 3:27 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 45 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.