Source Code Cross Referenced for OverrideTestsSection.java in  » IDE-Eclipse » ui » org » eclipse » ui » tests » views » properties » tabbed » override » tablist » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui » org.eclipse.ui.tests.views.properties.tabbed.override.tablist 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*******************************************************************************
002:         * Copyright (c) 2007 IBM Corporation and others.
003:         * All rights reserved. This program and the accompanying materials
004:         * are made available under the terms of the Eclipse Public License v1.0
005:         * which accompanies this distribution, and is available at
006:         * http://www.eclipse.org/legal/epl-v10.html
007:         * 
008:         * Contributors:
009:         *     IBM Corporation - initial API and implementation
010:         *******************************************************************************/package org.eclipse.ui.tests.views.properties.tabbed.override.tablist;
011:
012:        import org.eclipse.jface.viewers.ISelection;
013:        import org.eclipse.swt.widgets.Composite;
014:        import org.eclipse.ui.IWorkbenchPart;
015:        import org.eclipse.ui.views.properties.tabbed.AbstractOverridableTabListPropertySection;
016:        import org.eclipse.ui.views.properties.tabbed.ITabItem;
017:        import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
018:
019:        /**
020:         * Section for a tab list used by the tabbed properties view for the override
021:         * tests example.
022:         * <p>
023:         * The OverrideTestsView TabbedPropertySheetPage example is a look at the
024:         * properties view after the migration of a TabFolder/TabItem framework to the
025:         * tabbed properties view. In the case of a TabFolder, the folder (provider)
026:         * knows both the tab labels and tab items. This aligns to the tabbed properties
027:         * view, but the tab labels are tab descriptors and tab items are section
028:         * descriptions. This does not work with the default framework as the tabs
029:         * provide the sections. In this case, the IOverridableTabListContentProvider
030:         * framework has been provided.
031:         * <p>
032:         * The overridable tab list is a content provider that provides both the
033:         * sections and the tab labels.
034:         * 
035:         * @author Anthony Hunter
036:         * @since 3.4
037:         */
038:        public class OverrideTestsSection extends
039:                AbstractOverridableTabListPropertySection {
040:            private OverrideTestsTabListsContentsManager contentsManager;
041:
042:            /*
043:             * (non-Javadoc)
044:             * 
045:             * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#createControls(org.eclipse.swt.widgets.Composite,
046:             *      org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
047:             */
048:            public void createControls(Composite parent,
049:                    TabbedPropertySheetPage tabbedPropertySheetPage) {
050:                super .createControls(parent, tabbedPropertySheetPage);
051:                contentsManager = new OverrideTestsTabListsContentsManager(
052:                        parent, tabbedPropertySheetPage, this );
053:            }
054:
055:            /*
056:             * (non-Javadoc)
057:             * 
058:             * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#dispose()
059:             */
060:            public void dispose() {
061:                if (contentsManager != null) {
062:                    contentsManager.dispose();
063:                    contentsManager = null;
064:                }
065:            }
066:
067:            /*
068:             * (non-Javadoc)
069:             * 
070:             * @see org.eclipse.ui.views.properties.tabbed.AbstractOverridableTabListPropertySection#getTabs()
071:             */
072:            public ITabItem[] getTabs() {
073:                if (contentsManager != null) {
074:                    return contentsManager.getTabs();
075:                }
076:                return null;
077:            }
078:
079:            /*
080:             * (non-Javadoc)
081:             * 
082:             * @see org.eclipse.ui.views.properties.tabbed.AbstractOverridableTabListPropertySection#selectTab(int)
083:             */
084:            public void selectTab(int index) {
085:                if (contentsManager != null) {
086:                    contentsManager.selectTab(index);
087:                }
088:            }
089:
090:            /*
091:             * (non-Javadoc)
092:             * 
093:             * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#setInput(org.eclipse.ui.IWorkbenchPart,
094:             *      org.eclipse.jface.viewers.ISelection)
095:             */
096:            public void setInput(IWorkbenchPart part, ISelection selection) {
097:                super .setInput(part, selection);
098:                if (contentsManager != null) {
099:                    contentsManager.selectionChanged(getPart(), getSelection());
100:                }
101:            }
102:
103:            /*
104:             * (non-Javadoc)
105:             * 
106:             * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#shouldUseExtraSpace()
107:             */
108:            public boolean shouldUseExtraSpace() {
109:                return true;
110:            }
111:        }
w__ww.___j__a__v___a2s_._c__o__m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.