Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 80440 | Differences between
and this patch

Collapse All | Expand All

(-)plugin.properties (+4 lines)
Lines 43-45 Link Here
43
42  = This sample creates a simple export viewer extension sample.
43
42  = This sample creates a simple export viewer extension sample.
44
43  = Specify a project for the export viewer generator extension sample.
44
43  = Specify a project for the export viewer generator extension sample.
45
44  = Export Viewer Generator Extension Sample
45
44  = Export Viewer Generator Extension Sample
46
45  = Table Cell Hover Text Extension Sample
47
46  = This sample creates a table cell label provider for table cell hover dialog. 
48
47  = Specify a project for the table cell hover text provider sample.
49
48  = Table Cell Hover Text Extension Sample
(-)plugin.xml (+29 lines)
Lines 77-82 Link Here
77
			</description>
77
			</description>
78
		</wizard>
78
		</wizard>
79
		
79
		
80
		<wizard
81
			category="org.eclipse.ui.Examples/org.eclipse.hyades.ui.samples.projects"
82
			class="org.eclipse.tptp.platform.execution.examples.SampleCreationWizard"
83
			finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
84
			icon="icons/examples/samplecreation_wiz.gif"
85
			id="org.eclipse.tptp.platform.examples.isv.tablecelllabelprovider.sample"
86
			name="%45"
87
			project="true">
88
			<description>
89
				%46
90
			</description>
91
		</wizard>
92
		
80
   </extension>
93
   </extension>
81
94
82
   <extension point="org.eclipse.hyades.ui.sampleWizards">
95
   <extension point="org.eclipse.hyades.ui.sampleWizards">
Lines 152-157 Link Here
152
			</projectsetup>
165
			</projectsetup>
153
		</sampleWizard>
166
		</sampleWizard>
154
		
167
		
168
		<sampleWizard
169
			id="org.eclipse.tptp.platform.examples.isv.tablecelllabelprovider.sample"
170
			wizardId="org.eclipse.tptp.platform.examples.isv.tablecelllabelprovider.sample"
171
			banner="icons/newHyadesLoggingCoreSampleProject_wizbanner.gif">
172
			<projectsetup
173
				helpId=""
174
				name="TableCellLabelProviderProject"
175
				pagedescription="%47"
176
				pagetitle="%48">
177
				<buildCommand name="org.eclipse.jdt.core.javabuilder"/>
178
				<import dest="" src="archive/TableCellLabelProviderSample"/>
179
				<nature id="org.eclipse.jdt.core.javanature"/>
180
				<open file="\org.eclipse.tptp.platform.doc.isv\samples\sexport_viewer_generator.html" editorId=""/>
181
			</projectsetup>
182
		</sampleWizard>
183
		
155
   </extension>
184
   </extension>
156
185
157
</plugin>
186
</plugin>
(-)META-INF/MANIFEST.MF (-1 / +1 lines)
Lines 2-8 Link Here
2
Bundle-ManifestVersion: 2
2
Bundle-ManifestVersion: 2
3
Bundle-Name: %plugin.name
3
Bundle-Name: %plugin.name
4
Bundle-SymbolicName: org.eclipse.tptp.platform.examples.isv;singleton:=true
4
Bundle-SymbolicName: org.eclipse.tptp.platform.examples.isv;singleton:=true
5
Bundle-Version: 4.3.200.qualifier
5
Bundle-Version: 4.3.300.qualifier
6
Bundle-Vendor: %plugin.provider
6
Bundle-Vendor: %plugin.provider
7
Bundle-Localization: plugin
7
Bundle-Localization: plugin
8
Require-Bundle: org.eclipse.ui,
8
Require-Bundle: org.eclipse.ui,
(-)archive/TableCellLabelProviderSample/.classpath (+6 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5
	<classpathentry kind="output" path="bin"/>
6
</classpath>
(-)archive/TableCellLabelProviderSample/.project (+17 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>TableCellLabelProviderProject</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
	</buildSpec>
14
	<natures>
15
		<nature>org.eclipse.jdt.core.javanature</nature>
16
	</natures>
17
</projectDescription>
(-)archive/TableCellLabelProviderSample/META-INF/MANIFEST.MF (+11 lines)
Added Link Here
1
Manifest-Version: 1.0
2
Bundle-ManifestVersion: 2
3
Bundle-Name: Table Cell Label Provider Sample
4
Bundle-SymbolicName: TableCellLabelProviderSample;singleton:=true
5
Bundle-Version: 4.5
6
Bundle-Activator: org.eclipse.tptp.platform.tablecelllabelprovider.sample.Activator
7
Require-Bundle: org.eclipse.ui,
8
 org.eclipse.core.runtime,
9
 org.eclipse.tptp.platform.common.ui;bundle-version="[4.4.100,5.0.0)"
10
Bundle-RequiredExecutionEnvironment: J2SE-1.5
11
Bundle-ActivationPolicy: lazy
(-)archive/TableCellLabelProviderSample/src/org/eclipse/tptp/platform/tablecelllabelprovider/sample/Activator.java (+73 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * $Id: $
8
 * 
9
 * Contributors:
10
 *     IBM Corporation - initial API and implementation
11
 *******************************************************************************/
12
13
package org.eclipse.tptp.platform.tablecelllabelprovider.sample;
14
15
import org.eclipse.jface.resource.ImageDescriptor;
16
import org.eclipse.ui.plugin.AbstractUIPlugin;
17
import org.osgi.framework.BundleContext;
18
19
/**
20
 * The activator class controls the plug-in life cycle
21
 */
22
public class Activator extends AbstractUIPlugin {
23
24
	// The plug-in ID
25
	public static final String PLUGIN_ID = "TableCellLabelProviderSample";
26
27
	// The shared instance
28
	private static Activator plugin;
29
	
30
	/**
31
	 * The constructor
32
	 */
33
	public Activator() {
34
	}
35
36
	/*
37
	 * (non-Javadoc)
38
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
39
	 */
40
	public void start(BundleContext context) throws Exception {
41
		super.start(context);
42
		plugin = this;
43
	}
44
45
	/*
46
	 * (non-Javadoc)
47
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
48
	 */
49
	public void stop(BundleContext context) throws Exception {
50
		plugin = null;
51
		super.stop(context);
52
	}
53
54
	/**
55
	 * Returns the shared instance
56
	 *
57
	 * @return the shared instance
58
	 */
59
	public static Activator getDefault() {
60
		return plugin;
61
	}
62
63
	/**
64
	 * Returns an image descriptor for the image file at the given
65
	 * plug-in relative path
66
	 *
67
	 * @param path the path
68
	 * @return the image descriptor
69
	 */
70
	public static ImageDescriptor getImageDescriptor(String path) {
71
		return imageDescriptorFromPlugin(PLUGIN_ID, path);
72
	}
73
}
(-)archive/TableCellLabelProviderSample/src/org/eclipse/tptp/platform/tablecelllabelprovider/sample/TableCellLabelProvider.java (+43 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * $Id: $
8
 * 
9
 * Contributors:
10
 *     IBM Corporation - initial API and implementation
11
 *******************************************************************************/
12
13
package org.eclipse.tptp.platform.tablecelllabelprovider.sample;
14
15
import org.eclipse.hyades.ui.provisional.context.IContextAttributes;
16
17
public class TableCellLabelProvider extends
18
		org.eclipse.tptp.platform.common.ui.views.TableCellLabelProvider {
19
20
	public String getColumnHoverText(Object element, String columnID) {
21
		return "Custom Help>>"+element+"\n Column>>"+columnID;
22
	}
23
24
	public String[] getSupportColumnKeys() {
25
		return new String[] {
26
				IContextAttributes.PACKAGE_ACTIVE_SIZE,
27
				IContextAttributes.PACKAGE_AVG_BASE_TIME,
28
				IContextAttributes.PACKAGE_BASE_TIME,
29
				IContextAttributes.PACKAGE_INH_BASE_TIME,
30
				IContextAttributes.PACKAGE_CUMULATIVE_TIME,
31
				IContextAttributes.PACKAGE_INH_CUMULATIVE_TIME,
32
				IContextAttributes.PACKAGE_CPU_TIME,
33
				IContextAttributes.PACKAGE_CALLS,
34
				IContextAttributes.PACKAGE_INH_CALLS,
35
				IContextAttributes.PACKAGE_TOTAL_INST,
36
				IContextAttributes.PACKAGE_LIVE_INST,
37
				IContextAttributes.PACKAGE_COLLECTED_INST,
38
				IContextAttributes.PACKAGE_TOTAL_SIZE,
39
				IContextAttributes.PACKAGE_ACTIVE_SIZE,
40
				};
41
	}
42
43
}
(-)archive/TableCellLabelProviderSample/plugin.xml (+12 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.2"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.tptp.platform.common.ui.TableCellLabelProviders">
6
      <tableCellLabelProvider
7
            class="org.eclipse.tptp.platform.tablecelllabelprovider.sample.TableCellLabelProvider"
8
            id="org.eclipse.tptp.platform.samples.tablecelllabelprovider.TableCellLabelProvider"
9
            name="SampleTableCellLabelProvider">
10
      </tableCellLabelProvider>
11
   </extension>
12
</plugin>

Return to bug 80440