Flash Snippets panel for Flash Builder 4

I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of the great SnipTreeView panel that I modified to also work with MXML files. Now when I say this is an early version I really do mean it. Expect it not to work and if it does, well you will be pleasantly surprised then. Download the JAR file and place it into your Eclipse plugin folder. I am only really targeting Flash Builder 4 but you can try your luck with Flex Builder 3.

Please watch the video below to see how to use the panel and let me know in the comments if it worked for you. If it didn’t please let me know your OS, Eclipse version, and Builder version. Hope you like it!

Lee


Commentary

  1. Pradeek says:

    Error in Flex Builder 3.0.2 :

    java.lang.UnsupportedClassVersionError: Bad version number in .class file

  2. John O says:

    Very cool Lee. Awesome work.

  3. lee says:

    @Pradeek yes other people using Flex Builder 3 have had this error. I won’t be trying to make it work for FB3.

    Thanks @John! Glad it worked for you.

  4. russdogg says:

    Works great in Flash Builder beta 2, MacBook Pro. Thanks! :)

  5. Hi Lee,

    Great work on this snippet tool. Works perfectly in Eclipse Ganymede on both Win and Mac.

    I also noticed that there’s an option to use a snippet as template. Does that mean you can create component templates for Flex using this tool? That would be awesome.

    And another question: can you share the snippets? I mean like I create a bunch of snippets and my colleagues can also use them.

    Cheers, Steven

  6. David Sjölander says:

    I copied the jar file to the plugin directory, but nothing happens. Are you using the standalone version or the eclipse plugin?

    /David

  7. lee says:

    @David I’m using the plugin version with the latest version of Eclipse.

  8. jadd says:

    hello Lee and thanks for sharing this. I use CFEclipse snippet plugin and question: is there any way to include/import my old CFE snippets in your panel?
    Cheers, Roberto.

  9. vincentwang says:

    Error in Flex Builder 3.0.2.214193 :

    java.lang.UnsupportedClassVersionError: Bad version number in .class file

  10. Lee,
    Awesome work. Loving this so far.

    3 things I have noticed:
    1. If I create a new snippet with the same name as another, it overwrites without a prompt or error.
    2. Not able to delete multiple snippets with trash can icon. Only able to delete one at a time if multiples are selected and right click>Delete Snippet.
    3. If I edit a snippet but only change the name it creates a new snippet. This is great if I want to quickly duplicate one and change something within, but not as much if I just want to change the name.

    **OSX, FB4b2 Standalone

    Otherwise this panel is freakin sweet.

  11. jadd says:

    this is my error: Im on Mac and Flash builder beta 2.
    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)

    and lot more….

  12. Alessandro says:

    Finally a fantastic plug-in! Great Job Lee!
    Can you share your snippets, please?

    Cheers, Alessandro.

  13. Romu says:

    Hi lee, really great idea. using the CFM package just for snippets was annoying really. I’m using it with Galileo, works well so far.

    Here is what I’d like to find in that panel, let us know if something is already possible:

    1. import/export to save snippets (xml)
    2. duplicate snippets

    Thanks again.

    Romu

  14. wanja says:

    Awesome! works great! Are you planning to implement import/export functionality? Thats the only thing missing imho. Apart from that, fantastic plugin. Many thanks for that :)

  15. uli says:

    I had a problem :(

    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

    (Flash Builder beta 2, MacBook Pro, OS 10.5.8)

  16. 1ndivisible says:

    Lee,

    This is really very nice and I can’t understand why this feature is still missing from FB. I use FDT and FB’s lack of snippets is one of the main reasons for this. I think snippets are my single biggest time-saver after code completion. Whenever I’ve had to use FB in the past I feel handicapped without them.

  17. jansensan says:

    Totally trivial question: will there be any way to customize the icons? I’m kind of a fan of Fam Fam Fam’s.

    I’m looking forward to updates, great work!

  18. chsoe says:

    Hi Lee,

    great snippet tool. looks nice to work on your tutorials.

    just info:
    but on my standalone flash builder version 4.0 (253292) I always get the error: the plug-in FLash_Snippets could not load the org.cfeclipse.cfml.views.snips.SnipTreeView Class.

    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method) …..

    I saw cfeclipse isn´t beta anymore.

    cheers chsoe

  19. Luciano Lema says:

    Just to confirm it also works with the standalone FB4.
    It’s a major time saver really!

    Thanks!

  20. Matt says:

    Might I suggest people list there version of java as well. I noticed this snippets panel worked on 1.6 but noticed the same error with Java 1.5.

    Lee I’m guessing you compiled this on a computer running Snow Leopard?

  21. Nabeel says:

    Working fine, Thanks Lee

  22. Alan says:

    Hey Lee! great work again, wondering if your planning on reworking the Flash Test extension. Its something I really miss not having in FB4.

  23. Oli says:

    Hi! Thanks for this time-saver. is the source available somewhere?
    Greetings, Oli.

  24. Jerom says:

    Downloaded and installed perfectly. Added a few snippets and I am now flying through tedious code typing! Another brilliant app that should have be integrated in Flash Builder!

    Thank you!

  25. bf says:

    Noticed a small glitch on osx 10.6 and FB 4 standalone beta2.
    If you detach one of your windows (e.g. when using multiple screens and you dragging the console to the second screen). The code editor loses focus after you add a snippet. So your cursor isn´t active anymore.

  26. jadd says:

    hello,
    someone can help me/us to resolve the error: he plug-in FLash_Snippets could not load the org.cfeclipse.cfml.views.snips.SnipTreeView Class.?
    I’m om mac os 10.5.8, java version “1.6.0_15, fb4 beta 2. What’s wrong?
    Where looking for?

  27. Aiden Tailor says:

    Lee,

    awesome work! Been using it really often and it works fine for me.
    Little tool but a big time saver!
    Only things I would add is drag&drop to get a snip in another folder and multiple deletion.

    @Steven Peeters
    You can view the XML files of the snippets in your workspace folder/.metadata/Flash_Snippets/snippets/

    Kind regards,
    Aiden

  28. wallen says:

    I cannot download it by linkage.

  29. Omar Fouad says:

    Thanks for your effort Lee. It’s working great!

  30. Chris Deely says:

    Hey Lee,
    Awesome job! I saw your tweet about this just a day after I spent hours looking for a snippets panel for FB4.

    One feature request: The ability to default a field value based on a highlighted term.

    So, if I have a for loop snippet, I could highlight the name of the array to loop through, and have it replaced with the snippet code.

  31. John Brown says:

    Love it! So quick and easy to use. You are the greatest asset to the Flash community.

    There is something I am curious about, though. In your example, say you choose MouseEvent, but it isn’t already imported into that class at the top. Is there a shortcut to add all necessary classes to the imports list?

    I know Shift-Command-O removes all unnecessary classes, but is there one that will add the relevant ones?

  32. Russ says:

    I am not familiar with the format your movie is in, what is Quicktime?
    Where is the Flash version?

  33. Michael Novotny says:

    I could be missing something pretty obvious here, but what is the keyboard shortcut to insert the comment once you type in the trigger text? I believe the video only mentions it as the “keyboard shortcut”, but never states what it is…

  34. lee says:

    @Michael I went over how to customize the default shortcut which is SHIFT+SPACE.

  35. Michael Novotny says:

    @Lee: My apologies for not watching the whole video. Skimming is not your friend! Thanks!

  36. zorro says:

    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView
    (Flash Builder beta 2, Windows7)

  37. Awesome modification to the Snip Tree View Panel. I was able to get it to work on my work computer, but not on my personal computer. The only thing different from the two systems that I can see is that my work computer is using Snow Leopard and my personal computer is just using Leopard. Here’s the specs if you need. Thanks again and hopefully when I upgrade to Snow Leopard I can use this panel both at work and play. Thanks Lee!!

    Workstation
    Snow Leopard 10.6.1 or 2
    MacPro
    Eclipse eclipse-php-galileo-SR1-macosx-carbon
    Adobe Flash Builder Plug-in Beta 2

    Homestation
    Leopard 10.5.8
    iMac
    Eclipse eclipse-php-galileo-SR1-macosx-carbon
    Adobe Flash Builder Plug-in Beta 2

  38. ozipi says:

    @lee thanks for the plugin it helps a lot : )

    i just created an google code project in order to collect some this snippets, hope that somebody found them useful

    http://code.google.com/p/flash-panel-snippets/

    for more info checkout this post:
    http://ozipi.com/?p=23

    Thanks again and please don’t forget the kiss-doug-mccune errand from the paris talk ;)

  39. Yi says:

    I’ve written an eclipse monkey script which is doing a similar job, but in a conventional way. I’d recommend you to have a look of that.

    http://www.slideshare.net/halfmile/convention-generator-yis-eclipse-monkey-scripts-for-flash-builder

  40. sin says:

    @lee
    it’s so a lot of wonderful scared stuff out there, every day i find out there is new awesome framework or repository, how can get things handy and not to go out of date, when things move so fast? give me an advice, how to work with it? how to create something without scare that it’s already out there, made ten times better and faster?
    10x

  41. sin says:

    i was on a trip for 2 days and came up to 439 unread posts in news feeder mostly connected to flash and client relations blogs

  42. Em says:

    Love the icons in the “Flash Snippets” panel. Quite stylish.

  43. jadd says:

    Hi all, and here again. It seems quite obviuos from the posts that for people running on Leopard are having issues making this plugin working. Can someone expain something more or/and help others?
    Thanks.

    Me, again, im on Mac osx 10,5,8 and with flash builder beta, and the error is always: Could not create the view ……

  44. erinata says:

    the snippet panel is great. But I cannot play the short tutorial video…….>_<

  45. Guillaume says:

    Looks so great, thank you for sharing Lee.

    But… I’ve got the same error as many :
    “Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView”

    Does someone have a solution ?
    ty

  46. Paulo Miranda says:

    Hi, your snippet panel works great on my flexbuilder 3 plugin on top of eclipse ganymede.
    The flexbuilder is on my portable disk and the snippets that i have created at my computer at home have not appeared at my computer at work.
    Is this a bug or not. Also it would be great for the tab to work and jump to the next textfield.

  47. Joel Marks says:

    Everything works great for me, great project.

    One suggestion though, I don’t know if it is possible but if you could put the code into the editor using a paste operation then Flash Builder will autoindent the inserted code.

  48. Willie says:

    Hey, Lee!
    The Vid doesn’t work. It appears not to be existent.

  49. Trevor says:

    Video isn’t working – broken link. Trying to figure out what the trigger is. shift+space not working. Does this still require the CFEclipse pannel to be showing to work?

  50. leef says:

    Seems to be working in Flash Builder beta 2. Thanks lee

  51. leef says:

    just an idea, it would be neat if there were some standard snippets preloaded by default. I’ve found myself inputing some standard ones several times.

    private function _;
    public function ;
    private var, public var, private static const, public static const, etc etc.

  52. lee says:

    Video is fixed now. Sorry about that.

  53. makela says:

    Can I use this plugin with the Flash Builder 4? I put the file in my folder Plugin of my Adobe Flash Builder 4 and when I open the Show View window I not found the option of the Flash Snippet.

  54. makela says:

    I forgot to say that I using the Flash Builder 4. The snippet does it?
    Ty.

  55. personman says:

    It’s been about three weeks since your last post.

  56. makela says:

    problem solved!

  57. ??? says:

    Sorry. I don’t open the site for the jar. Can sent the jars to my email.
    My email is xiaowananping@163.com

    Thinks

  58. great work, keep it up.

  59. Rob says:

    Hey @Aiden Tailor, thanks for pointing out the path to the snippets xml file. Now I can add em dashes using TextMate!

    One thing that’s always driven me crazy about the CF Snippets plugin is that it won’t let me put in em dashes (—) which I usually use to make my comment blocks since (at least on a Mac), it creates a nice unbroken line in FB.

    Example…

    //————————————————————
    // A NICE COMMENT
    //————————————————————

    just looks better than…

    //——————–
    // A UGLY COMMENT
    //——————–

    Not sure why but all the unbroken white space makes things more legible for me.

    Try putting in em dashes in the CF Eclipse plugin though and it won’t trigger and instead it spits out a weird error when u open up the editor again. But swapping them in the xml seems to work just fine.

  60. grandchamp_g says:

    This makes so much sense, instead of re-writing the same code. Thanks.

  61. mike says:

    i got an error

    using flash builder 4 beta

    ‘Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.’

  62. Mark says:

    Java: 1.5.0_20
    MacOS: 10.5.8
    Flash Builder: 4.0 Beta 2 (build 253292)
    Eclipse: 3.4 (Flash Builder standalone install, not Eclipse plugin)

    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263)
    at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:63)
    at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:328)
    at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
    at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2127)
    at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1062)
    at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3773)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3770)
    at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3746)
    at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)
    at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109)
    at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77)
    at com.adobe.flexbuilder.standalone.actions.FlexBuilderWorkbenchActionBuilder$7.run(FlexBuilderWorkbenchActionBuilder.java:1353)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java:99)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

  63. Hi Lee,

    it’s work very very very NICE!!!!!!!!!!!!!! So sry FDT but i have all thinks what i nedded ;)

    Many many many many many big thx Lee…

    best regards
    Francis

  64. Kevin Richardson says:

    Works splendidly in standalone FB4 Beta 2

    OS: Windows Vista Professional
    Flash Builder: 4.0 Beta 2 build 253292
    Eclipse: 3.4
    Java: 1.6.0_17

    Many thanks for this and for your gotoAndLearn tutorials.

    Kevin

  65. David Höller says:

    Works great! Thanks Lee!
    David

  66. Aaron says:

    How do you backup your snippets

  67. Aaron says:

    Where are the snippets saves and can you back them up

  68. Aaron says:

    where are the snipper’s saves and how can they be backed up

  69. Aaron says:

    where are the snipper’s saves and how can they be backed up

    p.s. when you get the Captcha wrong it delete your comment…

  70. DDDan says:

    I love this… Thanks a lot!

  71. terry says:

    It’s a very good plugin!

  72. Papillion says:

    Yet another who is having trouble in Leopard 10.5.8
    Error
    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

    I updated to java 1.6 and set it in Java preferences app to be the primary/default
    thought that would work… not.

    I suppose this is working in Snow Leopard and no one is mentioning that when they declare success.

  73. chris says:

    hey lee,

    thanks for that really cool panel. I just have one weird problem.
    everything seems to work fine, but the the short cut doesn´t work?

    the key shortcut does work on snippets tree view from cfeclipse
    and i do not have any conflicts in the keys editing mode.
    I also can douple click the snippets with my mouse and it works.

    hopefully you or anyone has an solution??

    would be sooo great.

    thanks a lot,
    chris

  74. I tried to use the Flash Snippets Panel but it seems to conflict with a previously installed CFEclipse plugin what should I do?

    Thanks,

    Juan P. Reyes

  75. Bart says:

    works great, thanks!

  76. Rob Dodson says:

    Regarding the issue with:
    Could not create the view: Plug-in org.cfeclipse.cfml was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

    Lee mentions that this is basically a tweaked version of CFEclipse’s SnipTreeView so the issue is not specifically with his panel not working, it’s actually an issue with SnipTreeView not working.

    I have/had SnipTreeView installed on a mac running 10.5 leopard and I also have it installed on my Macbook Pro which is running 10.6 Snow Leopard. I just formatted my iMac and put snow leopard on it and now SnipTreeView is giving me that error. All of my machines are running FB Beta 2. I think it’s weird that the install of flash builder i used on my laptop is the same as the install I used on this desktop, only a few weeks apart, so I feel like they should be identical.. and many people are reporting this issue several months back.

    Guess I have to keep googling. Seems like the messup is here:
    org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.cfeclipse.cfml (125).

  77. Rob Dodson says:

    woohoo! OK so for those having this issue:
    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

    I have a fix which might work for *some* of you. I have SnipTreeView running on my laptop’s install of Flash Builder which I setup sometime last month. I just tried to get it running on my recently formatted iMac and was getting the previously mentioned error. I checked out my plugin’s folder on my laptop @ Applications/Flash Builder Beta 2/plugins and noticed that my plugins folder on my laptop did not match the plugins folder on my desktop. all of the org.cfeclipse package version numbers were different and the laptop had another package, org.cfeclipse.cfml.cfunit, which was not present on the iMac.

    My solution was to first uninstall the cfeclipse package by going to Help > Software Updates > Manage Configuration and uninstalling all the cfeclipse stuff (just right click to uninstall). Then I went back to my plugins folder and deleted all of the org.cfeclipse folders. Then I copied the old working folders from my laptop into the plugins folder on my iMac. That seemed to do the trick, I didn’t need to install the plugin again; when i fired up FB it was just there already running. I’m posting the package of folders that I used for other people to try out, hopefully it can help someone.

    inchwormstudio.com/support/cfeclipse_package.zip

    A few caveats:

    1) Before doing this I initially thought that maybe my eclipse version was out of date so in Flash Builder I updated it to the latest one (3.4.2 i think). Help > Software Updates > Find and install… then ‘Search for updates for currently installed [stuff]‘

    2) When you’re using the cfeclipse plugin you can set a path to your snippets folder. Just go to Flash Builder > Preferences > CFEclipse (click on CFEclipse, don’t twirl it open). Because these files are from my laptop they copied over the path which is pointing to a Dropbox folder on my computer: “Dropbox/Snippets”. You’ll need to change this to get it working and it might give u an error when u first start it because that folder won’t exist on your machine. I would change it in the jars for you but I have nfk how ;)

  78. Rob Dodson says:

    did I say nfk? i meant that like no f*cking klue but that is definitely not how u spell ‘clue’. sorry :D

  79. Ian says:

    Thanks Rob Dodson. I remember that the last time I tried to install this for Flash Builder 4 Beta 2 I had some error. >_< But I uninstalled CFEclipse the way you said and deleted the folders and it works! :D
    Again, thank you!
    And thank you Lee!

  80. Wouter says:

    Thanks for this plugin.

    Is there a way i can copy snippets from one workspace to another?

  81. Yoav says:

    This is awesome.

  82. i’m on a mac running os 10.5.8 with the official Flash Builder 4.

    Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.

  83. chsoe says:

    @gorden

    I have the same problem!!! Tried every way of this comments. Still don´t work.

    I be on the verge to switch to FDT. There is everything working perfect without getting plugin insane. This is such a necessary thing for coding and its still not in the default installation package of Flash Builder 4. Adobe please take more Focus to the Developers and don´t forget us by all that Design workflow….!!!

  84. bw_left says:

    I try to find how to define custom variables for file-templates in Flash Builder 4.0. Screenshot of subject here http://www.flasher.ru/forum/attachment.php?attachmentid=24177&stc=1&d=1270796937
    Simply i don’t to know where can i post this question because nobody know answer.

  85. Glyn Szasz says:

    Love this snippets panel. Thanks for creating it Lee.

    How would I create a snippet for something like the following:

    var mainHeader:TextField = new TextField();
    mainHeader.x = 30;
    mainHeader.y = 20;
    mainHeader.styleSheet = globals.gPath.cssPath;
    mainHeader.embedFonts=true;
    mainHeader.antiAliasType = AntiAliasType.ADVANCED;
    mainHeader.autoSize = TextFieldAutoSize.LEFT;
    mainHeader.selectable = false;

    In that the same variable is used multiple times throughout the snippet such as mainHeader mentioned above.

    I am using Flash Builder 4.

  86. ukasz says:

    Great stuff! Thank you Lee!

  87. Dan says:

    Hey Lee,

    I cannot get it to work. Well, the panel shows up all fine, but when I try to create a snippet and hit the ‘ok’ button, nothing happens.. The window doesn’t close and I have to cmd+w it and restart Eclipse before the snippet appears in the panel.. And if I want to use the snippet, I cannot get the shortcuts to work – I have to doubleclick the snippet in the panel..

    I’m using Eclipse Galileo Carbon newest version with Flash Builder 4 Standard..

  88. aaron says:

    Yes! Finally… I’ve been looking for something like this for a while. Good work!

  89. Johan says:

    Lee’s Snippets Panel only works with Snow Leopard (10.6.x), so if your on a lower version of osx, it won’t work.

  90. Nikkio says:

    Seems like a great module, but I keep running into issues with it. No matter how many times I save a snippet it keeps replacing the description tag with various things like: The element type “endtext” must be terminated by the matching end-tag “”. I’ve also seen this show up with “help”. I’m running Flash Builder 4 and Eclipse 3.5.

  91. Jamie says:

    Great work Lee. One question though…

    When writing a snippet for a definition such as a getter/setter, is there a way of referencing previous entries to avoid re-inputing values? For example, in a standard getter/setter the variable name is defined 3 times – once as a private member and then in the get and the set. Using your variable substitution is great, but would currently require 3 input boxes to input the variable name 3 times. Do you follow?

  92. calvin says:

    Thanks, works well in my flashbuilder 4 didnt understand that I could not just type the trigger then click enter need to do a specific hot key like at the end of the video..thanks its not as good as the flashdevelop short cuts for event handlers and also more complex snippets but its a great start, hopefully adobe may do something themselves for this massive time saver

  93. Sanford says:

    This is great. I’ve been waiting forever to have this capability. Many thanks!

  94. wonderwhy-er says:

    Great stuff. Working fine for me.
    Though code formatting/tabs make it a little bit problematic. I would love if autoformating would have been used on that code block after insertion.

  95. Sanford says:

    I switched to Windows 7 and now I have the same error as all the Mac users: Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView

    Anyone have a solution?

  96. Thanks a ton! Just got it installed and setting up some useful snippets. Its amazing how much these can speed up any project, keep up the great work.

  97. Arch Brooks says:

    I would like to use the snippet tool but cant get it to install. I put the code in the plugin directory as requested. It does not show up anywhere.

    Flash Builder 4 stand alone.

    Thanks in advance for any help you may be able to offer.

    Arch Brooks

  98. Worth mention the link of the variables documentation.

    http://trac.cfeclipse.org/wiki/SnippetView/

    cheers

  99. aYo says:

    Flows nicely on Ubuntu 10.04 32 and 64 bit.
    Only snag is the trigger text – no trigger.
    Merci Bien!!

  100. alp tugan says:

    Hi, Are going to update Flash Snippets for the new release of CFE.
    when I select flash Snippets from “Other views”, I get the following error:

    “Could not create the view: Plug-in Flash_Snippets was unable to load class org.cfeclipse.cfml.views.snips.SnipTreeView.”

  1. [... I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of ...]

  2. [... I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of ...]

  3. [... I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of ...]

  4. [... I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of ...]

  5. [... I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of ...]

  6. [... I am releasing an early test version of the snippets panel that I have been working on for Flash Builder 4. Now this panel is essentially a re-skinned version of ...]

Leave a Comment