[Pydev-cvs] org.python.pydev/src/org/python/pydev/ui/perspective PythonPerspectiveFactory.java, 1.7
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-09-28 12:46:31
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/ui/perspective In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4313/src/org/python/pydev/ui/perspective Modified Files: PythonPerspectiveFactory.java Log Message: Synching to latest changes: Pydev <ul> <li><strong>Editor</strong>: Cursor settings no longer overridden</li> <li><strong>Code-completion</strong>: If __all__ is defined with runtime elements (and not only in a single assign statement), it's ignored for code-completion purposes</li> <li><strong>Debugger</strong>: Pythonpath the same in debug and regular modes (sys.path[0] is the same directory as the file run)</li> <li><strong>Debugger</strong>: Persist choices done in the debugger when files from the debugger are not found</li> <li><strong>Interpreter config</strong>: "email" automatically added to the "forced builtins"</li> <li><strong>Parser</strong>: Correctly recognizing absolute import with 3 or more levels</li> <li><strong>Syntax check</strong>: Option to do only on active editor</li> </ul> Also: tabs changed for spaces Index: PythonPerspectiveFactory.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/ui/perspective/PythonPerspectiveFactory.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PythonPerspectiveFactory.java 6 May 2007 14:29:16 -0000 1.7 --- PythonPerspectiveFactory.java 28 Sep 2008 12:45:40 -0000 1.8 *************** *** 19,34 **** */ public class PythonPerspectiveFactory implements IPerspectiveFactory { ! ! public static final String PERSPECTIVE_ID = "org.python.pydev.ui.PythonPerspective"; ! /** ! * Creates Python perspective layout ! * ! * Copied from org.eclipse.jdt.internal.ui.JavaPerspectiveFactory ! */ ! public void createInitialLayout(IPageLayout layout) { ! defineLayout(layout); ! defineActions(layout); ! } --- 19,34 ---- */ public class PythonPerspectiveFactory implements IPerspectiveFactory { ! ! public static final String PERSPECTIVE_ID = "org.python.pydev.ui.PythonPerspective"; ! /** ! * Creates Python perspective layout ! * ! * Copied from org.eclipse.jdt.internal.ui.JavaPerspectiveFactory ! */ ! public void createInitialLayout(IPageLayout layout) { ! defineLayout(layout); ! defineActions(layout); ! } *************** *** 42,56 **** IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float)0.26, editorArea); //$NON-NLS-1$ topLeft.addView("org.python.pydev.navigator.view"); ! IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$ ! outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW); ! outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); ! outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); ! outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); ! outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); ! ! layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float)0.75, editorArea); } --- 42,56 ---- IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float)0.26, editorArea); //$NON-NLS-1$ topLeft.addView("org.python.pydev.navigator.view"); ! IFolderLayout outputfolder= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$ ! outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW); ! outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID); ! outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW); ! outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); ! outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); ! ! layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float)0.75, editorArea); } *************** *** 59,76 **** */ public void defineActions(IPageLayout layout) { ! layout.addNewWizardShortcut(PythonProjectWizard.WIZARD_ID); //$NON-NLS-1$ ! layout.addNewWizardShortcut(PythonSourceFolderWizard.WIZARD_ID); //$NON-NLS-1$ ! layout.addNewWizardShortcut(PythonPackageWizard.WIZARD_ID); //$NON-NLS-1$ ! layout.addNewWizardShortcut(PythonModuleWizard.WIZARD_ID); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$ ! layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID); ! layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); ! layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); ! layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); ! layout.addShowViewShortcut(IPageLayout.ID_RES_NAV); ! layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut("org.python.pydev.views.PyRefactorView"); --- 59,76 ---- */ public void defineActions(IPageLayout layout) { ! layout.addNewWizardShortcut(PythonProjectWizard.WIZARD_ID); //$NON-NLS-1$ ! layout.addNewWizardShortcut(PythonSourceFolderWizard.WIZARD_ID); //$NON-NLS-1$ ! layout.addNewWizardShortcut(PythonPackageWizard.WIZARD_ID); //$NON-NLS-1$ ! layout.addNewWizardShortcut(PythonModuleWizard.WIZARD_ID); //$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file");//$NON-NLS-1$ layout.addNewWizardShortcut("org.eclipse.ui.editors.wizards.UntitledTextFileWizard");//$NON-NLS-1$ ! layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID); ! layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW); ! layout.addShowViewShortcut(IPageLayout.ID_OUTLINE); ! layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW); ! layout.addShowViewShortcut(IPageLayout.ID_RES_NAV); ! layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView"); layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST); layout.addShowViewShortcut("org.python.pydev.views.PyRefactorView"); *************** *** 80,84 **** layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); ! } --- 80,84 ---- layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET); layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET); ! } |