~ubuntu-branches/ubuntu/utopic/eclipse-linuxtools/utopic

« back to all changes in this revision

Viewing changes to rpm/org.eclipse.linuxtools.rpm.core/src/org/eclipse/linuxtools/internal/rpm/core/RPMCoreInitializer.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-05-12 18:11:40 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140512181140-w237r3vsah1tmybz
Tags: 2.2.1-1
* New upstream release.
* Refreshed d/patches.
* Removed eclipse-cdt-valgrind-remote package, all its functionality
  is now provided by eclipse-cdt-profiling-framework-remote.
* Added remove-license-feature.patch.
* Bump Standards-Version to 3.9.5.
* Enable eclipse-changelog package.
* Enable eclipse-rpm-editor package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
package org.eclipse.linuxtools.internal.rpm.core;
12
12
 
13
13
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
 
14
import org.eclipse.core.runtime.preferences.InstanceScope;
14
15
import org.eclipse.jface.preference.IPreferenceStore;
15
16
import org.eclipse.linuxtools.rpm.core.IRPMConstants;
 
17
import org.eclipse.ui.preferences.ScopedPreferenceStore;
16
18
 
17
19
/**
18
20
 * Initialize preferences.
22
24
 
23
25
        @Override
24
26
        public void initializeDefaultPreferences() {
25
 
                IPreferenceStore store = RPMCorePlugin.getDefault()
26
 
                                .getPreferenceStore();
27
 
                String user_name = System.getProperty("user.name"); //$NON-NLS-1$
 
27
                IPreferenceStore store = new ScopedPreferenceStore(InstanceScope.INSTANCE,IRPMConstants.RPM_CORE_ID);
 
28
                String userName = System.getProperty("user.name"); //$NON-NLS-1$
28
29
                store.setDefault(IRPMConstants.RPM_DISPLAYED_LOG_NAME, ".logfilename_" //$NON-NLS-1$
29
 
                                + user_name);
 
30
                                + userName);
30
31
                store.setDefault(IRPMConstants.RPM_LOG_NAME, "rpmbuild.log"); //$NON-NLS-1$
31
32
 
32
 
                store.setDefault(IRPMConstants.RPM_CMD, "/bin/rpm"); //$NON-NLS-1$
33
 
                store.setDefault(IRPMConstants.RPMBUILD_CMD, "/usr/bin/rpmbuild"); //$NON-NLS-1$
34
 
                store.setDefault(IRPMConstants.DIFF_CMD, "/usr/bin/diff"); //$NON-NLS-1$
 
33
                store.setDefault(IRPMConstants.RPM_CMD, "rpm"); //$NON-NLS-1$
 
34
                store.setDefault(IRPMConstants.RPMBUILD_CMD, "rpmbuild"); //$NON-NLS-1$
 
35
                store.setDefault(IRPMConstants.DIFF_CMD, "diff"); //$NON-NLS-1$
35
36
        }
36
37
 
37
38
}