Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ What is a view?"

 
m
Line 1: Line 1:
Views are one of the two kinds of parts that make up
+
Views are one of the two kinds of parts that make up a workbench window.  At their most basic, views are simply a subclass of the SWT <tt>Composite</tt> class, containing arbitrary controls below a title bar. The title bar contains the view name, an area for toolbar buttons, and one or two drop-down menus. The drop-down menu on the upper left is simply the standard shell menu with actions for moving, resizing, and closing the view.  The menu on the upper right and the button area are the view&#146;s <i>action bar</i> and may contain arbitrary actions defined by the implementer of that view.
a workbench window.  At their most basic, views are simply a subclass of the SWT
+
<tt>Composite</tt> class, containing arbitrary controls below a title bar. The title
+
bar contains the view name, an area for toolbar buttons, and one or two
+
drop-down menus. The drop-down menu on the upper left is simply the standard
+
shell menu with actions for moving, resizing, and closing the view.  The menu on the
+
upper right and the button area are the view&#146;s <i>action bar</i> and
+
may contain arbitrary actions defined by the implementer of that view.
+
 
+
 
+
A view interacts with the rest of the workbench via its <i>site</i>. 
+
Browse through the interfaces
+
<tt>IViewSite</tt>, <tt>IWorkbenchPartSite</tt>, and <tt>IWorkbenchSite</tt>
+
to see what site services are available to a view.
+
  
 +
A view interacts with the rest of the workbench via its <i>site</i>.  Browse through the interfaces <tt>IViewSite</tt>, <tt>IWorkbenchPartSite</tt>, and <tt>IWorkbenchSite</tt> to see what site services are available to a view.
  
 
== See Also: ==
 
== See Also: ==
 +
[[FAQ What is a viewer?]]
 +
[[FAQ Pages, parts, sites, windows: What is all this stuff?]]
 +
[[FAQ What is the difference between a view and a viewer?]]
 +
[[FAQ What is the difference between a view and an editor?]]
  
[[FAQ_What_is_a_viewer%3F]]
+
{{Template:FAQ_Tagline}}
 
+
[[FAQ_Pages%2C_parts%2C_sites%2C_windows%3A_What_is_all_this_stuff%3F]]
+
 
+
[[FAQ_What_is_the_difference_between_a_view_and_a_viewer%3F]]
+
 
+
[[FAQ_What_is_the_difference_between_a_view_and_an_editor%3F]]
+
 
+
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
+

Revision as of 21:48, 29 May 2006

Views are one of the two kinds of parts that make up a workbench window. At their most basic, views are simply a subclass of the SWT Composite class, containing arbitrary controls below a title bar. The title bar contains the view name, an area for toolbar buttons, and one or two drop-down menus. The drop-down menu on the upper left is simply the standard shell menu with actions for moving, resizing, and closing the view. The menu on the upper right and the button area are the view&#146;s action bar and may contain arbitrary actions defined by the implementer of that view.

A view interacts with the rest of the workbench via its site. Browse through the interfaces IViewSite, IWorkbenchPartSite, and IWorkbenchSite to see what site services are available to a view.

See Also:

FAQ What is a viewer? FAQ Pages, parts, sites, windows: What is all this stuff? FAQ What is the difference between a view and a viewer? FAQ What is the difference between a view and an editor?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top