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 126254 Details for
Bug 162102
[Workbench] User configurability for MAX_RECENT_WORKSPACES
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 with a proposed UI (Preference page)
patch.txt (text/plain), 6.80 KB, created by
Eric Rizzo
on 2009-02-19 22:19:07 EST
(
hide
)
Description:
Patch with a proposed UI (Preference page)
Filename:
MIME Type:
Creator:
Eric Rizzo
Created:
2009-02-19 22:19:07 EST
Size:
6.80 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui.ide >Index: plugin.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/plugin.properties,v >retrieving revision 1.143 >diff -u -r1.143 plugin.properties >--- plugin.properties 18 Feb 2009 00:21:20 -0000 1.143 >+++ plugin.properties 20 Feb 2009 03:14:35 -0000 >@@ -219,6 +219,7 @@ > PreferenceKeywords.Restore = restore > PreferenceKeywords.State = state > PreferenceKeywords.Encoding = encoding >+PreferenceKeywords.RecentWorkspaces = workspaces prompt recent startup > > # TODO This stuff is just to help me work on the parsing of the menus extension > # point. It is likely not in its final form yet. >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/plugin.xml,v >retrieving revision 1.284 >diff -u -r1.284 plugin.xml >--- plugin.xml 18 Feb 2009 00:21:18 -0000 1.284 >+++ plugin.xml 20 Feb 2009 03:14:36 -0000 >@@ -411,6 +411,9 @@ > id="org.eclipse.ui.ide.startupAndShutdown" > label="%PreferenceKeywords.StartupAndShutdown"/> > <keyword >+ id="org.eclipse.ui.ide.recentWorkspaces" >+ label="%PreferenceKeywords.RecentWorkspaces"/> >+ <keyword > id="org.eclipse.ui.ide.workspace" > label="%PreferenceKeywords.Workspace"/> > <keyword >#P org.eclipse.ui.ide.application >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide.application/plugin.xml,v >retrieving revision 1.9 >diff -u -r1.9 plugin.xml >--- plugin.xml 19 Jan 2009 13:42:13 -0000 1.9 >+++ plugin.xml 20 Feb 2009 03:14:36 -0000 >@@ -19,6 +19,13 @@ > id="org.eclipse.ui.preferencePages.Startup"> > <keywordReference id="org.eclipse.ui.ide.startupAndShutdown"/> > </page> >+ <page >+ name="%PreferencePages.Startup.Workspaces" >+ category="org.eclipse.ui.preferencePages.Startup" >+ class="org.eclipse.ui.internal.ide.application.dialogs.RecentWorkspacesPreferencePage" >+ id="org.eclipse.ui.preferencePages.Startup.Workspaces"> >+ <keywordReference id="org.eclipse.ui.ide.recentWorkspaces"/> >+ </page> > </extension> > <extension > point="org.eclipse.ui.perspectives"> >Index: plugin.properties >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.ide.application/plugin.properties,v >retrieving revision 1.9 >diff -u -r1.9 plugin.properties >--- plugin.properties 19 Jan 2009 13:42:13 -0000 1.9 >+++ plugin.properties 20 Feb 2009 03:14:36 -0000 >@@ -12,6 +12,7 @@ > Plugin.providerName = Eclipse.org > > PreferencePages.Startup = Startup and Shutdown >+PreferencePages.Startup.Workspaces = Workspaces > > Perspective.resourcePerspective = Resource > Perspective.resourceDescription = This perspective is designed to provide general resource viewing and navigation. >Index: src/org/eclipse/ui/internal/ide/application/dialogs/RecentWorkspacesPreferencePage.java >=================================================================== >RCS file: src/org/eclipse/ui/internal/ide/application/dialogs/RecentWorkspacesPreferencePage.java >diff -N src/org/eclipse/ui/internal/ide/application/dialogs/RecentWorkspacesPreferencePage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/ui/internal/ide/application/dialogs/RecentWorkspacesPreferencePage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,87 @@ >+/******************************************************************************* >+ * Copyright (c) 2009 Eric Rizzo 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: >+ * Eric Rizzo - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.ui.internal.ide.application.dialogs; >+ >+import org.eclipse.swt.SWT; >+import org.eclipse.swt.layout.GridData; >+import org.eclipse.swt.layout.GridLayout; >+import org.eclipse.swt.widgets.Button; >+import org.eclipse.swt.widgets.Composite; >+import org.eclipse.swt.widgets.Control; >+import org.eclipse.swt.widgets.Group; >+import org.eclipse.swt.widgets.Label; >+import org.eclipse.swt.widgets.List; >+import org.eclipse.swt.widgets.Spinner; >+import org.eclipse.ui.IWorkbench; >+import org.eclipse.ui.IWorkbenchPreferencePage; >+import org.eclipse.ui.internal.dialogs.StartupPreferencePage; >+ >+ >+/** >+ * Preference page for editing the list of recent workspaces and whether or not >+ * the user is prompted at startup. >+ * >+ * @since 3.5 >+ */ >+public class RecentWorkspacesPreferencePage extends StartupPreferencePage >+ implements IWorkbenchPreferencePage { >+ >+ private Button removeButton; >+ private Spinner maxWorkspacesField; >+ private Button promptButton; >+ private List workspacesList; >+ >+ >+ public Control createContents(Composite parent) { >+ Composite container = new Composite(parent, SWT.NULL); >+ final GridLayout gridLayout = new GridLayout(); >+ gridLayout.numColumns = 2; >+ gridLayout.marginHeight = 0; >+ gridLayout.marginWidth = 0; >+ container.setLayout(gridLayout); >+ >+ promptButton = new Button(container, SWT.CHECK); >+ promptButton.setText("Prompt for &workspace on startup"); //$NON-NLS-1$ >+ new Label(container, SWT.NONE); >+ >+ final Label numberOfLabel = new Label(container, SWT.NONE); >+ numberOfLabel.setText("&Number of recent workspaces to remember:"); //$NON-NLS-1$ >+ >+ maxWorkspacesField = new Spinner(container, SWT.BORDER); >+ maxWorkspacesField.setTextLimit(2); >+ maxWorkspacesField.setMinimum(1); >+ maxWorkspacesField.setMaximum(99); >+ >+ final Group recentWorkspacesGroup = new Group(container, SWT.NONE); >+ recentWorkspacesGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); >+ recentWorkspacesGroup.setText("Recent workspaces"); //$NON-NLS-1$ >+ final GridLayout gridLayout_1 = new GridLayout(); >+ gridLayout_1.numColumns = 2; >+ recentWorkspacesGroup.setLayout(gridLayout_1); >+ >+ workspacesList = new List(recentWorkspacesGroup, SWT.BORDER); >+ final GridData gd_workspacesList = new GridData(SWT.FILL, SWT.FILL, true, true); >+ workspacesList.setLayoutData(gd_workspacesList); >+ >+ removeButton = new Button(recentWorkspacesGroup, SWT.NONE); >+ final GridData gd_removeButton = new GridData(SWT.CENTER, SWT.TOP, false, false); >+ removeButton.setLayoutData(gd_removeButton); >+ removeButton.setText("&Remove"); //$NON-NLS-1$ >+ >+ return container; >+ } >+ >+ >+ public void init(IWorkbench workbench) { >+ // Initialize the preference page >+ } >+ >+}
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 162102
:
126254
|
126255
|
126589
|
127480