Changes for page WOLips-Eclipse beginner mistakes and questions
Last modified by Ray Kiddy on 2010/02/27 14:51
From version 101.1
edited by Johan Henselmans
on 2007/06/19 17:44
on 2007/06/19 17:44
Change comment:
There is no comment for this version
To version 98.1
edited by Johan Henselmans
on 2007/06/19 15:56
on 2007/06/19 15:56
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -WOLips-Eclipse beginner mistakes 1 +WOLips-Eclipse beginners mistakes - Content
-
... ... @@ -14,8 +14,6 @@ 14 14 15 15 go to /Applications/Utilities/Java/J2SE 5.0/Java Preferences. Select J2SE5.0 16 16 17 -[[image:JavaPrefs.png]] 18 - 19 19 === The second error === 20 20 21 21 ==== I can not get help to start in my browser. ==== ... ... @@ -28,44 +28,30 @@ 28 28 29 29 Not all the files are presented, some are filtered away. In Package Explorer (In WOLips pespective, the upper left window), go to the right corner of that window, there is a caret. Under this caret, there is a Filter option.Click on it to see what get's filtered away. 30 30 31 -[[image:filters.png]] 32 - 33 33 ==== Where did all my code go? ==== 34 34 35 35 Suppose you suddenly ended up with something like this: 36 36 37 -[[image:StrangePerspective1.png]] 38 - 39 39 Or this: 40 40 41 -[[image:StrangePerspective2.png]] 42 - 43 43 Most of the times this is caused by inadvertently clicking on the menu-bar of the subwindow. That window will then fill the whole workspace.Clicking the menubar one more time will restore the view. 44 44 45 45 Or it is happened because your perspective has changed inadertently, because you clicked on a file that caused another perspective to be fired up (like Entitymodeler) You can go to the top right, where there is a place where the currently loaded perspectives are located. Choose WOLips again. You're done. 46 46 47 -[[image:chooseperspective.png]] 48 - 49 49 ==== I have the right perspective, but it is all screwed up. ==== 50 50 51 51 That happens. A lot, if you are inexperienced. And even if you are experienced. Eclipse does some things inadvertently, and as it does not conform to the Apple Interface guidelines, you might press something that has an other effect in Eclipse. 52 52 53 -Do not worry: there is a menu b utton, Windown->Reset Perspective that will give you the original settings back.43 +Do not worry: there is a menu bottom, Windown->Reset Perspective that will give you the original settings back. 54 54 55 -==== Which filefromwhichprojectamI editing?====45 +==== Another app is running as I expected: ==== 56 56 57 - Ifyouopen alotofprojectsatthesametime, you'll sometime find yourselfeditinga few Session.javaorlocalizable.stringsfiles atthesame time. Howcan you see which file from whatprojectyoureediting?Thereisasimple trick for that:inthePackage Explorer window,clickontheicon with the twoarrows onit.Fromnowon,if youselectanotherfile intheeditor window, you'llbe directedto that fileinthe projectin Package Explorer.47 +Normally you select the project in the package explorer, goto to the contextual menu (via right click), then click Run WOApplication. you can also go to the Run menu. Or to the Run icon. 58 58 59 - [[image:SeeFileinProject.png]]49 +Don't suppose you are running the app you are running because you selected the project and pressed the run button in the toolbar. It will run the last application you have run, no matter what you have selected in the package explorer. You have to do a "run as", select your program and then you might get your app. 60 60 61 - ====Another appis runningthanIexpected:====51 +Running an app with some launch arguments. There is a trick to save your launch arguments in your project, so you can have different launch arguments. 62 62 63 -Running an app works a bit different from running an app in XCode. 64 - 65 -Normally you select the project in the Package Explorer, goto to the contextual menu (via right click), then click Run WOApplication. you can also go to the Run menu. Or to the Run icon. 66 - 67 -Don't suppose you are running the app you are running because you selected the project and pressed the run button in the toolbar. It will run the last application you have run, no matter what you have selected in the package explorer. You have to do a "run as", select your program and then you might get your app. 68 - 69 69 === I want to run my app with some other arguments. === 70 70 71 71 The way eclipse works, it saves a set of arguments in which your app has run. This set of arguments have some default settings, depending on which type of application you are running. You can save these arguments in your project, for later use. ... ... @@ -73,39 +73,3 @@ 73 73 ==== Changing the Launch arguments: ==== 74 74 75 75 Select Project in Package Explorer, from menu choose Run->Run... , from contextual menu choose Run As->Run 76 - 77 -[[image:LaunchArgs1.png]] 78 - 79 -You'll get into the create,manage and run configurations window. If there are any launch configurations available in your projects, you will already see them here. If there aren't any, a new one will be created. 80 - 81 -Normally the proper settings for a WOApplication are all in place, if you have created the application from the contextual menu. See the tutorials. 82 - 83 -By default these settings are stored in the workspace, not in the project. If you want to store them in the project, you have to change the settings under the "Common" tab, from "local" file to "shared file", and you can save it then in your project for future use. 84 - 85 -[[image:Launchsaving.png]] 86 - 87 -==== Which shortcuts are available? ==== 88 - 89 -I don't know. It depends on the plugins you are running. Fortunately, there is a shortcut to end all shortcuts: 90 - 91 -cmd-shift-l= show the shortcuts in a popup-window. Pressing cmd-shift-l one more time will show you all the shortcuts via the preferences. 92 - 93 -Some general Eclipse shortcuts: 94 - 95 -cmd-1= Quickfix: suggest you a fix for your errror 96 -cmd-e= quick switch to other open documents 97 -cmd-space= completion, also known as content assist. This one screws up with the standard settings for Spotlight, which are also cmd-space. Some have tried to move cmd-space to something else in Eclipse, but that does not seems to be picked up everywhere. Better replace Spotlight to something else. 98 - 99 -Some shortcuts that are available from WOLips (gracefully donated by Mike Schrag): 100 - 101 -Ten ShortCut Commandments for Mike: 102 -cmd-shift-t = open type 103 -cmd-shift-r = open resource 104 -cmd-shift-o = auto-import 105 -cmd-opt-r = refactor rename (global) 106 -cmd-2 r = refactor local rename 107 -cmd-opt-1 / 2 / 3 = switch between java/wod/html 108 -cmd-o = in-place outline view 109 -cmd-o o = include superclass 110 -cmd-shift-g = show references 111 -F3 = go to declaration