Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 157064 Details for
Bug 293888
Consider adding line-numbers to the editor by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Updated patch to show line numbers by default
LineNumbersPatch2.txt (text/plain), 7.26 KB, created by
Cory Matheson
on 2010-01-24 17:10:53 EST
(
hide
)
Description:
Updated patch to show line numbers by default
Filename:
MIME Type:
Creator:
Cory Matheson
Created:
2010-01-24 17:10:53 EST
Size:
7.26 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ide4edu.javalite.ui >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.ide4edu/javalite/plugins/org.eclipse.ide4edu.javalite.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.9 >diff -u -r1.9 MANIFEST.MF >--- META-INF/MANIFEST.MF 21 Jan 2010 15:34:28 -0000 1.9 >+++ META-INF/MANIFEST.MF 24 Jan 2010 22:06:43 -0000 >@@ -1,28 +1,29 @@ >-Manifest-Version: 1.0 >-Bundle-ManifestVersion: 2 >-Bundle-Name: Eclipse IDE for Education Java UI (Incubation) >-Bundle-SymbolicName: org.eclipse.ide4edu.javalite.ui;singleton:=true >-Bundle-Version: 0.1.0.qualifier >-Bundle-Activator: org.eclipse.ide4edu.javalite.infrastructure.Activator >-Require-Bundle: org.eclipse.ui, >- org.eclipse.core.runtime, >- org.eclipse.core.resources, >- org.eclipse.jdt.core, >- org.eclipse.jdt.ui, >- org.eclipse.core.filesystem, >- org.eclipse.ui.ide, >- org.eclipse.jdt.launching, >- org.eclipse.debug.ui, >- org.eclipse.jdt, >- org.eclipse.jdt.core.manipulation, >- org.eclipse.jdt.debug, >- org.eclipse.jdt.debug.ui, >- org.eclipse.core.expressions, >- org.eclipse.ui.ide.application, >- org.eclipse.jface.text;bundle-version="3.4.0", >- org.eclipse.ide4edu.javalite.constructors;bundle-version="[0.1.0,1.0.0)" >-Bundle-ActivationPolicy: lazy >-Export-Package: org.eclipse.ide4edu.javalite.ui.view >-Bundle-Vendor: The Eclipse Foundation >-Bundle-RequiredExecutionEnvironment: J2SE-1.5 >- >+Manifest-Version: 1.0 >+Bundle-ManifestVersion: 2 >+Bundle-Name: Eclipse IDE for Education Java UI (Incubation) >+Bundle-SymbolicName: org.eclipse.ide4edu.javalite.ui;singleton:=true >+Bundle-Version: 0.1.0.qualifier >+Bundle-Activator: org.eclipse.ide4edu.javalite.infrastructure.Activator >+Require-Bundle: org.eclipse.ui, >+ org.eclipse.core.runtime, >+ org.eclipse.core.resources, >+ org.eclipse.jdt.core, >+ org.eclipse.jdt.ui, >+ org.eclipse.core.filesystem, >+ org.eclipse.ui.ide, >+ org.eclipse.jdt.launching, >+ org.eclipse.debug.ui, >+ org.eclipse.jdt, >+ org.eclipse.jdt.core.manipulation, >+ org.eclipse.jdt.debug, >+ org.eclipse.jdt.debug.ui, >+ org.eclipse.core.expressions, >+ org.eclipse.ui.ide.application, >+ org.eclipse.jface.text;bundle-version="3.4.0", >+ org.eclipse.ide4edu.javalite.constructors;bundle-version="[0.1.0,1.0.0)", >+ org.eclipse.ui.editors;bundle-version="3.5.0" >+Bundle-ActivationPolicy: lazy >+Export-Package: org.eclipse.ide4edu.javalite.ui.view >+Bundle-Vendor: The Eclipse Foundation >+Bundle-RequiredExecutionEnvironment: J2SE-1.5 >+ >Index: src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.ide4edu/javalite/plugins/org.eclipse.ide4edu.javalite.ui/src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java,v >retrieving revision 1.3 >diff -u -r1.3 JavaLitePerspective.java >--- src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java 21 Jan 2010 23:07:24 -0000 1.3 >+++ src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java 24 Jan 2010 22:06:43 -0000 >@@ -1,37 +1,58 @@ >-/******************************************************************************* >- * Copyright (c) 2008 The Eclipse Foundation 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: >- * Eclipse Foundation - initial API and implementation >- *******************************************************************************/ >-package org.eclipse.ide4edu.javalite.infrastructure; >- >-import org.eclipse.ide4edu.javalite.ui.view.LitePackageExplorer; >-import org.eclipse.ui.IFolderLayout; >-import org.eclipse.ui.IPageLayout; >-import org.eclipse.ui.IPerspectiveFactory; >- >- >-public class JavaLitePerspective implements IPerspectiveFactory { >- >- public void createInitialLayout(IPageLayout layout){ >- String editorArea = layout.getEditorArea(); >- >- //Create folder layout (left to editor) to hold views >- IFolderLayout leftFolder = layout.createFolder("leftFolder",IPageLayout.LEFT, (float) 0.20, editorArea); >- leftFolder.addView(LitePackageExplorer.ID); >- >- IFolderLayout bottomFolder = layout.createFolder("bottomFolder",IPageLayout.BOTTOM, (float) 0.80, editorArea); >- bottomFolder.addView("org.eclipse.ui.console.ConsoleView"); >- >- //layout.setEditorAreaVisible(false); >- layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteProjectCreationWizard"); >- layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LitePackageCreationWizard"); >- layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteClassCreationWizard"); >- } >- >-} >+/******************************************************************************* >+ * Copyright (c) 2008 The Eclipse Foundation 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: >+ * Eclipse Foundation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ide4edu.javalite.infrastructure; >+ >+import java.io.IOException; >+ >+import org.eclipse.ide4edu.javalite.ui.view.LitePackageExplorer; >+import org.eclipse.ui.IFolderLayout; >+import org.eclipse.ui.IPageLayout; >+import org.eclipse.ui.IPerspectiveFactory; >+import org.eclipse.ui.editors.text.EditorsUI; >+import org.eclipse.ui.preferences.ScopedPreferenceStore; >+ >+ >+public class JavaLitePerspective implements IPerspectiveFactory { >+ >+ public void createInitialLayout(IPageLayout layout){ >+ String editorArea = layout.getEditorArea(); >+ >+ //Create folder layout (left to editor) to hold views >+ IFolderLayout leftFolder = layout.createFolder("leftFolder",IPageLayout.LEFT, (float) 0.20, editorArea); >+ leftFolder.addView(LitePackageExplorer.ID); >+ >+ IFolderLayout bottomFolder = layout.createFolder("bottomFolder",IPageLayout.BOTTOM, (float) 0.80, editorArea); >+ bottomFolder.addView("org.eclipse.ui.console.ConsoleView"); >+ >+ //layout.setEditorAreaVisible(false); >+ layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteProjectCreationWizard"); >+ layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LitePackageCreationWizard"); >+ layout.addNewWizardShortcut("org.eclipse.ide4edu.javalite.ui.LiteClassCreationWizard"); >+ >+ // get the preference store of the plug-in >+ ScopedPreferenceStore prefs = (ScopedPreferenceStore) EditorsUI.getPreferenceStore(); >+ >+ // Check if this is the first time the JavaLitePerspective is being opened >+ if (!prefs.contains("initial")) { >+ // Mark that the JavaLitePerspective has been opened for the first time >+ prefs.putValue("initial", "opened"); >+ // display the line number ruler by default >+ prefs.setValue("lineNumberRuler", true); >+ >+ try { >+ // save the preferences >+ prefs.save(); >+ } catch (IOException e) { >+ e.printStackTrace(); >+ } >+ } >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 293888
:
151146
|
151147
|
157064
|
197712
|
198485