Tagged with eclipse

Using ant for Flex – a no B.S. guide – Part 4 of 4

by

Now that you’ve been through 3 exhaustive tutorials on ant for flex, it’s time to use your knowledge you’ve gained to turn your back on the built-in Flex compiler and switch to ant for your builds. This part applies to FlexBuilder (and FlashBuilder) users only although it may apply if you’re using some other eclipse-based plugin. If you’re using another program like TextMate or Flash CSx, you can skip this article.
Continue reading

Tagged , , , , , ,

FlexBuilder / Eclipse keyboard shortcuts that will change your life

by

  • Control + O = Open an outline of functions within the current class to jump to.
  • Command + Shift + T = Jump to a type (class or interface). Only works when an .as or .mxml file is open.
  • Command + Shift + R = Jump to a resource. Includes classes and any other files (such as XML files)
  • Command + L = Jump to a line number
  • Command + Shift + C = Wrap / Unwrap selected text in a block comment (/* */)
  • Command + Shift + / = Comment / uncomment the selected line using  an inline comment (//)
  • Command + Shift + D = Add ASDoc style comment
  • Command + D = Delete the selected text
  • Command + UP = Move the selected up
  • Command + DOWN = Move the selected text down
  • Command + Option + UP or DOWN = Duplicate the selected text above or below the selected line
  • Command + X = Make selected text ALL CAPS
  • Command + Y = Make selected text all lowercase
  • Command + Shift + R = Rename selected element (using refactor)
  • Command + M = Maximize / Minimize current view
  • Control + Tab = Jump to an open file editor
  • Command + Shift + L = Keyboard command list. Press it again to edit commands.
  • Command + F = Find / Replace dialog.
  • Command + Shift + G = Find any references to the selected element within your project
  • Command + Click or F3 = Jump to the definition of the selected element
  • Command + J = Find within document. Type the word you want to find then use up and down to skip between instances. Press ESC to cancel.
  • Command + Shift + P = Jump to matching bracket. e.g. jump from } to {
  • Control + H = Search (rather than find) allows you to search within the entire workspace.
  • Tab / Shift + Tab = Indent / Un-indent selected text.
  • Command + Option + Left / Right = Jumps to the location of the previous / next edit without undoing your change.
Tagged , , , , , , , , ,

Using XML Schemas in Eclipse / FlexBuilder

by

UPDATE: After reading the entry by Misprintt on the SchemaManager and XMLDecoder more thoroughly, I felt the need to tell you all to go check it out! This is a very powerful undocumented feature of Flex (why undocumented?) that could potentially save loads of time on a larger project. Along with the rest of this article, you could automate the parsing of your XML files into bindable model classes with ease.

XML-Schema (.XSD extension) are documents used to describe the format of XML files. They are similar to DTD (Document type declaration) files but much more powerful.

xsd editor

While working on some XML documents for a Flash site, I stumbled across the XML-Schema editor for Eclipse. The editor shows the XSD as a graphical representation of the model that you’re editing that looks similar to a UML class diagram.

Here’s a great article on how it works.

Continue reading

Tagged , , , , ,