From 17b8ed3c9137f0f3df1a0bd63b56f34620bf92ce Mon Sep 17 00:00:00 2001 From: David Dykstal Date: Mon, 7 Aug 2006 15:01:16 +0000 Subject: [PATCH] bug 149331 - Update tutorial to use current tutorial example code. Get rid of etools references. changeClasspath and changePluginClass are no longer used. --- .../tutorial/pdeProject_changeClasspath.html | 57 --------- .../pdeProject_changePluginClass.html | 118 ------------------ 2 files changed, 175 deletions(-) delete mode 100755 rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changeClasspath.html delete mode 100755 rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changePluginClass.html diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changeClasspath.html b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changeClasspath.html deleted file mode 100755 index 8efcbaa0a77..00000000000 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changeClasspath.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - -Changes to Plug-in Project Classpath - - - -

Changes to Plug-in Project Classpath

-

NutShell

-To make sure you can compile your code successfully, you must add the following lines to the project's classpath, -where RSE_HOME is the folder where you installed the product:

- - -

Step-By-Step Details

-

Right-click on your project.Select Properties, and then select the -Libraries tab. You will now add the RSE jar files you -need to reference, in order to compile the code successfully: -

-
    -
  1. - Press the Add Variable button on the right of the list, to open the - New Variable Classpath Entry dialog.
  2. -
  3. - Press the New button to open the New Variable Entry dialog. - Specify "RSE_HOME" for the Name and "c:/WDSC/iSeries/eclipse/plugins" - for the Path, where "c:/WDSC" is the folder where you installed the Eclipse-based product you are running. - Press OK to return to the New Variable Classpath Entry dialog.
  4. -
  5. Press the Extend button to get the Variable Extension dialog. - Find the folder com.ibm.etools.systems.core_5.0.0/runtime, expand it, and select system.jar. - Press OK to return to the Libraries tab, and select No on the warning message.
  6. -
  7. Press the Add Variable button to get the New Variable Classpath Entry dialog again, and select the RSE_HOME variable. - Press Extend and select the mofrt.jar file in the same - com.ibm.etools.systems.core_5.0.0/runtime folder. - Press OK to return to the Libraries tab.
  8. -
  9. Repeat the previous step, for systems.jar and clientserver.jar. - -
  10. Repeat the previous step, but this time select folder com.ibm.etools.systems.logging_5.0.0/runtime, - and file systemslogging.jar. - Press OK to return to the Libraries tab.
  11. -
  12. Press OK to close the Properties for - RSESamples dialog. -
  13. -
- - diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changePluginClass.html b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changePluginClass.html deleted file mode 100755 index aca3829095a..00000000000 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/pdeProject_changePluginClass.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - -Changes to Plug-in Class - - - -

Changes to Plug-in Class

-

Here are the steps to change the wizard-generated plug-in class to -extend the RSE plug-in class. -

    -
  1. Add the following import statements to the top of RSESamplesPlugin.java: -
    
    -        import com.ibm.etools.systems.core.*;
    -        import com.ibm.etools.systems.core.ui.messages.*;
    -        import org.eclipse.swt.graphics.Image;
    -        import org.eclipse.jface.preference.*;
    -        
    -
  2. -
  3. Change the extends clause in the class declaration to extend SystemBasePlugin instead of - AbstractUIPlugin: -
    
    -        public class RSESamplesPlugin extends SystemBasePlugin {
    -        
    -
  4. -
  5. Add the following class field declaration: -
    
    -	    private static SystemMessageFile messageFile = null;
    -        
    -
  6. -
  7. Change the constructor as highlighted here: -
    
    -	/**
    -	 * The constructor.
    -	 */
    -	public RSESamplesPlugin(IPluginDescriptor descriptor) {
    -		super(descriptor, "RSESamples");
    -		plugin = this;
    -		//try {
    -		//	resourceBundle= ResourceBundle.getBundle("RSESamples.RSESamplesPluginResources");
    -		//} catch (MissingResourceException x) {
    -		//	resourceBundle = null;
    -		//}		
    -		resourceBundle = loadResourceBundle(descriptor,"rseSamplesResources");
    -		messageFile = loadMessageFile(descriptor,"rseSamplesMessages.xml");
    -	}
    -        
    -
  8. -
  9. Change the getResourceString method as highlighted here: -
    
    -	/**
    -	 * Returns the string from the plugin's resource bundle,
    -	 * or 'key' if not found.
    -	 */
    -	public static String getResourceString(String key) {
    -		ResourceBundle bundle= RSESamplesPlugin.getDefault().getResourceBundle();
    -		return getString(bundle, key); // inherited method.
    -		//try {
    -		//	return bundle.getString(key);
    -		//} catch (MissingResourceException e) {
    -		//	return key;
    -		//}
    -	}
    -        
    -
  10. -
  11. Add the following methods to the end of the class: -
    
    -    /**
    -     * @see AbstractUIPlugin#initializeDefaultPreferences
    -     */
    -	protected void initializeDefaultPreferences(IPreferenceStore store) 
    -    {
    -        super.initializeDefaultPreferences(store);
    -        //RSESamplesPreferencePage.initDefaults(store);
    -    }
    -    /**
    -     *	Initialize the image registry by declaring all of the required graphics.
    -     */
    -    protected void initializeImageRegistry()
    -    {
    -    	String path = getIconPath();
    -    	//putImageInRegistry(ISamplesConstants.ICON_XXX_ID,
    -    	//  			       path+ISamplesConstants.ICON_XXX);
    -    	// TO RETRIEVE AN ICON, CALL GETIMAGE OR GETIMAGEDESCRIPTOR WITH ITS XXX_ID ID
    -    }
    -    /**
    -     * Starts up this plug-in and returns whether startup was successful.
    -     */
    -    public void startup() throws CoreException 
    -    {
    -    	super.startup();
    -    }    
    -    /**
    -     * Return our message file
    -     */
    -    public static SystemMessageFile getPluginMessageFile()
    -    {
    -    	return messageFile;
    -    }    
    -    /**
    -     * Retrieve a message from this plugin's message file
    -     */
    -    public static SystemMessage getPluginMessage(String msgId)
    -    {
    -    	return getMessage(messageFile, msgId);
    -    }
    -        
    -
  12. -
  13. Click here to see the full finished class. -
  14. -
-

- -