1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.ui.internal.tweaklets;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.WorkbenchException;
import org.eclipse.ui.internal.Perspective;
import org.eclipse.ui.internal.WorkbenchPage;
import org.eclipse.ui.internal.WorkbenchWindow;
import org.eclipse.ui.internal.registry.PerspectiveDescriptor;
/**
* @since 3.4
*
*/
public class Workbench3xImplementation extends WorkbenchImplementation {
/* (non-Javadoc)
* @see org.eclipse.ui.internal.tweaklets.WorkbenchImplementation#createWBW(int)
*/
public WorkbenchWindow createWorkbenchWindow(int newWindowNumber) {
return new WorkbenchWindow(newWindowNumber);
}
/* (non-Javadoc)
* @see org.eclipse.ui.internal.tweaklets.WorkbenchImplementation#createWBPage(org.eclipse.ui.internal.WorkbenchWindow, java.lang.String, org.eclipse.core.runtime.IAdaptable)
*/
public WorkbenchPage createWorkbenchPage(WorkbenchWindow workbenchWindow,
String perspID, IAdaptable input) throws WorkbenchException {
return new WorkbenchPage(workbenchWindow, perspID, input);
}
/* (non-Javadoc)
* @see org.eclipse.ui.internal.tweaklets.WorkbenchImplementation#createWBPage(org.eclipse.ui.internal.WorkbenchWindow, org.eclipse.core.runtime.IAdaptable)
*/
public WorkbenchPage createWorkbenchPage(WorkbenchWindow workbenchWindow,
IAdaptable finalInput) throws WorkbenchException {
return new WorkbenchPage(workbenchWindow, finalInput);
}
/* (non-Javadoc)
* @see org.eclipse.ui.internal.tweaklets.WorkbenchImplementation#createPerspective(org.eclipse.ui.internal.registry.PerspectiveDescriptor, org.eclipse.ui.internal.WorkbenchPage)
*/
public Perspective createPerspective(PerspectiveDescriptor desc,
WorkbenchPage workbenchPage) throws WorkbenchException {
return new Perspective(desc, workbenchPage);
}
}
|