92 return title; |
92 return title; |
93 } |
93 } |
94 } |
94 } |
95 |
95 |
96 private String title; |
96 private String title; |
|
97 private String tooltip; |
97 private ImageDescriptor imageDescriptor; |
98 private ImageDescriptor imageDescriptor; |
98 private String id; |
99 private String id; |
99 private final ICommandBarFactory commandBarFactory; |
100 private final ICommandBarFactory commandBarFactory; |
100 private StackComposite pageComposite; |
101 private StackComposite pageComposite; |
101 private boolean initialized; |
102 private boolean initialized; |
102 private List<Layer> layers; |
103 private List<Layer> layers; |
103 private Layer currentLayer; |
104 private Layer currentLayer; |
104 private IAction[] actions; |
105 private IAction[] actions; |
105 private List<TaskBar> pageTaskBars; |
106 private List<TaskBar> pageTaskBars; |
106 |
107 |
107 public PortalPage(String title, ImageDescriptor imageDescriptor, String id, |
108 public PortalPage(String title, String tooltip, ImageDescriptor imageDescriptor, String id, |
108 List<LayerExtension> layerExtensions, ICommandBarFactory commandBarFactory) { |
109 List<LayerExtension> layerExtensions, ICommandBarFactory commandBarFactory) { |
109 this.title = title; |
110 this.title = title; |
|
111 this.tooltip = tooltip; |
110 this.imageDescriptor = imageDescriptor; |
112 this.imageDescriptor = imageDescriptor; |
111 this.id = id; |
113 this.id = id; |
112 this.commandBarFactory = commandBarFactory; |
114 this.commandBarFactory = commandBarFactory; |
113 layers = new ArrayList<Layer>(layerExtensions.size()); |
115 layers = new ArrayList<Layer>(layerExtensions.size()); |
114 Collections.sort(layerExtensions, new Comparator<LayerExtension>() { |
116 Collections.sort(layerExtensions, new Comparator<LayerExtension>() { |