├── .gitattributes ├── .gitignore ├── App ├── AppInfo │ ├── Launcher │ │ ├── EclipsePortable.ini │ │ └── Splash.jpg │ ├── appicon.ico │ ├── appicon_128.png │ ├── appicon_16.png │ ├── appicon_256.png │ ├── appicon_32.png │ ├── appicon_75.png │ ├── appinfo.ini │ └── installer.ini ├── Java │ └── java_readme.txt └── readme.txt ├── EclipsePortable.exe ├── Other ├── Help │ └── images │ │ ├── donation_button.png │ │ ├── favicon.ico │ │ ├── help_background_footer.png │ │ ├── help_background_header.png │ │ └── help_logo_top.png └── Source │ ├── EclipsePortable.ini │ ├── EclipsePortable.nsi │ ├── Explode.nsh │ ├── GetParent.nsh │ ├── License.txt │ ├── PortableApps.comLauncherLANG_ENGLISH.nsh │ ├── ReadINIStrWithDefault.nsh │ ├── Readme.txt │ ├── RepairUpdir.nsh │ ├── ReplaceInFile.nsh │ └── StrRep.nsh └── help.html /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #PortableApps.com files 2 | App/Eclipse 3 | 4 | # Windows image file caches 5 | Thumbs.db 6 | ehthumbs.db 7 | 8 | # Folder config file 9 | Desktop.ini 10 | 11 | # Recycle Bin used on file shares 12 | $RECYCLE.BIN/ 13 | 14 | # Windows Installer files 15 | *.cab 16 | *.msi 17 | *.msm 18 | *.msp 19 | 20 | # Windows shortcuts 21 | *.lnk 22 | 23 | # ========================= 24 | # Operating System Files 25 | # ========================= 26 | 27 | # OSX 28 | # ========================= 29 | 30 | .DS_Store 31 | .AppleDouble 32 | .LSOverride 33 | 34 | # Thumbnails 35 | ._* 36 | 37 | # Files that might appear in the root of a volume 38 | .DocumentRevisions-V100 39 | .fseventsd 40 | .Spotlight-V100 41 | .TemporaryItems 42 | .Trashes 43 | .VolumeIcon.icns 44 | 45 | # Directories potentially created on remote AFP share 46 | .AppleDB 47 | .AppleDesktop 48 | Network Trash Folder 49 | Temporary Items 50 | .apdisk 51 | -------------------------------------------------------------------------------- /App/AppInfo/Launcher/EclipsePortable.ini: -------------------------------------------------------------------------------- 1 | [Launch] 2 | ProgramExecutable64=Eclipse\eclipse.exe 3 | CommandLineArguments=-vm "%JAVA_HOME%\bin" 4 | DirectoryMoveOK=yes 5 | SupportsUNC=yes 6 | 7 | [Activate] 8 | Java=Require 9 | 10 | [Environment] 11 | MINGW=%PAL:PortableAppsDir:ForwardSlash%/CommonFiles/MinGW/bin 12 | PATH=%MINGW%;%PATH% 13 | -------------------------------------------------------------------------------- /App/AppInfo/Launcher/Splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/Launcher/Splash.jpg -------------------------------------------------------------------------------- /App/AppInfo/appicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/appicon.ico -------------------------------------------------------------------------------- /App/AppInfo/appicon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/appicon_128.png -------------------------------------------------------------------------------- /App/AppInfo/appicon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/appicon_16.png -------------------------------------------------------------------------------- /App/AppInfo/appicon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/appicon_256.png -------------------------------------------------------------------------------- /App/AppInfo/appicon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/appicon_32.png -------------------------------------------------------------------------------- /App/AppInfo/appicon_75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/App/AppInfo/appicon_75.png -------------------------------------------------------------------------------- /App/AppInfo/appinfo.ini: -------------------------------------------------------------------------------- 1 | [Format] 2 | Type=PortableApps.comFormat 3 | Version=3.5 4 | 5 | [Details] 6 | Name=Eclipse Portable 7 | AppID=EclipsePortable 8 | Publisher=The Eclipse Foundation & PortableApps.com 9 | Homepage=PortableApps.com/node/53284 10 | Donate=eclipse.org/donate 11 | Category=Development 12 | Description=popular programming IDE 13 | Language=Multilingual 14 | Trademarks='Eclipse' is a trademark of the Eclipse Foundation Inc 15 | InstallType=English 16 | 17 | [License] 18 | Shareable=true 19 | OpenSource=true 20 | Freeware=true 21 | CommercialUse=true 22 | 23 | [Version] 24 | PackageVersion=4.33.0.1 25 | DisplayVersion=4.34 Dev Test 1 26 | 27 | [Dependencies] 28 | UsesJava=true 29 | 30 | [Control] 31 | Icons=1 32 | Start=EclipsePortable.exe 33 | -------------------------------------------------------------------------------- /App/AppInfo/installer.ini: -------------------------------------------------------------------------------- 1 | [MainDirectories] 2 | RemoveAppDirectory=false 3 | 4 | [FilesToPreserve] 5 | PreserveFile1=App\Eclipse\configuration\.settings\org.eclipse.ui.ide.prefs -------------------------------------------------------------------------------- /App/Java/java_readme.txt: -------------------------------------------------------------------------------- 1 | Java binaries go here or in X:\PortableApps\CommonFiles\Java for shared use. 2 | 3 | To enable Java, copy the Java files from a local install, usually C:\Program Files\Java\jre1.5.0_11, 4 | to this directory. Copy the whole structure intact (so you'd have a lib and a bin directory in this 5 | Java directory when complete. 6 | 7 | Then, create a text file called javaportable.ini in the same directory as this readme.txt with the 8 | following in it (altering for Java version): 9 | 10 | [JavaPortable] 11 | Vendor=Sun Microsystems Inc. 12 | Version=1.5.0_11 13 | URL=http://java.sun.com/ -------------------------------------------------------------------------------- /App/readme.txt: -------------------------------------------------------------------------------- 1 | This directory contains files used by the portable app and should generally not be accessed directly by users except in specific instances of using plugins or other documented additions to a given app. 2 | 3 | User files, data, or settings should not be stored within the App directory or its subdirectories. Any data stored within the App directory structure will likely be deleted on upgrades. -------------------------------------------------------------------------------- /EclipsePortable.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/EclipsePortable.exe -------------------------------------------------------------------------------- /Other/Help/images/donation_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/Other/Help/images/donation_button.png -------------------------------------------------------------------------------- /Other/Help/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/Other/Help/images/favicon.ico -------------------------------------------------------------------------------- /Other/Help/images/help_background_footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/Other/Help/images/help_background_footer.png -------------------------------------------------------------------------------- /Other/Help/images/help_background_header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/Other/Help/images/help_background_header.png -------------------------------------------------------------------------------- /Other/Help/images/help_logo_top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/2wayne/EclipsePortable/df6beeaca8914c65f3b0c0997d14e8379b42aeb8/Other/Help/images/help_logo_top.png -------------------------------------------------------------------------------- /Other/Source/EclipsePortable.ini: -------------------------------------------------------------------------------- 1 | [EclipsePortable] 2 | EclipseDirectory=App\Eclipse 3 | EclipseExecutable=eclipse.exe 4 | SettingsDirectory=Data\settings 5 | JavaPath=..\CommonFiles\Java\bin\javaw.exe 6 | MinGWPath=..\CommonFiles\MinGW\bin 7 | AdditionalPaths=..\MSYSPortable\App\MSYS\bin 8 | AdditionalParameters= 9 | 10 | # The above options are explained in the included readme.txt 11 | # This INI file is an example only and is not used unless it is placed as described in the included readme.txt 12 | -------------------------------------------------------------------------------- /Other/Source/EclipsePortable.nsi: -------------------------------------------------------------------------------- 1 | ;Copyright (C) 2004-2012 John T. Haller 2 | ;Copyright (C) 2008-2012 Brandon Cheng (gluxon) 3 | 4 | ;Website: http://PortableApps.com/EclipsePortable 5 | 6 | ;This software is OSI Certified Open Source Software. 7 | ;OSI Certified is a certification mark of the Open Source Initiative. 8 | 9 | ;This program is free software; you can redistribute it and/or 10 | ;modify it under the terms of the GNU General Public License 11 | ;as published by the Free Software Foundation; either version 2 12 | ;of the License, or (at your option) any later version. 13 | 14 | ;This program is distributed in the hope that it will be useful, 15 | ;but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | ;GNU General Public License for more details. 18 | 19 | ;You should have received a copy of the GNU General Public License 20 | ;along with this program; if not, write to the Free Software 21 | ;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | !define PORTABLEAPPNAME "Eclipse Portable" 24 | !define NAME "EclipsePortable" 25 | !define APPNAME "Eclipse" 26 | !define VER "2.0.1.0" 27 | !define WEBSITE "PortableApps.com/EclipsePortable" 28 | !define DEFAULTEXE "eclipse.exe" 29 | !define DEFAULTAPPDIR "App\Eclipse" 30 | !define DEFAULTSETTINGSDIR "Data\settings" 31 | !define LAUNCHERLANGUAGE "English" 32 | 33 | ;=== Program Details 34 | Name "${PORTABLEAPPNAME}" 35 | OutFile "..\..\${NAME}.exe" 36 | Caption "${PORTABLEAPPNAME} | PortableApps.com" 37 | VIProductVersion "${VER}" 38 | VIAddVersionKey ProductName "${PORTABLEAPPNAME}" 39 | VIAddVersionKey Comments "Allows ${APPNAME} to be run from a removable drive. For additional details, visit ${WEBSITE}" 40 | VIAddVersionKey CompanyName "PortableApps.com" 41 | VIAddVersionKey LegalCopyright "PortableApps.com & Contributors" 42 | VIAddVersionKey FileDescription "${PORTABLEAPPNAME}" 43 | VIAddVersionKey FileVersion "${VER}" 44 | VIAddVersionKey ProductVersion "${VER}" 45 | VIAddVersionKey InternalName "${PORTABLEAPPNAME}" 46 | VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC." 47 | VIAddVersionKey OriginalFilename "${NAME}.exe" 48 | ;VIAddVersionKey PrivateBuild "" 49 | ;VIAddVersionKey SpecialBuild "" 50 | 51 | ;=== Runtime Switches 52 | CRCCheck On 53 | WindowIcon Off 54 | SilentInstall Silent 55 | AutoCloseWindow True 56 | RequestExecutionLevel user 57 | 58 | ;=== Best Compression 59 | SetCompress Auto 60 | SetCompressor /SOLID lzma 61 | SetCompressorDictSize 32 62 | SetDatablockOptimize On 63 | 64 | ;=== Program Icon 65 | Icon "..\..\App\AppInfo\appicon.ico" 66 | 67 | ;=== Include 68 | ;(Standard NSIS) 69 | !include TextFunc.nsh 70 | !include FileFunc.nsh 71 | !include WordFunc.nsh 72 | !include LogicLib.nsh 73 | 74 | ;(Plugins) 75 | !include StrRep.nsh 76 | !include TextReplace.nsh 77 | 78 | ;(Macros) 79 | !insertmacro WordReplace 80 | !insertmacro GetParent 81 | !insertmacro GetParameters 82 | !insertmacro GetRoot 83 | 84 | ;(Custom) 85 | !include ReplaceInFile.nsh 86 | !include ReadINIStrWithDefault.nsh 87 | 88 | !include Explode.nsh 89 | 90 | ;Macro update for RepairUpdir 91 | !define RepairUpdir "!insertmacro RepairUpdir" 92 | !macro RepairUpdir NewPath RelativePath 93 | Push "${RelativePath}" 94 | Call RepairUpdir 95 | Pop "${NewPath}" 96 | !macroend 97 | !include RepairUpdir.nsh 98 | 99 | ;=== Languages 100 | ;!insertmacro MUI_LANGUAGE "${LAUNCHERLANGUAGE}" 101 | !include PortableApps.comLauncherLANG_${LAUNCHERLANGUAGE}.nsh 102 | 103 | Var PROGRAMDIRECTORY 104 | Var SETTINGSDIRECTORY 105 | Var PROGRAMEXECUTABLE 106 | Var ADDITIONALPARAMETERS 107 | Var MISSINGFILEORPATH 108 | 109 | Var ROOT 110 | Var ROOTDOUBLESLASH 111 | Var LASTROOT 112 | Var LASTROOTDOUBLESLASH 113 | Var APPDIRECTORY 114 | Var DATADIRECTORY 115 | Var PARENTDIRECTORY 116 | Var JAVAPATH 117 | Var NSISPATH 118 | Var MINGWPATH 119 | Var ADDITIONALPATHS 120 | Var PARAMETERS 121 | Var WORKSPACE 122 | Var WORKSPACEDOUBLESLASH 123 | Var LASTEXEDIR 124 | 125 | Section Main 126 | ;Finding out the drive's letter and parent dir 127 | ${GetParent} "$EXEDIR" "$PARENTDIRECTORY" 128 | ${GetRoot} "$EXEDIR" "$ROOT" 129 | ${GetParameters} "$PARAMETERS" 130 | ${WordReplace} "$ROOT" ":" "\:" "+" "$ROOTDOUBLESLASH" 131 | 132 | ;Reading the INI 133 | ${ReadINIStrWithDefault} "$0" "$EXEDIR\${NAME}.ini" "${NAME}" "${APPNAME}Directory" "${DEFAULTAPPDIR}" 134 | StrCpy "$PROGRAMDIRECTORY" "$EXEDIR\$0" 135 | 136 | ${ReadINIStrWithDefault} "$0" "$EXEDIR\${NAME}.ini" "${NAME}" "SettingsDirectory" "${DEFAULTSETTINGSDIR}" 137 | StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\$0" 138 | 139 | ${ReadINIStrWithDefault} "$PROGRAMEXECUTABLE" "$EXEDIR\${NAME}.ini" "${NAME}" "${APPNAME}Executable" "${DEFAULTEXE}" 140 | ;Empty if value is not found 141 | ${ReadINIStrWithDefault} "$JAVAPATH" "$EXEDIR\${NAME}.ini" "${NAME}" "JavaPath" "" 142 | ${ReadINIStrWithDefault} "$MINGWPATH" "$EXEDIR\${NAME}.ini" "${NAME}" "MinGWPath" "..\CommonFiles\MinGW\bin" 143 | ;Empty if value is not found 144 | ${ReadINIStrWithDefault} "$ADDITIONALPATHS" "$EXEDIR\${NAME}.ini" "${NAME}" "AdditionalPaths" "" 145 | ${ReadINIStrWithDefault} "$ADDITIONALPARAMETERS" "$EXEDIR\${NAME}.ini" "${NAME}" "AdditionalParameters" "" 146 | 147 | ${IfNot} ${FileExists} "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" 148 | 149 | ;No eclipse.exe in [X]:\PortableApps\EclipsePortable\App\Eclipse\ exists 150 | StrCpy "$MISSINGFILEORPATH" "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" 151 | MessageBox MB_OK|MB_ICONEXCLAMATION "$(LauncherFileNotFound)" 152 | Abort 153 | 154 | ${EndIf} 155 | 156 | ;Make relative absolute! 157 | ${If} "$MINGWPATH" != "" 158 | ${RepairUpdir} "$MINGWPATH" "$EXEDIR\$MINGWPATH" 159 | ${EndIf} 160 | 161 | ${If} "$JAVAPATH" != "" 162 | ${RepairUpdir} "$JAVAPATH" "$EXEDIR\$JAVAPATH" 163 | ${EndIf} 164 | 165 | ;AdditionalPaths will contain multiple directories. We need to make them all absolute. 166 | ${Explode} $0 ";" "$ADDITIONALPATHS" 167 | StrCpy "$ADDITIONALPATHS" "" 168 | ${For} $1 1 $0 169 | Pop $2 170 | ${If} "$2" != "" 171 | ${RepairUpdir} "$2" "$EXEDIR\$2" 172 | StrCpy "$ADDITIONALPATHS" "$ADDITIONALPATHS$2;" 173 | ${EndIf} 174 | ${Next} 175 | 176 | ${If} ${FileExists} "$SETTINGSDIRECTORY\${NAME}Settings.ini" 177 | 178 | ;Read previous launcher settings 179 | ReadINIStr "$LASTROOT" "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastDrive" 180 | ReadINIStr "$R1" "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "FirstRun" 181 | ReadINIStr "$LASTEXEDIR" "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastEXEDIrectory" 182 | 183 | ${Else} 184 | 185 | ;No Launcher settings, lets use defaults! 186 | CreateDirectory "$SETTINGSDIRECTORY" 187 | SetOutPath "$SETTINGSDIRECTORY" 188 | StrCpy "$LASTROOT" "$ROOT" 189 | StrCpy "$R1" "true" 190 | 191 | ${EndIf} 192 | 193 | ;Eclipse uses double slashes in paths 194 | ${WordReplace} "$LASTROOT" ":" "\:" "+" "$LASTROOTDOUBLESLASH" 195 | 196 | ;Let's create the settings 197 | CreateDirectory "$PROGRAMDIRECTORY\configuration\.settings" 198 | ${IfNot} ${FileExists} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" 199 | WriteINIStr "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "${NAME}" "YouShouldNotSeeThis" "IfYouDoThatsBad" 200 | FileOpen $0 "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" w 201 | FileWrite $0 "" 202 | FileClose $0 203 | ${EndIf} 204 | 205 | ${If} $R1 == "true" 206 | ;This is the first run of EclipsePortable 207 | 208 | ;Set up workspace directory with double paths 209 | ${GetParent} "$SETTINGSDIRECTORY" "$DATADIRECTORY" 210 | StrCpy "$WORKSPACE" "$DATADIRECTORY\workspace" 211 | ${WordReplace} "$WORKSPACE" "\" "\\" "+" "$WORKSPACEDOUBLESLASH" 212 | ${WordReplace} "$WORKSPACEDOUBLESLASH" "$ROOT" "$ROOTDOUBLESLASH" "+" "$WORKSPACEDOUBLESLASH" 213 | 214 | ;Set up settings file with workspace 215 | CreateDirectory "$PROGRAMDIRECTORY\configuration\.settings" 216 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "RECENT_WORKSPACES_PROTOCOL=" "3" "$0" 217 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "MAX_RECENT_WORKSPACES=" "1" "$0" 218 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "SHOW_WORKSPACE_SELECTION_DIALOG=" "false" "$0" 219 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "RECENT_WORKSPACES=" "$WORKSPACEDOUBLESLASH" "$0" 220 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "eclipse.preferences.version=" "1" "$0" 221 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\config.ini" "osgi.instance.area.default=" "$WORKSPACEDOUBLESLASH" "$0" 222 | 223 | ;EclipseNSIS 224 | StrCpy "$NSISPATH" "$PARENTDIRECTORY\NSISPortable\App\NSIS" 225 | ${WordReplace} "$NSISPATH" "\\" "\" "+" "$NSISPATH" 226 | 227 | ${Else} 228 | ;Mananging Eclipse's settings 229 | 230 | ; Get our full workspace 231 | ${ConfigRead} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "RECENT_WORKSPACES=" "$WORKSPACEDOUBLESLASH" 232 | 233 | ;Get our workspace 234 | ${WordReplace} "$WORKSPACEDOUBLESLASH" "\\" "\" "+" "$WORKSPACE" 235 | ${WordReplace} "$WORKSPACE" "$LASTROOTDOUBLESLASH" "$LASTROOT" "+" "$WORKSPACE" 236 | ${WordReplace} "$WORKSPACE" "$LASTEXEDIR" "$EXEDIR" "+" "$WORKSPACE" 237 | 238 | ;Explode the workspace directory, so we can support multiple workspaces 239 | ${Explode} $0 "\n" "$WORKSPACE" 240 | Pop "$WORKSPACE" 241 | 242 | ${WordReplace} "$LASTEXEDIR" "\" "\\" "+" "$R2" 243 | ${WordReplace} "$R2" "$LASTROOT" "$LASTROOTDOUBLESLASH" "+" "$R2" 244 | ${WordReplace} "$EXEDIR" "\" "\\" "+" "$R3" 245 | ${WordReplace} "$R3" "$ROOT" "$ROOTDOUBLESLASH" "+" "$R3" 246 | 247 | ${WordReplace} "$WORKSPACEDOUBLESLASH" "$R2" "$R3" "+" "$WORKSPACEDOUBLESLASH" 248 | ${WordReplace} "$WORKSPACEDOUBLESLASH" "$LASTROOTDOUBLESLASH" "$ROOTDOUBLESLASH" "+" "$WORKSPACEDOUBLESLASH" ;Update workspace drive letter. 249 | 250 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\.settings\org.eclipse.ui.ide.prefs" "RECENT_WORKSPACES=" "$WORKSPACEDOUBLESLASH" "$0" 251 | 252 | ;Update Locations 253 | ${ReplaceInFile} "$WORKSPACE\.metadata\.plugins\org.eclipse.ui.workbench\workbench.xml" "$LASTROOT" "$ROOT" 254 | Delete "$WORKSPACE\.metadata\.plugins\org.eclipse.ui.workbench\workbench.xml.old" 255 | 256 | ;Update Workspace with new drive letter path 257 | ${ConfigWrite} "$PROGRAMDIRECTORY\configuration\config.ini" "osgi.instance.area.default=" "$WORKSPACEDOUBLESLASH" "$0" 258 | 259 | ;Get EclipseNSIS Paths 260 | ${ConfigRead} "$WORKSPACE\.metadata\.plugins\org.eclipse.core.runtime\.settings\net.sf.eclipsensis.prefs" "nsisHome=" "$NSISPATH" 261 | ${WordReplace} "$NSISPATH" "$LASTROOTDOUBLESLASH" "$ROOTDOUBLESLASH" "+" "$NSISPATH" 262 | 263 | ${EndIf} 264 | 265 | ;Update EclispeNSIS paths 266 | ${ConfigWrite} "$WORKSPACE\.metadata\.plugins\org.eclipse.core.runtime\.settings\net.sf.eclipsensis.prefs" "nsisHome=" "$NSISPATH" "$0" 267 | 268 | ;Redirect AppData 269 | ;System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("APPDATA", "$WORKSPACEDIRECTORY").r0' 270 | ;System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("LOCALAPPDATA", "$WORKSPACEDIRECTORY").r0' 271 | 272 | ;Set up MinGW Toolchain and add Additional Paths 273 | ReadEnvStr $0 "PATH" 274 | StrCpy $0 "$MINGWPATH;$ADDITIONALPATHS$0" ;$ADDITIONALPATHS already has semicolon appended 275 | System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("PATH", "$0").r0' 276 | 277 | ;Eclipse Portable Settings 278 | WriteINIStr "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "FirstRun" "False" 279 | WriteINIStr "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastDrive" "$ROOT" 280 | WriteINIStr "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastEXEDirectory" "$EXEDIR" 281 | 282 | ${GetParent} "$PROGRAMDIRECTORY" "$APPDIRECTORY" 283 | 284 | ${If} ${FileExists} "$JAVAPATH\javaw.exe" 285 | Exec '"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $PARAMETERS -vm "$JAVAPATH"$ADDITIONALPARAMETERS' 286 | ${ElseIf} ${FileExists} "$APPDIRECTORY\Java\bin\javaw.exe" 287 | Exec '"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $PARAMETERS -vm "$APPDIRECTORY\Java\bin"$ADDITIONALPARAMETERS' 288 | ${ElseIf} ${FileExists} "$PARENTDIRECTORY\CommonFiles\Java\bin\javaw.exe" 289 | Exec '"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $PARAMETERS -vm "$PARENTDIRECTORY\CommonFiles\Java\bin"$ADDITIONALPARAMETERS' 290 | ${Else} 291 | ;No Java, let's hope it's installed locally, if not, Ecipse will handle the rest of the errors 292 | Exec '"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"$PARAMETERS $ADDITIONALPARAMETERS' 293 | ${EndIf} 294 | ;Check for Java 295 | 296 | 297 | SectionEnd -------------------------------------------------------------------------------- /Other/Source/Explode.nsh: -------------------------------------------------------------------------------- 1 | !define Explode "!insertmacro Explode" 2 | 3 | !macro Explode Length Separator String 4 | Push `${Separator}` 5 | Push `${String}` 6 | Call Explode 7 | Pop `${Length}` 8 | !macroend 9 | 10 | Function Explode 11 | ; Initialize variables 12 | Var /GLOBAL explString 13 | Var /GLOBAL explSeparator 14 | Var /GLOBAL explStrLen 15 | Var /GLOBAL explSepLen 16 | Var /GLOBAL explOffset 17 | Var /GLOBAL explTmp 18 | Var /GLOBAL explTmp2 19 | Var /GLOBAL explTmp3 20 | Var /GLOBAL explArrCount 21 | 22 | ; Get input from user 23 | Pop $explString 24 | Pop $explSeparator 25 | 26 | ; Calculates initial values 27 | StrLen $explStrLen $explString 28 | StrLen $explSepLen $explSeparator 29 | StrCpy $explArrCount 1 30 | 31 | ${If} $explStrLen <= 1 ; If we got a single character 32 | ${OrIf} $explSepLen > $explStrLen ; or separator is larger than the string, 33 | Push $explString ; then we return initial string with no change 34 | Push 1 ; and set array's length to 1 35 | Return 36 | ${EndIf} 37 | 38 | ; Set offset to the last symbol of the string 39 | StrCpy $explOffset $explStrLen 40 | IntOp $explOffset $explOffset - 1 41 | 42 | ; Clear temp string to exclude the possibility of appearance of occasional data 43 | StrCpy $explTmp "" 44 | StrCpy $explTmp2 "" 45 | StrCpy $explTmp3 "" 46 | 47 | ; Loop until the offset becomes negative 48 | ${Do} 49 | ; If offset becomes negative, it is time to leave the function 50 | ${IfThen} $explOffset == -1 ${|} ${ExitDo} ${|} 51 | 52 | ; Remove everything before and after the searched part ("TempStr") 53 | StrCpy $explTmp $explString $explSepLen $explOffset 54 | 55 | ${If} $explTmp == $explSeparator 56 | ; Calculating offset to start copy from 57 | IntOp $explTmp2 $explOffset + $explSepLen ; Offset equals to the current offset plus length of separator 58 | StrCpy $explTmp3 $explString "" $explTmp2 59 | 60 | Push $explTmp3 ; Throwing array item to the stack 61 | IntOp $explArrCount $explArrCount + 1 ; Increasing array's counter 62 | 63 | StrCpy $explString $explString $explOffset 0 ; Cutting all characters beginning with the separator entry 64 | StrLen $explStrLen $explString 65 | ${EndIf} 66 | 67 | ${If} $explOffset = 0 ; If the beginning of the line met and there is no separator, 68 | ; copying the rest of the string 69 | ${If} $explSeparator == "" ; Fix for the empty separator 70 | IntOp $explArrCount $explArrCount - 1 71 | ${Else} 72 | Push $explString 73 | ${EndIf} 74 | ${EndIf} 75 | 76 | IntOp $explOffset $explOffset - 1 77 | ${Loop} 78 | 79 | Push $explArrCount 80 | FunctionEnd -------------------------------------------------------------------------------- /Other/Source/GetParent.nsh: -------------------------------------------------------------------------------- 1 | ; GetParent 2 | ; Copyright sunjammer 3 | ; http://nsis.sourceforge.net/Get_parent_directory 4 | ; 5 | ; input, top of stack (e.g. C:\Program Files\Poop) 6 | ; output, top of stack (replaces, with e.g. C:\Program Files) 7 | ; modifies no other variables. 8 | ; 9 | ; Usage: 10 | ; Push "C:\Program Files\Directory\Whatever" 11 | ; Call GetParent 12 | ; Pop $R0 13 | ; ; at this point $R0 will equal "C:\Program Files\Directory" 14 | 15 | Function GetParent 16 | 17 | Exch $R0 18 | Push $R1 19 | Push $R2 20 | Push $R3 21 | 22 | StrCpy $R1 0 23 | StrLen $R2 $R0 24 | 25 | loop: 26 | IntOp $R1 $R1 + 1 27 | IntCmp $R1 $R2 get 0 get 28 | StrCpy $R3 $R0 1 -$R1 29 | StrCmp $R3 "\" get 30 | Goto loop 31 | 32 | get: 33 | StrCpy $R0 $R0 -$R1 34 | 35 | Pop $R3 36 | Pop $R2 37 | Pop $R1 38 | Exch $R0 39 | 40 | FunctionEnd -------------------------------------------------------------------------------- /Other/Source/License.txt: -------------------------------------------------------------------------------- 1 |  GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 | 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Library General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, 261 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT 262 | PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED 263 | IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 264 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, 265 | EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 266 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 267 | A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY 268 | AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 269 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL 270 | NECESSARY SERVICING, REPAIR OR CORRECTION. 271 | 272 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR 273 | AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY 274 | OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM 275 | AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING 276 | ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES 277 | ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM 278 | (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 279 | RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 280 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY 281 | OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS 282 | BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 283 | 284 | END OF TERMS AND CONDITIONS 285 | 286 | How to Apply These Terms to Your New Programs 287 | 288 | If you develop a new program, and you want it to be of the greatest 289 | possible use to the public, the best way to achieve this is to make it 290 | free software which everyone can redistribute and change under these terms. 291 | 292 | To do so, attach the following notices to the program. It is safest 293 | to attach them to the start of each source file to most effectively 294 | convey the exclusion of warranty; and each file should have at least 295 | the "copyright" line and a pointer to where the full notice is found. 296 | 297 | 298 | Copyright (C) 19yy 299 | 300 | This program is free software; you can redistribute it and/or modify 301 | it under the terms of the GNU General Public License as published by 302 | the Free Software Foundation; either version 2 of the License, or 303 | (at your option) any later version. 304 | 305 | This program is distributed in the hope that it will be useful, 306 | but WITHOUT ANY WARRANTY; without even the implied warranty of 307 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 308 | GNU General Public License for more details. 309 | 310 | You should have received a copy of the GNU General Public License 311 | along with this program; if not, write to the Free Software 312 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 313 | 314 | 315 | Also add information on how to contact you by electronic and paper mail. 316 | 317 | If the program is interactive, make it output a short notice like this 318 | when it starts in an interactive mode: 319 | 320 | Gnomovision version 69, Copyright (C) 19yy name of author 321 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 322 | This is free software, and you are welcome to redistribute it 323 | under certain conditions; type `show c' for details. 324 | 325 | The hypothetical commands `show w' and `show c' should show the appropriate 326 | parts of the General Public License. Of course, the commands you use may 327 | be called something other than `show w' and `show c'; they could even be 328 | mouse-clicks or menu items--whatever suits your program. 329 | 330 | You should also get your employer (if you work as a programmer) or your 331 | school, if any, to sign a "copyright disclaimer" for the program, if 332 | necessary. Here is a sample; alter the names: 333 | 334 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 335 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 336 | 337 | , 1 April 1989 338 | Ty Coon, President of Vice 339 | 340 | This General Public License does not permit incorporating your program into 341 | proprietary programs. If your program is a subroutine library, you may 342 | consider it more useful to permit linking proprietary applications with the 343 | library. If this is what you want to do, use the GNU Library General 344 | Public License instead of this License. -------------------------------------------------------------------------------- /Other/Source/PortableApps.comLauncherLANG_ENGLISH.nsh: -------------------------------------------------------------------------------- 1 | LangString LauncherFileNotFound ${LANG_ENGLISH} "${PORTABLEAPPNAME} cannot be started. You may wish to re-install to fix this issue. (ERROR: $MISSINGFILEORPATH could not be found)" 2 | LangString LauncherAlreadyRunning ${LANG_ENGLISH} "Another instance of ${APPNAME} is already running. Please close other instances of ${APPNAME} before launching ${PORTABLEAPPNAME}." 3 | LangString LauncherAskCopyLocal ${LANG_ENGLISH} "${PORTABLEAPPNAME} appears to be running from a location that is read-only. Would you like to temporarily copy it to the local hard drive and run it from there?$\n$\nPrivacy Note: If you say Yes, your personal data within ${PORTABLEAPPNAME} will be temporarily copied to a local drive. Although this copy of your data will be deleted when you close ${PORTABLEAPPNAME}, it may be possible for someone else to access your data later." 4 | LangString LauncherNoReadOnly ${LANG_ENGLISH} "${PORTABLEAPPNAME} can not run directly from a read-only location and will now close." 5 | LangString LauncherPathTooLong ${LANG_ENGLISH} "The path to ${PORTABLEAPPNAME} is too long. Please shorten the path by eliminating some parent directories or shortening directory names." 6 | LangString LauncherNextButton ${LANG_ENGLISH} "&Next >" 7 | -------------------------------------------------------------------------------- /Other/Source/ReadINIStrWithDefault.nsh: -------------------------------------------------------------------------------- 1 | ; ReadINIStrWithDefault 1.1 (2009-05-12) 2 | ; 3 | ; Substitutes a default value if the INI is undefined 4 | ; Copyright 2008-2009 John T. Haller of PortableApps.com 5 | ; Released under the BSD 6 | ; 7 | ; Usage: ${ReadINIStrWithDefault} OUTPUT_VALUE INI_FILENAME SECTION_NAME ENTRY_NAME DEFAULT_VALUE 8 | ; 9 | ; History: 10 | ; 1.1 (2009-05-12): Fixed error with $0 and $2 being swapped 11 | 12 | Function ReadINIStrWithDefault 13 | ;Start with a clean slate 14 | ClearErrors 15 | 16 | ;Get our parameters 17 | Exch $0 ;DEFAULT_VALUE 18 | Exch 19 | Exch $1 ;ENTRY_NAME 20 | Exch 2 21 | Exch $2 ;SECTION_NAME 22 | Exch 3 23 | Exch $3 ;INI_FILENAME 24 | Push $4 ;OUTPUT_VALUE 25 | 26 | ;Read from the INI 27 | ReadINIStr $4 $3 $2 $1 28 | IfErrors 0 +3 29 | StrCpy $4 $0 30 | ClearErrors 31 | 32 | ;Keep the variable for last 33 | StrCpy $0 $4 34 | 35 | ;Clear the stack 36 | Pop $4 37 | Pop $3 38 | Exch 2 39 | Pop $2 40 | Pop $1 41 | 42 | ;Reset the last variable and leave our result on the stack 43 | Exch $0 44 | FunctionEnd 45 | 46 | !macro ReadINIStrWithDefault OUTPUT_VALUE INI_FILENAME SECTION_NAME ENTRY_NAME DEFAULT_VALUE 47 | Push `${INI_FILENAME}` 48 | Push `${SECTION_NAME}` 49 | Push `${ENTRY_NAME}` 50 | Push `${DEFAULT_VALUE}` 51 | Call ReadINIStrWithDefault 52 | Pop `${OUTPUT_VALUE}` 53 | !macroend 54 | 55 | !define ReadINIStrWithDefault '!insertmacro "ReadINIStrWithDefault"' -------------------------------------------------------------------------------- /Other/Source/Readme.txt: -------------------------------------------------------------------------------- 1 | Eclipse Portable Launcher 2 | ========================= 3 | Copyright 2004-2012 John T. Haller 4 | Copyright 2008-2012 Brandon Cheng 5 | 6 | Website: http://PortableApps.com/EclipsePortable 7 | 8 | This software is OSI Certified Open Source Software. 9 | OSI Certified is a certification mark of the Open Source Initiative. 10 | 11 | This program is free software; you can redistribute it and/or 12 | modify it under the terms of the GNU General Public License 13 | as published by the Free Software Foundation; either version 2 14 | of the License, or (at your option) any later version. 15 | 16 | This program is distributed in the hope that it will be useful, 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | GNU General Public License for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with this program; if not, write to the Free Software 23 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24 | 25 | ABOUT ECLIPSE PORTABLE 26 | ====================== 27 | The Eclipse Portable Launcher allows you to run Eclipse from a removable drive 28 | whose letter changes as you move it to another computer. The browser and the 29 | profile can be entirely self-contained on the drive and then used on any Windows 30 | computer. 31 | 32 | LICENSE 33 | ======= 34 | This code is released under the GPL. Within the EclipsePortableSource directory 35 | you will find the code (EclipsePortable.nsi) as well as the full GPL license 36 | (License.txt). If you use the launcher or code in your own product, please give 37 | proper and prominent attribution. 38 | 39 | 40 | INSTALLATION / DIRECTORY STRUCTURE 41 | ================================== 42 | By default, the program expects the following directory structure: 43 | 44 | -\ <--- Directory with EclipsePortable.exe 45 | +\App\ 46 | +\Eclipse\ 47 | +\Data\ 48 | +\workspace\ 49 | +\settings\ 50 | 51 | The above files may also be placed in a EclipsePortable directory with the 52 | EclipsePortable.exe launcher a directory above that. 53 | 54 | It can be used in other directory configurations by including the EclipsePortable.ini 55 | file in the same directory as EclipsePortable.exe and configuring it as detailed in 56 | the INI file section below. 57 | 58 | 59 | ECLIPSEPORTABLE.INI CONFIGURATION 60 | ================================= 61 | The Eclipse Portable Launcher will look for an ini file called EclipsePortable.ini 62 | within its directory. If you are happy with the default options, it is not necessary, 63 | though. There is an example INI included with this package to get you started. The 64 | INI file is formatted as follows: 65 | 66 | [EclipsePortable] 67 | EclipseDirectory=App\Eclipse 68 | EclipseExecutable=eclipse.exe 69 | SettingsDirectory=Data\settings 70 | JavaPath=..\CommonFiles\Java\bin\javaw.exe 71 | MinGWPath=..\CommonFiles\MinGW\bin 72 | AdditionalPaths=..\MSYSPortable\App\MSYS\bin 73 | AdditionalParameters= 74 | 75 | The EclipseExecutable entry allows you to set the Eclipse Portable Launcher to use 76 | an alternate EXE call to launch Eclipse. This is helpful if you are using a machine 77 | that is set to deny Eclipse.exe from running. You'll need to rename the Eclipse.exe 78 | file and then enter the name you gave it on the EclipseExecutable= line of the INI. 79 | 80 | The SettingsDirectory entries should be set to the *relative* path to the directories 81 | containing Eclipse.exe, your profile, your plugins, etc. from the current directory. 82 | All must be a subdirectory (or multiple subdirectories) of the directory containing 83 | EclipsePortable.exe. The default entries for these are described in the installation 84 | section above. 85 | 86 | The JavaPath is the place where Java is on the drive. Each ".." will tell Eclipse to 87 | go up a directory from the Eclipse Portable folder. This way, you can run Eclipse 88 | on Computers where java has not been installed. 89 | 90 | The AdditionalPaths are directiries you would like Eclipse Portable to add to the PATH 91 | environment variable on startup. This may be MSYS, Git, or GTK+. Separate paths with a 92 | semicolon (;). 93 | 94 | The AdditionalParameters entry allows you to pass additional commandline parameter 95 | entries to Eclipse.exe. Whatever you enter here will be appended to the call to 96 | Eclipse.exe. 97 | 98 | -------------------------------------------------------------------------------- /Other/Source/RepairUpdir.nsh: -------------------------------------------------------------------------------- 1 | ; RepairUpdir - repair ../ path names to good names 2 | ; input, top of stack = pathname with ../ 3 | ; output, top of stack 4 | ; modifies no other variables. 5 | ; 6 | ; Usage: 7 | ; Push "A:\B\..\C\D\..\E.txt" 8 | ; Call RepairUpdir 9 | ; Pop $R0; $R0 is now "A:\C\E.txt" 10 | 11 | Function RepairUpdir 12 | Exch $R0 13 | Push $R1 14 | Push $R2 ; strlen(orgstr) 15 | Push $R3 ; tempchar 16 | Push $R4 ; pos of last good '/' before '/..' 17 | 18 | restart: 19 | StrCpy $R1 -1 ; position of where last good / is 20 | StrCpy $R4 -1 21 | StrLen $R2 $R0 22 | 23 | loop: 24 | IntOp $R1 $R1 + 1 ; pos++ 25 | IntCmp $R1 $R2 cut 0 cut 26 | ; 3 chars at cur pos 27 | StrCpy $R3 $R0 3 $R1 28 | StrCmp $R3 "\.." get 29 | StrCmp $R3 "/.." get 30 | ; single char at cur pos 31 | StrCpy $R3 $R0 1 $R1 32 | StrCmp $R3 "/" set 33 | StrCmp $R3 "\" set 34 | 35 | Goto loop 36 | ; Remember the last "/" position 37 | set: 38 | StrCpy $R4 $R1 39 | Goto loop 40 | ; Now delete from $R4 to $R1 41 | get: 42 | ; Make sure we fond somehting good 43 | IntCmp $R1 $R4 cut cut 0 44 | ; left part 45 | StrCpy $R3 $R0 $R4 ; C:\ 46 | ; right part 47 | IntOp $R1 $R1 + 3 ; $R1-=4 48 | StrCpy $R4 $R0 $R2 $R1; 49 | StrCpy $R0 $R3$R4 50 | ; Now we have to redo this for multiple occurrences of /.. 51 | goto restart 52 | 53 | cut: ; Nothing happened 54 | Pop $R4 55 | Pop $R3 56 | Pop $R2 57 | Pop $R1 58 | Exch $R0 59 | FunctionEnd -------------------------------------------------------------------------------- /Other/Source/ReplaceInFile.nsh: -------------------------------------------------------------------------------- 1 | ; http://nsis.sourceforge.net/ReplaceInFile 2 | ; Copyright: Datenbert 3 | ; License: BSD (NSIS license) 4 | ; define added by John T. Haller of PortableApps.com 5 | 6 | Function RIF 7 | 8 | ClearErrors ; want to be a newborn 9 | 10 | Exch $0 ; REPLACEMENT 11 | Exch 12 | Exch $1 ; SEARCH_TEXT 13 | Exch 2 14 | Exch $2 ; SOURCE_FILE 15 | 16 | Push $R0 ; SOURCE_FILE file handle 17 | Push $R1 ; temporary file handle 18 | Push $R2 ; unique temporary file name 19 | Push $R3 ; a line to sar/save 20 | Push $R4 ; shift puffer 21 | 22 | IfFileExists $2 +1 RIF_error ; knock-knock 23 | FileOpen $R0 $2 "r" ; open the door 24 | 25 | GetTempFileName $R2 ; who's new? 26 | FileOpen $R1 $R2 "w" ; the escape, please! 27 | 28 | RIF_loop: ; round'n'round we go 29 | FileRead $R0 $R3 ; read one line 30 | IfErrors RIF_leaveloop ; enough is enough 31 | RIF_sar: ; sar - search and replace 32 | Push "$R3" ; (hair)stack 33 | Push "$1" ; needle 34 | Push "$0" ; blood 35 | Call StrReplace ; do the bartwalk 36 | StrCpy $R4 "$R3" ; remember previous state 37 | Pop $R3 ; gimme s.th. back in return! 38 | StrCmp "$R3" "$R4" +1 RIF_sar ; loop, might change again! 39 | FileWrite $R1 "$R3" ; save the newbie 40 | Goto RIF_loop ; gimme more 41 | 42 | RIF_leaveloop: ; over'n'out, Sir! 43 | FileClose $R1 ; S'rry, Ma'am - clos'n now 44 | FileClose $R0 ; me 2 45 | 46 | Delete "$2.old" ; go away, Sire 47 | Rename "$2" "$2.old" ; step aside, Ma'am 48 | Rename "$R2" "$2" ; hi, baby! 49 | 50 | ClearErrors ; now i AM a newborn 51 | Goto RIF_out ; out'n'away 52 | 53 | RIF_error: ; ups - s.th. went wrong... 54 | SetErrors ; ...so cry, boy! 55 | 56 | RIF_out: ; your wardrobe? 57 | Pop $R4 58 | Pop $R3 59 | Pop $R2 60 | Pop $R1 61 | Pop $R0 62 | Pop $2 63 | Pop $0 64 | Pop $1 65 | 66 | FunctionEnd 67 | 68 | !macro _ReplaceInFile SOURCE_FILE SEARCH_TEXT REPLACEMENT 69 | Push "${SOURCE_FILE}" 70 | Push "${SEARCH_TEXT}" 71 | Push "${REPLACEMENT}" 72 | Call RIF 73 | !macroend 74 | 75 | !define ReplaceInFile '!insertmacro "_ReplaceInFile"' -------------------------------------------------------------------------------- /Other/Source/StrRep.nsh: -------------------------------------------------------------------------------- 1 | ; StrReplace 2 | ; Replaces all ocurrences of a given needle within a haystack with another string 3 | ; Written by dandaman32 4 | 5 | Var STR_REPLACE_VAR_0 6 | Var STR_REPLACE_VAR_1 7 | Var STR_REPLACE_VAR_2 8 | Var STR_REPLACE_VAR_3 9 | Var STR_REPLACE_VAR_4 10 | Var STR_REPLACE_VAR_5 11 | Var STR_REPLACE_VAR_6 12 | Var STR_REPLACE_VAR_7 13 | Var STR_REPLACE_VAR_8 14 | 15 | Function StrReplace 16 | Exch $STR_REPLACE_VAR_2 17 | Exch 1 18 | Exch $STR_REPLACE_VAR_1 19 | Exch 2 20 | Exch $STR_REPLACE_VAR_0 21 | StrCpy $STR_REPLACE_VAR_3 -1 22 | StrLen $STR_REPLACE_VAR_4 $STR_REPLACE_VAR_1 23 | StrLen $STR_REPLACE_VAR_6 $STR_REPLACE_VAR_0 24 | loop: 25 | IntOp $STR_REPLACE_VAR_3 $STR_REPLACE_VAR_3 + 1 26 | StrCpy $STR_REPLACE_VAR_5 $STR_REPLACE_VAR_0 $STR_REPLACE_VAR_4 $STR_REPLACE_VAR_3 27 | StrCmp $STR_REPLACE_VAR_5 $STR_REPLACE_VAR_1 found 28 | StrCmp $STR_REPLACE_VAR_3 $STR_REPLACE_VAR_6 done 29 | Goto loop 30 | found: 31 | StrCpy $STR_REPLACE_VAR_5 $STR_REPLACE_VAR_0 $STR_REPLACE_VAR_3 32 | IntOp $STR_REPLACE_VAR_8 $STR_REPLACE_VAR_3 + $STR_REPLACE_VAR_4 33 | StrCpy $STR_REPLACE_VAR_7 $STR_REPLACE_VAR_0 "" $STR_REPLACE_VAR_8 34 | StrCpy $STR_REPLACE_VAR_0 $STR_REPLACE_VAR_5$STR_REPLACE_VAR_2$STR_REPLACE_VAR_7 35 | StrLen $STR_REPLACE_VAR_6 $STR_REPLACE_VAR_0 36 | Goto loop 37 | done: 38 | Pop $STR_REPLACE_VAR_1 ; Prevent "invalid opcode" errors and keep the 39 | Pop $STR_REPLACE_VAR_1 ; stack as it was before the function was called 40 | Exch $STR_REPLACE_VAR_0 41 | FunctionEnd 42 | 43 | !macro _strReplaceConstructor OUT NEEDLE NEEDLE2 HAYSTACK 44 | Push "${HAYSTACK}" 45 | Push "${NEEDLE}" 46 | Push "${NEEDLE2}" 47 | Call StrReplace 48 | Pop "${OUT}" 49 | !macroend 50 | 51 | !define StrReplace '!insertmacro "_strReplaceConstructor"' -------------------------------------------------------------------------------- /help.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Eclipse Portable Help 6 | 7 | 8 | 123 | 124 | 125 | 126 | 127 |
128 |

Eclipse Portable Help

129 |

IDE for everything

130 |

Eclipse Portable is the Eclipse IDE packaged with a PortableApps.com launcher as a portable app, so you can code on your iPod, USB flash drive, portable hard drive, etc. It has all the same features as Eclipse, plus, it leaves no personal information behind on the machine you run it on, so you can take it with you wherever you go. Learn more about Eclipse...

131 | 132 |

Make a Donation - Support PortableApps.com's Hosting and Development

133 |

Make a Donation - Support Eclipse's Open Source Community

134 | 135 |

Go to the Eclipse Portable Homepage >>

136 |

Get more portable apps at PortableApps.com

137 | 138 |

This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative.

139 | 140 |

Portable App Issues

141 | 147 |

You can read about advanced configuration options for the PortableApps.com Launcher in its readme file.

148 |
149 | 150 | 151 | 152 | --------------------------------------------------------------------------------