1 | package de.uka.ipd.sdq.pcmsolver.visualisation; |
2 | |
3 | import org.eclipse.jface.resource.ImageDescriptor; |
4 | import org.eclipse.ui.IEditorInput; |
5 | import org.eclipse.ui.IPersistableElement; |
6 | |
7 | /** |
8 | * Class that is responsible for displaying Markov transformation results |
9 | * as HTML page inside a customized workbench editor of a target instance. |
10 | * |
11 | * @author Daniel Patejdl |
12 | * |
13 | */ |
14 | public class LQNResultEditorInput implements IEditorInput { |
15 | |
16 | /** |
17 | * HTML code represented as string. |
18 | */ |
19 | private String htmlCode; |
20 | |
21 | /** |
22 | * Gets the HTML code as string. |
23 | * @return the HTML code as string |
24 | */ |
25 | public String getHtmlCode() { |
26 | return htmlCode; |
27 | } |
28 | |
29 | /** |
30 | * Sets the HTML code (string) |
31 | * @param htmlCode the HTML code as string |
32 | */ |
33 | public void setHtmlCode(String htmlCode) { |
34 | this.htmlCode = htmlCode; |
35 | } |
36 | |
37 | /** |
38 | * Creates a new MarkovResultEditor, given a list of Markov transformation results. |
39 | * @param markovResults the Markov transformation results |
40 | * @param configuration the configuration properties for the reliability solver workflow |
41 | */ |
42 | public LQNResultEditorInput(String htmlCode) { |
43 | this.htmlCode = htmlCode; |
44 | } |
45 | |
46 | @Override |
47 | public boolean exists() { |
48 | return false; |
49 | } |
50 | |
51 | @Override |
52 | public ImageDescriptor getImageDescriptor() { |
53 | // TODO Auto-generated method stub |
54 | return null; |
55 | } |
56 | |
57 | @Override |
58 | public String getName() { |
59 | return "LQNResult"; |
60 | } |
61 | |
62 | @Override |
63 | public IPersistableElement getPersistable() { |
64 | // TODO Auto-generated method stub |
65 | return null; |
66 | } |
67 | |
68 | @Override |
69 | public String getToolTipText() { |
70 | return "LQN Result"; |
71 | } |
72 | |
73 | @Override |
74 | public Object getAdapter(Class adapter) { |
75 | // TODO Auto-generated method stub |
76 | return null; |
77 | } |
78 | |
79 | } |