本文整理汇总了Java中org.tigris.subversion.subclipse.ui.SVNUIPlugin.getRepositorySourceProviders方法的典型用法代码示例。如果您正苦于以下问题:Java SVNUIPlugin.getRepositorySourceProviders方法的具体用法?Java SVNUIPlugin.getRepositorySourceProviders怎么用?Java SVNUIPlugin.getRepositorySourceProviders使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.tigris.subversion.subclipse.ui.SVNUIPlugin
的用法示例。
在下文中一共展示了SVNUIPlugin.getRepositorySourceProviders方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addPages
import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
/**
* Creates the wizard pages
*/
public void addPages() {
ISVNRepositorySourceProvider[] repositorySourceProviders = null;
try {
repositorySourceProviders = SVNUIPlugin.getRepositorySourceProviders();
} catch (Exception e) {}
if (repositorySourceProviders != null && repositorySourceProviders.length > 0) {
repositorySourceProviderPage = new ConfigurationWizardRepositorySourceProviderPage("source", Policy.bind("NewLocationWizard.heading"), SVNUIPlugin.getPlugin().getImageDescriptor(ISVNUIConstants.IMG_WIZBAN_NEW_LOCATION), repositorySourceProviders); //$NON-NLS-1$ //$NON-NLS-2$
repositorySourceProviderPage.setDescription(Policy.bind("NewLocationWizard.0")); //$NON-NLS-1$
addPage(repositorySourceProviderPage);
for (ISVNRepositorySourceProvider repositorySourceProvider : repositorySourceProviders) {
SVNRepositoryProviderWizardPage wizardPage = repositorySourceProvider.getWizardPage();
addPage(wizardPage);
wizardPageMap.put(repositorySourceProvider, wizardPage);
}
}
mainPage = new ConfigurationWizardMainPage("main", Policy.bind("NewLocationWizard.heading"), SVNUIPlugin.getPlugin().getImageDescriptor(ISVNUIConstants.IMG_WIZBAN_NEW_LOCATION)); //$NON-NLS-1$ //$NON-NLS-2$
if (properties != null) {
mainPage.setProperties(properties);
}
mainPage.setDescription(Policy.bind("NewLocationWizard.description")); //$NON-NLS-1$
mainPage.setDialogSettings(getDialogSettings());
addPage(mainPage);
}
示例2: addPages
import org.tigris.subversion.subclipse.ui.SVNUIPlugin; //导入方法依赖的package包/类
public void addPages() {
setNeedsProgressMonitor(true);
if (remoteFolders == null) {
locationPage = new CheckoutWizardLocationPage("locationPage", //$NON-NLS-1$
Policy.bind("CheckoutWizardLocationPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(locationPage);
ISVNRepositorySourceProvider[] repositorySourceProviders = null;
try {
repositorySourceProviders = SVNUIPlugin.getRepositorySourceProviders();
} catch (Exception e) {}
if (repositorySourceProviders != null && repositorySourceProviders.length > 0) {
repositorySourceProviderPage = new ConfigurationWizardRepositorySourceProviderPage("source", Policy.bind("NewLocationWizard.heading"), SVNUIPlugin.getPlugin().getImageDescriptor(ISVNUIConstants.IMG_WIZBAN_NEW_LOCATION), repositorySourceProviders); //$NON-NLS-1$ //$NON-NLS-2$
repositorySourceProviderPage.setDescription(Policy.bind("NewLocationWizard.0")); //$NON-NLS-1$
addPage(repositorySourceProviderPage);
for (ISVNRepositorySourceProvider repositorySourceProvider : repositorySourceProviders) {
SVNRepositoryProviderWizardPage wizardPage = repositorySourceProvider.getWizardPage();
addPage(wizardPage);
wizardPageMap.put(repositorySourceProvider, wizardPage);
}
}
createLocationPage = new ConfigurationWizardMainPage(
"createLocationPage", //$NON-NLS-1$
Policy.bind("CheckoutWizardLocationPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(createLocationPage);
selectionPage = new CheckoutWizardSelectionPage("selectionPage", //$NON-NLS-1$
Policy.bind("CheckoutWizardSelectionPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(selectionPage);
}
if (remoteFolders == null || remoteFolders.length > 1) {
checkoutAsMultiplePage = new CheckoutWizardCheckoutAsMultiplePage(
"checkoutAsMultiplePage", //$NON-NLS-1$
Policy.bind("CheckoutWizardCheckoutAsPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(checkoutAsMultiplePage);
}
if (remoteFolders == null || remoteFolders.length == 1) {
if (remoteFolders == null || hasProjectFile) {
checkoutAsWithProjectFilePage = new CheckoutWizardCheckoutAsWithProjectFilePage(
"checkoutAsWithProjectFilePage", //$NON-NLS-1$
Policy.bind("CheckoutWizardCheckoutAsPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(checkoutAsWithProjectFilePage);
if (remoteFolders != null && remoteFolders.length == 1) {
if (project != null) checkoutAsWithProjectFilePage.setProjectName(project.getName());
}
}
if (remoteFolders == null || !hasProjectFile) {
checkoutAsWithoutProjectFilePage = new CheckoutWizardCheckoutAsWithoutProjectFilePage(
"checkoutAsWithoutProjectFilePage", //$NON-NLS-1$
Policy.bind("CheckoutWizardCheckoutAsPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(checkoutAsWithoutProjectFilePage);
}
}
projectPage = new CheckoutWizardProjectPage("projectPage", //$NON-NLS-1$
Policy.bind("CheckoutWizardProjectPage.heading"), //$NON-NLS-1$
SVNUIPlugin.getPlugin().getImageDescriptor(
ISVNUIConstants.IMG_WIZBAN_SHARE));
addPage(projectPage);
}