Setup of Eclipse for MagicDraw development: Difference between revisions

From blinkenwiki

No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
# Choose ~/windows-shared/mac-workspace as workspace (and check “Use this as the default and do not ask again”)
# Choose ~/windows-shared/mac-workspace as workspace (and check “Use this as the default and do not ask again”)
# Open Eclipse -> Help -> Install New Software...
# Open Eclipse -> Help -> Install New Software...
#* Choose “All Available Sites"
## Choose “All Available Sites"
#* Enter filter text: “eclipse sdk"
## Enter filter text: “eclipse sdk"
#* Select “Eclipse SDK”. Do not select anything else.
## Select “Eclipse SDK”. Do not select anything else.
#* Next, Next, accept the terms, Finish
## Next, Next, accept the terms, Finish
#* Wait for Eclipse to finish the install, but don’t restart
## Wait for Eclipse to finish the install, but don’t restart
#* Quit
## Quit
# Open /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini and delete the lines referencing “smallFonts”. Start Eclipse
# Open /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini and delete the lines referencing “smallFonts”. Start Eclipse
# In bash, cd into ~/windows-shared/projects-shared/magicdraw
# In bash, cd into ~/windows-shared/projects-shared/magicdraw
# In bash, unzip /Applications/MagicDraw/openapi/ide/eclipse.zip
# In bash, unzip /Applications/MagicDraw/openapi/ide/eclipse.zip
# In bash, rm -rf com.nomagic.*
# <s>In bash, rm -rf com.nomagic.*</s>
# In Eclipse
# In Eclipse
#* File -> Import… -> Existing files into workspace
## File -> Import… -> Existing files into workspace
#* Select root directory: ~/windows-shared/projects-shared/magicdraw
## Select root directory: ~/windows-shared/projects-shared/magicdraw
#* Choose all six available projects
## Choose all six available projects
#* Select Finish
## Select Finish
# In Eclipse:
## Right-click on MAGIC_DRAW_INSTALL_DIRECTORY, select Properties
## Click on Location Edit
## Choose Folder, and brows to /Applications/MagicDraw
## OK
## Apply and Close
# In Eclipse:
## Double-click on MagicDraw bundles+Running Platform.target
## Click Set as Active Target Platform
## You should now have no errors
## You may have a few warnings; these can be ignored for now
# In Eclipse:
## Open Run -> Run Configurations
## Choose OSGI Framework -> MagicDraw with all plugins
## Run
# In Eclipse:
## Select com.nomagic.magicdraw.integration* projects
## Choose Delete
## Yes, delete on-disk contents too
# In Eclipse:
## Eclipse -> Preferences -> General -> Appearance -> Colors and Fonts -> Text Font -> Edit: set to 13 or 14 point. Apply.
## Eclipse -> Preferences -> General -> Keys 


# In Eclipse:
(From Evernote)
1. Right-click on MAGIC_DRAW_INSTALL_DIRECTORY, select Properties
2. Click on Location Edit
3. Choose Folder, and brows to /Applications/MagicDraw
4. OK
5. Apply and Close
10. In Eclipse:
1. Double-click on MagicDraw bundles+Running Platform.target
2. Click Set as Active Target Platform
3. You should now have no errors
4. You may have a few warnings; these can be ignored for now
11. In Eclipse:
1. Open Run -> Run Configurations
2. Choose OSGI Framework -> MagicDraw with all plugins
3. Run
12. In Eclipse:
1. Select com.nomagic.magicdraw.integration* projects
2. Choose Delete
3. Yes, delete on-disk contents too
13. In Eclipse:
1. Eclipse -> Preferences -> General -> Appearance -> Colors and Fonts -> Text Font -> Edit: set to 13 or 14 point. Apply.
2. Eclipse -> Preferences -> General -> Keys 

Latest revision as of 01:35, 13 June 2021

Preparatory on macOS

  1. Ensure that ~/windows-shared is shared between the VMware Windows OS and macOS.
  2. In that directory, create subdirectories mac-workspace, windows-workspace, and projects-shared
  3. Also create projects-shared/magicdraw and projects-shared/smartfacts
  4. If setting up as if new, rm -rf ~/.eclipse /Applications/Eclipse.app eclipse-workspace/.metadata ~/Library/*/org.eclipse* (or substitute workspace to delete .metadata)

On macOS

  1. Open MagicDraw .dmg, drag Eclipse.app to /Applications
  2. Choose ~/windows-shared/mac-workspace as workspace (and check “Use this as the default and do not ask again”)
  3. Open Eclipse -> Help -> Install New Software...
    1. Choose “All Available Sites"
    2. Enter filter text: “eclipse sdk"
    3. Select “Eclipse SDK”. Do not select anything else.
    4. Next, Next, accept the terms, Finish
    5. Wait for Eclipse to finish the install, but don’t restart
    6. Quit
  4. Open /Applications/Eclipse.app/Contents/Eclipse/eclipse.ini and delete the lines referencing “smallFonts”. Start Eclipse
  5. In bash, cd into ~/windows-shared/projects-shared/magicdraw
  6. In bash, unzip /Applications/MagicDraw/openapi/ide/eclipse.zip
  7. In bash, rm -rf com.nomagic.*
  8. In Eclipse
    1. File -> Import… -> Existing files into workspace
    2. Select root directory: ~/windows-shared/projects-shared/magicdraw
    3. Choose all six available projects
    4. Select Finish
  9. In Eclipse:
    1. Right-click on MAGIC_DRAW_INSTALL_DIRECTORY, select Properties
    2. Click on Location Edit
    3. Choose Folder, and brows to /Applications/MagicDraw
    4. OK
    5. Apply and Close
  10. In Eclipse:
    1. Double-click on MagicDraw bundles+Running Platform.target
    2. Click Set as Active Target Platform
    3. You should now have no errors
    4. You may have a few warnings; these can be ignored for now
  11. In Eclipse:
    1. Open Run -> Run Configurations
    2. Choose OSGI Framework -> MagicDraw with all plugins
    3. Run
  12. In Eclipse:
    1. Select com.nomagic.magicdraw.integration* projects
    2. Choose Delete
    3. Yes, delete on-disk contents too
  13. In Eclipse:
    1. Eclipse -> Preferences -> General -> Appearance -> Colors and Fonts -> Text Font -> Edit: set to 13 or 14 point. Apply.
    2. Eclipse -> Preferences -> General -> Keys 

(From Evernote)