Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dev:eclipse [2016/06/22 19:27]
tedfelix [Set Up Rosegarden Source Under Eclipse]
dev:eclipse [2018/07/01 23:50]
tedfelix [Set Up Rosegarden Source Under Eclipse]
Line 34: Line 34:
   - Click the Source Code checkbox.  It will display a dash.   - Click the Source Code checkbox.  It will display a dash.
   - Close.   - Close.
 +
 +//Note: Ubuntu 17.10 required "xhost +si:localuser:root" before synaptic would run as root.//
  
 At this point the instructions are slightly different for jack1 vs. jack2. At this point the instructions are slightly different for jack1 vs. jack2.
Line 94: Line 96:
  
 ===== Set Up Rosegarden Source Under Eclipse ===== ===== Set Up Rosegarden Source Under Eclipse =====
-//Note: These instructions were developed using Eclipse 4.(Neon).//+//Note: These instructions were developed using Eclipse 4.(Photon).//
  
 Since we set up the directory structure in a way that Eclipse likes, getting Eclipse to find the source and work with it is easy.  Launch Eclipse.  It will first ask for the location of your workspace.  Give it the rosegarden-workspace directory that we created earlier.  Since this is a new workspace, you'll get the Eclipse welcome screen.  In the upper right is a button for the "Workbench" Click it. Since we set up the directory structure in a way that Eclipse likes, getting Eclipse to find the source and work with it is easy.  Launch Eclipse.  It will first ask for the location of your workspace.  Give it the rosegarden-workspace directory that we created earlier.  Since this is a new workspace, you'll get the Eclipse welcome screen.  In the upper right is a button for the "Workbench" Click it.
Line 104: Line 106:
   ${workspace_loc:/rosegarden-svn}/build   ${workspace_loc:/rosegarden-svn}/build
  
-Click OK to close the project properties dialog.+Click "Apply and Close" to close the project properties dialog.
  
 You should now be able to build with Project > Build All (Ctrl+B). You should now be able to build with Project > Build All (Ctrl+B).
Line 132: Line 134:
   HAVE_LIBJACK  1   HAVE_LIBJACK  1
  
-Click Ok.+Click "Apply and Close".
  
 At this point you'll want to rebuild the index.  (Versions prior to Neon would prompt at this point.  In case yours doesn't...)  Right click on rosegarden-svn in the Project Explorer and select Index > Rebuild.  (This can also be accessed from the main menu: Project > C/C++ Index > Rebuild.) At this point you'll want to rebuild the index.  (Versions prior to Neon would prompt at this point.  In case yours doesn't...)  Right click on rosegarden-svn in the Project Explorer and select Index > Rebuild.  (This can also be accessed from the main menu: Project > C/C++ Index > Rebuild.)
Line 143: Line 145:
 First, the editor.  Go to Window > Preferences > General > Editors > Text Editors.  Here you will find an "Insert spaces for tabs" checkbox.  Make sure it is checked. First, the editor.  Go to Window > Preferences > General > Editors > Text Editors.  Here you will find an "Insert spaces for tabs" checkbox.  Make sure it is checked.
  
-Second, the code formatter.  Go to Window > Preferences > C/C++ > Code Style > Formatter.  Make sure the "Profile name" is "K&R [built-in]" Click on the "Edit..." button next to the profile name.  In the Indentation tab, set "Tab policy" to "Spaces only" Change the "Profile name" to "K&R with spaces" Click on Ok and Ok.+Second, the code formatter.  Go to Window > Preferences > C/C++ > Code Style > Formatter.  Make sure the "Profile name" is "K&R [built-in]" Click on the "Edit..." button next to the profile name.  In the Indentation tab, set "Tab policy" to "Spaces only" Change the "Profile name" to "K&R with spaces" Click on Ok and "Apply and Close".
  
 Now all your tabs will be spaces. Now all your tabs will be spaces.
Line 154: Line 156:
  
 ===== Auto-Save Before Build ===== ===== Auto-Save Before Build =====
-By default, Eclipse doesn't automatically save your files when you build.  If you would prefer that behavior, go to Window > Preferences > General > Workspace.  Set the "Save automatically before build" checkbox.  This avoids build errors if you forget to save a file that you've changed.+By default, Eclipse doesn't automatically save your files when you build.  If you would prefer that behavior, go to Window > Preferences > General > Workspace > Build.  Set the "Save automatically before build" checkbox.  This avoids build errors if you forget to save a file that you've changed.
  
 ===== Unlimited Console Buffer ===== ===== Unlimited Console Buffer =====
 By default, Eclipse limits debug console output to 80,000 bytes.  Rosegarden generates a lot of debug output.  It's a good idea to turn this limit off.  Go to Window > Preferences > Run/Debug > Console.  Uncheck "Limit console output". By default, Eclipse limits debug console output to 80,000 bytes.  Rosegarden generates a lot of debug output.  It's a good idea to turn this limit off.  Go to Window > Preferences > Run/Debug > Console.  Uncheck "Limit console output".
 +
 +===== Search Editor Reuse =====
 +By default, Eclipse reuses the current editor window when you double-click on a search result.  That means you might lose what you were looking at.  To turn this off, go to Window > Preferences > General > Search.  Uncheck "Reuse editors to show matches".
  
 ===== Upgrade Notes ===== ===== Upgrade Notes =====
 
 
dev/eclipse.txt ยท Last modified: 2024/01/05 00:38 by tedfelix
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki