forked from aptana/Pydev
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
623 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...v.django/src/org/python/pydev/django/ui/wizards/project/DjangoNotAvailableWizardPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package org.python.pydev.django.ui.wizards.project; | ||
|
||
import org.eclipse.jface.wizard.WizardPage; | ||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.events.SelectionEvent; | ||
import org.eclipse.swt.events.SelectionListener; | ||
import org.eclipse.swt.layout.GridData; | ||
import org.eclipse.swt.layout.GridLayout; | ||
import org.eclipse.swt.program.Program; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.python.pydev.core.IInterpreterInfo; | ||
import org.python.pydev.utils.LinkFieldEditor; | ||
|
||
public class DjangoNotAvailableWizardPage extends WizardPage{ | ||
|
||
|
||
public DjangoNotAvailableWizardPage(String pageName, IInterpreterInfo interpreterInfo) { | ||
super(pageName); | ||
} | ||
|
||
|
||
public void createControl(Composite parent) { | ||
Composite composite = new Composite(parent, SWT.NULL); | ||
composite.setLayout(new GridLayout()); | ||
composite.setLayoutData(new GridData(GridData.FILL_BOTH)); | ||
composite.setFont(parent.getFont()); | ||
|
||
|
||
LinkFieldEditor colorsAndFontsLinkFieldEditor = new LinkFieldEditor( | ||
"UNUSED", "To get started with Django in Pydev, a pre-requisite is that Django is \n" + | ||
"installed in the Python / Jython / IronPython interpreter you want to use \n" + | ||
"(so, \"import django\" must properly work). \n" + | ||
"\n" + | ||
"It seems that the selected interpreter does not have Django available, so, please\n" + | ||
"install Django, reconfigure the interpreter so that Django is recognized\n" + | ||
"and then come back to this wizard.\n" + | ||
"\n" + | ||
"An introduction on how to get started with Django in Pydev is available at:\n" + | ||
"<a>http://pydev.org/manual_adv_django.html</a>.\n" | ||
, composite, new SelectionListener() { | ||
|
||
public void widgetSelected(SelectionEvent e) { | ||
Program.launch("http://pydev.org/manual_adv_django.html"); | ||
} | ||
|
||
public void widgetDefaultSelected(SelectionEvent e) { | ||
} | ||
}); | ||
colorsAndFontsLinkFieldEditor.getLinkControl(composite); | ||
|
||
setErrorMessage("Django not found."); | ||
setControl(composite); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.