[jboss-cvs] jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui ...

Marshall Culpepper mculpepper at jboss.com
Mon Nov 6 16:36:50 EST 2006


  User: mculpepper
  Date: 06/11/06 16:36:50

  Added:       core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui   
                        PackagesUIMessages.java PackagesUIPlugin.java
                        PackagesUIMessages.properties
  Log:
  initial commit of the new "packages" tooling ui plugin
  
  Revision  Changes    Path
  1.1      date: 2006/11/06 21:36:50;  author: mculpepper;  state: Exp;jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/PackagesUIMessages.java
  
  Index: PackagesUIMessages.java
  ===================================================================
  package org.jboss.ide.eclipse.packages.ui;
  
  import org.eclipse.osgi.util.NLS;
  
  public class PackagesUIMessages extends NLS {
  	public static final String BUNDLE_NAME = "org.jboss.ide.eclipse.packages.ui.PackagesUIMessages";
  
  	public static String NewJARWizard_windowTitle;
  
  	public static String PackageInfoWizardPage_compressedButton_label;
  	public static String PackageInfoWizardPage_customManifest_label;
  	public static String PackageInfoWizardPage_destination_label;
  	public static String PackageInfoWizardPage_error_noManifest;
  	public static String PackageInfoWizardPage_error_noPackageName;
  	public static String PackageInfoWizardPage_explodedButton_label;
  	public static String PackageInfoWizardPage_infoGroup_label;
  	public static String PackageInfoWizardPage_manifestBrowseButton_label;
  	public static String PackageInfoWizardPage_message;
  	public static String PackageInfoWizardPage_packageName_label;
  	public static String PackageInfoWizardPage_packageTypeGroup_label;
  	public static String PackageInfoWizardPage_title;
  
  	public static String PackageNodeDestinationComposite_destinationBrowseButton_label;
  
  	public static String PackageDestinationComposite_filesystemBrowseButton_label;
  	public static String PackageDestinationComposite_workspaceBrowseButton_label;
  	
  	public static String PackageNodeDestinationDialog_filesetLabel;
  	public static String PackageNodeDestinationDialog_folderLabel;
  	public static String PackageNodeDestinationDialog_messagePrefix;
  	public static String PackageNodeDestinationDialog_packageLabel;
  	public static String PackageNodeDestinationDialog_title;
  
  	public static String PackagesLabelProvider_filesetProperty_destination;
  	public static String PackagesLabelProvider_filesetProperty_dir;
  	public static String PackagesLabelProvider_filesetProperty_excludes;
  	public static String PackagesLabelProvider_filesetProperty_file;
  	public static String PackagesLabelProvider_filesetProperty_includes;
  	public static String PackagesLabelProvider_filesetProperty_project;
  	public static String PackagesLabelProvider_filesetProperty_sourceFolder;
  
  	public static String ProjectPackagesView_noProjectSelectedMessage;
  	public static String ProjectPackagesView_noPackagesDefinedMessage;
  	public static String ProjectPackagesView_createPackage_link;
  	public static String ProjectPackagesView_newFolderAction_label;
  	public static String ProjectPackagesView_newFilesetAction_label;
  	public static String ProjectPackagesView_collapseAllAction_label;
  	public static String ProjectPackagesView_deletePackageAction_label;
  	public static String ProjectPackagesView_editPackageAction_label;
  	public static String ProjectPackagesView_newPackageMenu_label;
  	public static String ProjectPackagesView_editFolderAction_label;
  	public static String ProjectPackagesView_deleteFolderAction_label;
  	public static String ProjectPackagesView_editFilesetAction_label;
  	public static String ProjectPackagesView_deleteFilesetAction_label;
  	public static String ProjectPackagesView_createFolderDialog_title;
  	public static String ProjectPackagesView_createFolderDialog_message;
  	
  	public static String FilesetInfoWizardPage_new_message;
  	public static String FilesetInfoWizardPage_new_title;
  	public static String FilesetInfoWizardPage_edit_message;
  	public static String FilesetInfoWizardPage_edit_title;
  	public static String FilesetInfoWizardPage_infoGroup_title;
  	public static String FilesetInfoWizardPage_destination_label;
  	public static String FilesetInfoWizardPage_multipleFilesButton_label;
  	public static String FilesetInfoWizardPage_singleFileButton_label;
  	public static String FilesetInfoWizardPage_rootProject_label;
  	public static String FilesetInfoWizardPage_rootDirectory_label;
  	public static String FilesetInfoWizardPage_rootDirWorkspaceBrowseButton_label;
  	public static String FilesetInfoWizardPage_rootDirFilesystemBrowseButton_label;
  	public static String FilesetInfoWizardPage_includes_label;
  	public static String FilesetInfoWizardPage_excludes_label;
  	public static String FilesetInfoWizardPage_singleFileProject_label;
  	public static String FilesetInfoWizardPage_singleFile_label;
  	public static String FilesetInfoWizardPage_fileWorkspaceBrowseButton_label;
  	public static String FilesetInfoWizardPage_fileFilesystemBrowseButton_label;
  	public static String FilesetInfoWizardPage_previewGroup_label;
  	public static String FilesetInfoWizardPage_noProjectMessage;
  	public static String FilesetInfoWizardPage_rootDirWorkspaceBrowser_message;
  	public static String FilesetInfoWizardPage_fileWorkspaceBrowser_title;
  	public static String FilesetInfoWizardPage_fileWorkspaceBrowser_message;
  	
  	static {
  		NLS.initializeMessages(BUNDLE_NAME, PackagesUIMessages.class);
  	}
  }
  
  
  
  1.1      date: 2006/11/06 21:36:50;  author: mculpepper;  state: Exp;jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/PackagesUIPlugin.java
  
  Index: PackagesUIPlugin.java
  ===================================================================
  package org.jboss.ide.eclipse.packages.ui;
  
  import org.eclipse.jface.resource.ImageDescriptor;
  import org.eclipse.jface.resource.ImageRegistry;
  import org.eclipse.swt.graphics.Image;
  import org.eclipse.ui.plugin.AbstractUIPlugin;
  import org.osgi.framework.BundleContext;
  
  /**
   * The activator class controls the plug-in life cycle
   */
  public class PackagesUIPlugin extends AbstractUIPlugin {
  
  	// The plug-in ID
  	public static final String PLUGIN_ID = "org.jboss.ide.eclipse.packages.ui";
  	
  	// image ids
  	public static final String IMG_PACKAGE = "icons/jar_obj.gif";
  	public static final String IMG_PACKAGE_EXPLODED = "icons/jar_exploded_obj.gif";
  	public static final String IMG_EXTERNAL_FILE = "icons/ext_file_obj.gif";
  	public static final String IMG_EXTERNAL_FOLDER = "icons/ext_folder_obj.gif";
  	public static final String IMG_INCLUDES = "icons/includes.gif";
  	public static final String IMG_EXCLUDES = "icons/excludes.gif";
  	public static final String IMG_NEW_PACKAGE = "icons/new_package.gif";
  	public static final String IMG_NEW_JAR_WIZARD = "icons/new_jar_wiz.png";
  	public static final String IMG_SINGLE_FILE = "icons/single_file.gif";
  	public static final String IMG_MULTIPLE_FILES = "icons/multiple_files.gif";
  	public static final String IMG_COLLAPSE_ALL = "icons/collapseall.gif";
  	public static final String IMG_PACKAGE_EDIT = "icons/jar_src_obj.gif";
  	public static final String IMG_WAR = "icons/war.gif";
  	public static final String IMG_EAR = "icons/ear.gif";
  	public static final String IMG_EJB_JAR = "icons/EJBJar.gif";
  	public static final String IMG_NEW_WAR_WIZARD="icons/new_war_wiz.png";
  	public static final String IMG_NEW_EAR_WIZARD="icons/ear-wiz-banner.gif";
  	
  	// The shared instance
  	private static PackagesUIPlugin plugin;
  	
  	/**
  	 * The constructor
  	 */
  	public PackagesUIPlugin() {
  		plugin = this;
  	}
  
  	/*
  	 * (non-Javadoc)
  	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
  	 */
  	public void start(BundleContext context) throws Exception {
  		super.start(context);
  	}
  
  	/*
  	 * (non-Javadoc)
  	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
  	 */
  	public void stop(BundleContext context) throws Exception {
  		plugin = null;
  		super.stop(context);
  	}
  
  	/**
  	 * Returns the shared instance
  	 *
  	 * @return the shared instance
  	 */
  	public static PackagesUIPlugin getDefault() {
  		return plugin;
  	}
  
  	protected void initializeImageRegistry(ImageRegistry registry) {
  		registerImages(registry, new String[] {
  			IMG_PACKAGE, IMG_PACKAGE_EXPLODED, IMG_EXTERNAL_FILE,
  			IMG_EXTERNAL_FOLDER, IMG_INCLUDES, IMG_EXCLUDES,
  			IMG_NEW_PACKAGE, IMG_NEW_JAR_WIZARD, IMG_SINGLE_FILE,
  			IMG_MULTIPLE_FILES, IMG_COLLAPSE_ALL, IMG_PACKAGE_EDIT,
  			IMG_EAR, IMG_EJB_JAR, IMG_WAR, IMG_NEW_EAR_WIZARD,
  			IMG_NEW_WAR_WIZARD
  		});
  	}
  	
  	private void registerImages (ImageRegistry reg, String ids[])
  	{
  		for (int i = 0; i < ids.length; i++)
  			reg.put(ids[i], imageDescriptorFromPlugin(PLUGIN_ID, ids[i]));
  	}
  	
  	// helper methods
  	public static Image getImage (String id)
  	{
  		return getDefault().getImageRegistry().get(id);
  	}
  	
  	public static ImageDescriptor getImageDescriptor (String id)
  	{
  		return getDefault().getImageRegistry().getDescriptor(id);
  	}
  }
  
  
  
  1.1      date: 2006/11/06 21:36:50;  author: mculpepper;  state: Exp;jbosside/core/plugins/org.jboss.ide.eclipse.packages.ui/src/main/org/jboss/ide/eclipse/packages/ui/PackagesUIMessages.properties
  
  Index: PackagesUIMessages.properties
  ===================================================================
  ProjectPackagesView_noProjectSelectedMessage=Please select a project or resource
  ProjectPackagesView_noPackagesDefinedMessage=No packages have been defined for this project.
  ProjectPackagesView_createPackage_link=<a href="createPackage">Create a Package</a>
  ProjectPackagesView_newPackageMenu_label=New Package
  ProjectPackagesView_newFolderAction_label=New Folder
  ProjectPackagesView_newFilesetAction_label=New Fileset
  ProjectPackagesView_collapseAllAction_label=Collapse All
  ProjectPackagesView_deletePackageAction_label=Delete Package
  ProjectPackagesView_deleteFilesetAction_label=Delete Fileset
  ProjectPackagesView_deleteFolderAction_label=Delete Folder
  ProjectPackagesView_editPackageAction_label=Edit Package
  ProjectPackagesView_editFolderAction_label=Edit Folder
  ProjectPackagesView_editFilesetAction_label=Edit Fileset
  ProjectPackagesView_createFolderDialog_title=Create a folder
  ProjectPackagesView_createFolderDialog_message=Name of the folder to create
  
  FilesetInfoWizardPage_new_message=Create a new fileset consisting of one or more files
  FilesetInfoWizardPage_new_title=New Fileset
  FilesetInfoWizardPage_edit_message=Edit an existing fileset
  FilesetInfoWizardPage_edit_title=Edit Fileset
  FilesetInfoWizardPage_infoGroup_title=Fileset information
  FilesetInfoWizardPage_destination_label=Destination:
  FilesetInfoWizardPage_multipleFilesButton_label=Create a fileset that has multiple files
  FilesetInfoWizardPage_singleFileButton_label=Create a fileset that has just one file
  FilesetInfoWizardPage_rootProject_label=Root project:
  FilesetInfoWizardPage_rootDirectory_label=Root directory:
  FilesetInfoWizardPage_rootDirWorkspaceBrowseButton_label=Workspace...
  FilesetInfoWizardPage_rootDirFilesystemBrowseButton_label=Filesystem...
  FilesetInfoWizardPage_includes_label=Includes:
  FilesetInfoWizardPage_excludes_label=Excludes:
  FilesetInfoWizardPage_singleFileProject_label=Project:
  FilesetInfoWizardPage_singleFile_label=File:
  FilesetInfoWizardPage_fileWorkspaceBrowseButton_label=Workspace...
  FilesetInfoWizardPage_fileFilesystemBrowseButton_label=Filesystem...
  FilesetInfoWizardPage_previewGroup_label=Preview
  FilesetInfoWizardPage_noProjectMessage=N/A
  FilesetInfoWizardPage_rootDirWorkspaceBrowser_message=Select a root directory for this fileset
  FilesetInfoWizardPage_fileWorkspaceBrowser_title=Select file
  FilesetInfoWizardPage_fileWorkspaceBrowser_message=Select a file for this fileset
  
  PackageInfoWizardPage_title=Create a new package
  PackageInfoWizardPage_message=Create a new package consisting of filesets in the workspace.
  PackageInfoWizardPage_infoGroup_label=Package information
  PackageInfoWizardPage_packageName_label=Package name:
  PackageInfoWizardPage_destination_label=Destination:
  PackageInfoWizardPage_customManifest_label=Custom Manifest:
  PackageInfoWizardPage_manifestBrowseButton_label=Browse...
  PackageInfoWizardPage_packageTypeGroup_label=Package type
  PackageInfoWizardPage_compressedButton_label=Standard package using zip compression
  PackageInfoWizardPage_explodedButton_label=Exploded package resulting in a folder (no compression)
  PackageInfoWizardPage_error_noPackageName=Please enter a package name
  PackageInfoWizardPage_error_noManifest=Please select a Manifest
  
  PackageNodeDestinationComposite_destinationBrowseButton_label=Browse...
  
  PackageDestinationComposite_filesystemBrowseButton_label=Filesystem...
  PackageDestinationComposite_workspaceBrowseButton_label=Workspace...
  
  NewJARWizard_windowTitle=New JAR
  
  PackagesLabelProvider_filesetProperty_destination=Destination : 
  PackagesLabelProvider_filesetProperty_sourceFolder=Source Folder : 
  PackagesLabelProvider_filesetProperty_excludes=Excludes : 
  PackagesLabelProvider_filesetProperty_includes=Includes : 
  PackagesLabelProvider_filesetProperty_project=Project : 
  PackagesLabelProvider_filesetProperty_file=File : 
  
  PackagesLabelProvider_filesetProperty_dir=Dir : 
  
  PackageNodeDestinationDialog_messagePrefix=Please select a destination for this  
  PackageNodeDestinationDialog_packageLabel=package
  PackageNodeDestinationDialog_filesetLabel=fileset
  PackageNodeDestinationDialog_folderLabel=folder
  PackageNodeDestinationDialog_title=Select a destination
  
  



More information about the jboss-cvs-commits mailing list