Further reading indicates that the mess in the PlatformProfile folder is
probably the fault of Eclipse....

Replacing /usr/bin/eclipse script with the following, deleting
~/.eclipse  folder and running appears to work OK (note that I have
removed GDK_NATIVE_WINDOWS=true because otherwise the thumbs don't get
drawn on scrollbars in Unity)


#!/bin/sh

# work around for e#290395 / LP: #458703
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=290395
# https://bugs.launchpad.net/bugs/458703
# export GDK_NATIVE_WINDOWS=true

ECLIPSE=/usr/lib/eclipse/eclipse

inject_update_site(){
    if [ ! -e "$1" ] ; then
        echo "W: Cannot find $1" 2>&1
        return 1
    fi
    cat - >>"$1" <<EOF
repositories/http\:__download.eclipse.org_releases_indigo/enabled=true
repositories/http\:__download.eclipse.org_releases_indigo/isSystem=false
repositories/http\:__download.eclipse.org_releases_indigo/nickname=Indigo 
Update Site
repositories/http\:__download.eclipse.org_releases_indigo/uri=http\://download.eclipse.org/releases/indigo/
EOF

}


if [ ! -d ~/.eclipse/ ] ; then
    $ECLIPSE -clean -initialize || exit $?

    artifact=$(find ~/.eclipse \
        -name org.eclipse.equinox.p2.artifact.repository.prefs)
    metadata=$(find ~/.eclipse \
        -name org.eclipse.equinox.p2.metadata.repository.prefs)
    
    for PREFS in $artifact ; do 
        inject_update_site $PREFS && \
        echo "I: Injected site to $PREFS" || echo "W: Failed to inject site to 
$PREFS" 2>&1
    done

    for PREFS in $metadata ; do
        inject_update_site $PREFS
        echo "I: Injected site to $PREFS" || echo "W: Failed to inject site to 
$PREFS" 2>&1
    done

fi

exec $ECLIPSE "$@"


** Bug watch added: Eclipse bugs #290395
   https://bugs.eclipse.org/bugs/show_bug.cgi?id=290395

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/873187

Title:
  Eclipse does not include the relevant software plugin repository

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/873187/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to