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 293888 | Differences between
and this patch

Collapse All | Expand All

(-)META-INF/MANIFEST.MF (-1 / +2 lines)
Lines 19-25 Link Here
19
 org.eclipse.jdt.debug.ui,
19
 org.eclipse.jdt.debug.ui,
20
 org.eclipse.core.expressions,
20
 org.eclipse.core.expressions,
21
 org.eclipse.ui.ide.application,
21
 org.eclipse.ui.ide.application,
22
 org.eclipse.jface.text;bundle-version="3.4.0"
22
 org.eclipse.jface.text;bundle-version="3.4.0",
23
 org.eclipse.ui.editors;bundle-version="3.5.0"
23
Eclipse-LazyStart: true
24
Eclipse-LazyStart: true
24
Export-Package: org.eclipse.ide4edu.javalite.ui.view
25
Export-Package: org.eclipse.ide4edu.javalite.ui.view
25
Bundle-Vendor: The Eclipse Foundation
26
Bundle-Vendor: The Eclipse Foundation
(-)src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java (-1 / +22 lines)
Lines 10-19 Link Here
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.ide4edu.javalite.infrastructure;
11
package org.eclipse.ide4edu.javalite.infrastructure;
12
12
13
import java.io.IOException;
14
13
import org.eclipse.ide4edu.javalite.ui.view.LitePackageExplorer;
15
import org.eclipse.ide4edu.javalite.ui.view.LitePackageExplorer;
14
import org.eclipse.ui.IFolderLayout;
16
import org.eclipse.ui.IFolderLayout;
15
import org.eclipse.ui.IPageLayout;
17
import org.eclipse.ui.IPageLayout;
16
import org.eclipse.ui.IPerspectiveFactory;
18
import org.eclipse.ui.IPerspectiveFactory;
19
import org.eclipse.ui.editors.text.EditorsUI;
20
import org.eclipse.ui.preferences.ScopedPreferenceStore;
17
21
18
22
19
public class JavaLitePerspective implements IPerspectiveFactory {
23
public class JavaLitePerspective implements IPerspectiveFactory {
Lines 35-40 Link Here
35
		layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteProjectCreationWizard");
39
		layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteProjectCreationWizard");
36
		layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LitePackageCreationWizard");
40
		layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LitePackageCreationWizard");
37
		layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteClassCreationWizard");
41
		layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteClassCreationWizard");
42
		
43
		// get the preference store of the plug-in
44
		ScopedPreferenceStore prefs = (ScopedPreferenceStore) EditorsUI.getPreferenceStore();
45
		
46
		// Check if this is the first time the JavaLitePerspective is being opened
47
		if (!prefs.contains("initial")) {
48
			// Mark that the JavaLitePerspective has been opened for the first time
49
			prefs.putValue("initial", "opened");	
50
			// display the line number ruler by default
51
			prefs.setValue("lineNumberRuler", true);
52
			
53
			try {
54
				// save the preferences
55
				prefs.save();
56
			} catch (IOException e) {
57
				e.printStackTrace();
58
			}
59
		}
38
	} 
60
	} 
39
40
}
61
}

Return to bug 293888