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

« back to all changes in this revision

Viewing changes to changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/FileHyperlink.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:
19
19
 
20
20
/**
21
21
 * Hyperlink that opens up editor for a file.
22
 
 * 
 
22
 *
23
23
 * @author klee (Kyu Lee)
24
 
 * 
 
24
 *
25
25
 */
26
26
public class FileHyperlink implements IHyperlink {
27
27
 
34
34
                region = regionIn;
35
35
        }
36
36
 
 
37
        @Override
37
38
        public IRegion getHyperlinkRegion() {
38
39
                return region;
39
40
        }
40
41
 
 
42
        @Override
41
43
        public String getTypeLabel() {
42
 
                // TODO Auto-generated method stub
43
44
                return null;
44
45
        }
45
46
 
 
47
        @Override
46
48
        public String getHyperlinkText() {
47
 
                // TODO Auto-generated method stub
48
49
                return null;
49
50
        }
50
51
 
51
52
        /**
52
53
         * Opens the hyperlink in new editor window.
53
54
         */
 
55
        @Override
54
56
        public void open() {
55
57
                IWorkbench ws = PlatformUI.getWorkbench();
56
 
 
57
58
                try {
58
 
 
59
59
                        org.eclipse.ui.ide.IDE.openEditor(ws.getActiveWorkbenchWindow()
60
60
                                        .getActivePage(), fileLoc, true);
61
61
                } catch (PartInitException e) {