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

« back to all changes in this revision

Viewing changes to libhover/org.eclipse.linuxtools.cdt.libhover/src/org/eclipse/linuxtools/cdt/libhover/LibhoverPlugin.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:
15
15
import org.eclipse.core.resources.ResourcesPlugin;
16
16
import org.eclipse.core.runtime.jobs.Job;
17
17
import org.eclipse.jface.preference.IPreferenceStore;
18
 
import org.eclipse.jface.resource.ImageDescriptor;
19
18
import org.eclipse.linuxtools.internal.cdt.libhover.LibHover;
20
19
import org.eclipse.linuxtools.internal.cdt.libhover.LibHoverLoadJob;
21
20
import org.eclipse.linuxtools.internal.cdt.libhover.LibHoverMessages;
29
28
public class LibhoverPlugin extends AbstractUIPlugin {
30
29
 
31
30
        // The plug-in ID
32
 
        public static final String PLUGIN_ID = "org.eclipse.linuxtools.cdt.libhover";
 
31
        public static final String PLUGIN_ID = "org.eclipse.linuxtools.cdt.libhover"; //$NON-NLS-1$
33
32
 
34
33
        private static final String LOAD_JOB_TXT = "LibHover.LoadJob.txt"; //$NON-NLS-1$
35
34
        
57
56
                ResourcesPlugin.getWorkspace().addSaveParticipant(PLUGIN_ID,
58
57
                                new ISaveParticipant() {
59
58
                                        public void saving(ISaveContext saveContext) {
60
 
                                                LibhoverPlugin.getDefault().save(saveContext);
 
59
                                                save(saveContext);
61
60
                                        }                               
62
61
                                        public void rollback(ISaveContext saveContext) {}
63
62
                                        public void prepareToSave(ISaveContext saveContext) {}
93
92
                return plugin;
94
93
        }
95
94
        
96
 
        /*
97
 
         * Returns the id of the plugin
98
 
         */
99
 
        public static String getID() {
100
 
                return PLUGIN_ID;
101
 
        }
102
 
 
103
 
        /**
104
 
         * Returns an image descriptor for the image file at the given
105
 
         * plug-in relative path
106
 
         *
107
 
         * @param path the path
108
 
         * @return the image descriptor
109
 
         */
110
 
        public static ImageDescriptor getImageDescriptor(String path) {
111
 
                return imageDescriptorFromPlugin(PLUGIN_ID, path);
112
 
        }
113
 
}
 
95
}
 
 
b'\\ No newline at end of file'