[EGIT PATCH 1/2] "File/Import/Git Repository" showing a not ready yet warning.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The warning explains how to proceed, so new users will know what to do.

Signed-off-by: Roger C. Soares <rogersoares@xxxxxxxxxxxxxxxx>
---
 org.spearce.egit.ui/icons/etool16/import_wiz.gif   |  Bin 0 -> 602 bytes
 org.spearce.egit.ui/icons/wizban/import.png        |  Bin 0 -> 4739 bytes
 org.spearce.egit.ui/plugin.properties              |    3 +
 org.spearce.egit.ui/plugin.xml                     |   11 +++
 .../src/org/spearce/egit/ui/UIIcons.java           |    4 +
 .../egit/ui/internal/wizards/GitCloneWizard.java   |   83 ++++++++++++++++++++
 6 files changed, 101 insertions(+), 0 deletions(-)
 create mode 100644 org.spearce.egit.ui/icons/etool16/import_wiz.gif
 create mode 100644 org.spearce.egit.ui/icons/wizban/import.png
 create mode 100644 org.spearce.egit.ui/src/org/spearce/egit/ui/internal/wizards/GitCloneWizard.java

diff --git a/org.spearce.egit.ui/icons/etool16/import_wiz.gif b/org.spearce.egit.ui/icons/etool16/import_wiz.gif
new file mode 100644
index 0000000000000000000000000000000000000000..57878582d7daad0d2ca76ccb9192b75d6587b1a4
GIT binary patch
literal 602
zcmZ?wbhEHb6krfwI2Opj8#9Zcfq}Q3*SKJ@alsOiE)j?F<?<8c6(=a3$zn5}Y5cU3
z?QX5u{W{TW%{-S{l>L_bU2apl+^!tDDl}$Y%$>=CNgI>WHm7B7$(*`y+oL(ckLHNx
zZp(czSG-_HLGjMwM~fuqu2^5TyX?_2kyWc#JX@jAe6V@r#`T>?IzMfczrS61*UniJ
zPE0tuXXeZ^Ghgnve0x;&!wKu(Cv{d|UH$vC?uYX>pRby3zrFqERhOSPe81iIJ@V+t
zw+E5m9z^|oS#aa^jazST{rr%6=k1-l@9zG7-~Ic2&!dlzo_~J+`s?dIKNi0I_V)ev
z_n&@z`u6MF_ut=t{Q2?w@9+PE2`K&(bS_FwEJ;mKD9<d(P;mG34Pa3G$->CRP|u*l
z00f|jVqjm?P~X(t(%P&qtspDPr{C73Wn}5;YHO;g)vsz|F=d)2XTOk?nWL3~GB-~@
zzoFf{>8slW*Lk|wOy}*_-LrS!z9#L!!-xI6j~v!Mcp^}bE6_>YJ@8b$dVrdYu(_O=
zmjt7{uX>Y;2cr_By#{Nb^{c>UMIR0UMspD+^Y=Rb^=$P{E;Ah;GE7i(?y+$E(SKk*
XkASk5NJ;}kgL^9v4+DdO0E0CEz8Ygu

literal 0
HcmV?d00001

diff --git a/org.spearce.egit.ui/icons/wizban/import.png b/org.spearce.egit.ui/icons/wizban/import.png
new file mode 100644
index 0000000000000000000000000000000000000000..8f9fc202ca7c8870da720b5983d42cbc8a9edc16
GIT binary patch
literal 4739
zcmV-}5`686P)<h;3K|Lk000e1NJLTq002t>002S=1^@s6A3-Z300001b5ch_0Itp)
z=>Px#24YJ`L;wH)0002_L%V+f000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iO7%
z6D%Ut^{|Bi000?uMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HM@dakSAh-}000r*Nkl<Z
zc-rlpdyr&TS-^kaIrq`s(>=30v#-39(gczvA(4kM#sEf1EU5&LM~D<)QAMFrf=Cr&
zsaW!lT8JfDfU$y>1`LlPyyQ^`1_D7MhLsQ!2qb~*CcCq{^Vpf5>Av@z@AHq_^X{IR
zO=dTdaH?+Ie%yQd+~56P=eyr&;is){`>UG|cr$8dHeyB#sLM~WtN@e(bu)&|Y{-oI
z^6#JYu>R(w4|_9))TpUi-PDHE$od_dJXs<A-7SyQRcV-6X5cYvVV19V&XWq(`#yQl
zsgavm%M339W;8HsZbr+VG_Y>?^r4oTH3Xa)P)XCUK(<+1^b-&3#?Kt8t5Hc3V3i2f
z4O#+X$I;hMEUbV2{CL*$YN=QSsprvJ2#w{RoiJGAUw!4-z{S1oEa2?kSI^zx)G1(J
z@AW=l8n_kMx9jqornU;wO<y?d)oj>|+A0_#!Zsi?dvtwoN?i|q<@y&QTno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30P)kiK;pg%NO=w8N|$CH4&ei`E<wj5xM6;cI}brIM)|eQK~azcT^jz
zRB!pJ&c3iJ_36zKS6={z<f*IHB`*LN0Bd0t>1tT2tDy8?X+KzNjx`XZRrmGOTWV$;
zo6}CWuo%@WL^D+=O4HSSjSWkq48*Bf>-JYeVY?Y)2+3B2Pl=cOc>iExtD7n|ITPp1
zbO8AN=N*~0xj{257oygHQ;@CuLyXi*gP*|WfOBLE|2ZUelF7!)@c&=7{{z%?p@Q0|
Rl+^$L002ovPDHLkV1g)i1z-RG

literal 0
HcmV?d00001

diff --git a/org.spearce.egit.ui/plugin.properties b/org.spearce.egit.ui/plugin.properties
index 7ae05ef..e84f860 100644
--- a/org.spearce.egit.ui/plugin.properties
+++ b/org.spearce.egit.ui/plugin.properties
@@ -1,6 +1,9 @@
 plugin_name=Git Team Provider (UI)
 provider_name=spearce.org
 
+Git_clone_category=Git
+Git_clone_wizard=Git Repository
+
 SharingWizard_name=Git
 PreferencePage_name=Git
 GitRemoteQuickDiffProvider_label=Latest Git Revision
diff --git a/org.spearce.egit.ui/plugin.xml b/org.spearce.egit.ui/plugin.xml
index b62c9d7..78dc6e1 100644
--- a/org.spearce.egit.ui/plugin.xml
+++ b/org.spearce.egit.ui/plugin.xml
@@ -5,6 +5,17 @@
       <initializer class="org.spearce.egit.ui.PluginPreferenceInitializer"/>
    </extension>
 
+   <extension point="org.eclipse.ui.importWizards">
+      <category name="%Git_clone_category"
+            id="org.spearce.egit.ui.internal.wizards.gitclonecategory"/>
+      <wizard name="%Git_clone_wizard"
+            icon="icons/etool16/import_wiz.gif"
+            class="org.spearce.egit.ui.internal.wizards.GitCloneWizard"
+            id="org.spearce.egit.ui.internal.wizards.GitCloneWizard"
+            category="org.spearce.egit.ui.internal.wizards.gitclonecategory">
+      </wizard>
+   </extension>
+
    <extension point="org.eclipse.team.ui.configurationWizards">
       <wizard name="%SharingWizard_name"
             icon="icons/sharing.gif"
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/UIIcons.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/UIIcons.java
index 881265d..9b568ce 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/UIIcons.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/UIIcons.java
@@ -47,6 +47,9 @@ public class UIIcons {
 	/** Previous arrow icon */
 	public static final ImageDescriptor ELCL16_PREVIOUS;
 
+	/** Import Wizard banner */
+	public static final ImageDescriptor WIZBAN_IMPORT_REPO;
+
 	private static final URL base;
 
 	static {
@@ -59,6 +62,7 @@ public class UIIcons {
 		ELCL16_FIND = map("elcl16/find.gif");
 		ELCL16_NEXT = map("elcl16/next.gif");
 		ELCL16_PREVIOUS = map("elcl16/previous.gif");
+		WIZBAN_IMPORT_REPO = map("wizban/import.png");
 	}
 
 	private static ImageDescriptor map(final String icon) {
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/wizards/GitCloneWizard.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/wizards/GitCloneWizard.java
new file mode 100644
index 0000000..e8ba87e
--- /dev/null
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/wizards/GitCloneWizard.java
@@ -0,0 +1,83 @@
+/*
+ *  Copyright (C) 2008  Roger C. Soares
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License, version 2.1, as published by the Free Software Foundation.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
+ */
+package org.spearce.egit.ui.internal.wizards;
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.IImportWizard;
+import org.eclipse.ui.IWorkbench;
+import org.spearce.egit.ui.UIIcons;
+
+/**
+ * Import Git Repository Wizard. A front end to a git clone operation.
+ */
+public class GitCloneWizard extends Wizard implements IImportWizard {
+	private WarningPage warning;
+
+	public void init(IWorkbench arg0, IStructuredSelection arg1) {
+		// Empty
+	}
+
+	@Override
+	public void addPages() {
+		warning = new WarningPage();
+		addPage(warning);
+	}
+
+	@Override
+	public boolean performFinish() {
+		return true;
+	}
+}
+
+class WarningPage extends WizardPage {
+	private Composite container;
+
+	/**
+	 * Warning message for new users alerting on how to use egit.
+	 */
+	public WarningPage() {
+		super("Warning Page", "Warning", UIIcons.WIZBAN_IMPORT_REPO);
+		setDescription("Git Import is not ready yet.");
+	}
+
+	public void createControl(Composite parent) {
+		container = new Composite(parent, SWT.NULL);
+		FillLayout layout = new FillLayout();
+		container.setLayout(layout);
+		Label label1 = new Label(container, SWT.NULL);
+		label1.setText("\nUse Git (THE Git) to create or clone your repo."
+				+ "\nSelect the project in the navigator and"
+				+ "\ngo to the context menu's Team item and"
+				+ "\nbelow it you will find \"Share Project\"."
+				+ "\nSelect it and the rest is self explanatory.");
+
+		setControl(container);
+		setPageComplete(false);
+	}
+
+	@Override
+	public Control getControl() {
+		return container;
+	}
+}
-- 
1.5.3.8

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux