Project

General

Profile

« Previous | Next » 

Revision 0c3e5a5d

Added by Patrick Plitzner about 6 years ago

ref #6925 Implement utility method to open links in external browser

View differences:

eu.etaxonomy.taxeditor.workbench/src/main/java/eu/etaxonomy/taxeditor/workbench/WorkbenchUtility.java
9 9
package eu.etaxonomy.taxeditor.workbench;
10 10

  
11 11
import java.io.File;
12
import java.net.URL;
12 13
import java.util.List;
13 14

  
14 15
import org.eclipse.core.runtime.Platform;
......
19 20
import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainerElement;
20 21
import org.eclipse.e4.ui.model.application.ui.basic.MPartStack;
21 22
import org.eclipse.e4.ui.workbench.modeling.EModelService;
23
import org.eclipse.swt.program.Program;
22 24

  
23 25
import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
24 26
import eu.etaxonomy.taxeditor.workbench.part.ISelectionElementEditingPart;
......
97 99
        }
98 100
        return null;
99 101
    }
102

  
103
    public static boolean openWebpage(URL url){
104
        return Program.launch(url.toString());
105
    }
100 106
}

Also available in: Unified diff