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 151147 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]
Patch to display line numbers in the editor by default
LineNumbersPatch.txt (text/plain), 2.84 KB, created by
Dennis Acosta
on 2009-11-02 20:44:53 EST
(
hide
)
Description:
Patch to display line numbers in the editor by default
Filename:
MIME Type:
Creator:
Dennis Acosta
Created:
2009-11-02 20:44:53 EST
Size:
2.84 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.7 >diff -u -r1.7 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Sep 2009 20:07:48 -0000 1.7 >+++ META-INF/MANIFEST.MF 3 Nov 2009 01:46:12 -0000 >@@ -19,7 +19,8 @@ > 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.jface.text;bundle-version="3.4.0", >+ org.eclipse.ui.editors;bundle-version="3.5.0" > Eclipse-LazyStart: true > Export-Package: org.eclipse.ide4edu.javalite.ui.view > Bundle-Vendor: The Eclipse Foundation >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.2 >diff -u -r1.2 JavaLitePerspective.java >--- src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java 9 Oct 2009 18:50:25 -0000 1.2 >+++ src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java 3 Nov 2009 01:46:12 -0000 >@@ -10,10 +10,14 @@ > *******************************************************************************/ > 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 { >@@ -35,6 +39,23 @@ > 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