directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r499117 - in /directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio: ApplicationActionBarAdvisor.java ApplicationWorkbenchAdvisor.java
Date Tue, 23 Jan 2007 20:13:10 GMT
Author: seelmann
Date: Tue Jan 23 12:13:10 2007
New Revision: 499117

URL: http://svn.apache.org/viewvc?view=rev&rev=499117
Log:
Added dynamic help menu item and dialog button.

Modified:
    directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationActionBarAdvisor.java
    directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationWorkbenchAdvisor.java

Modified: directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationActionBarAdvisor.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationActionBarAdvisor.java?view=diff&rev=499117&r1=499116&r2=499117
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationActionBarAdvisor.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationActionBarAdvisor.java
Tue Jan 23 12:13:10 2007
@@ -70,6 +70,7 @@
     private IWorkbenchAction aboutAction;
     private IWorkbenchAction preferencesAction;
     private IWorkbenchAction helpAction;
+    private IWorkbenchAction dynamicHelpAction;
     private UpdateAction updateAction;
     private ManageConfigurationAction manageConfigurationAction;
     private IWorkbenchAction newAction;
@@ -218,6 +219,9 @@
         helpAction = ActionFactory.HELP_CONTENTS.create( window );
         register( helpAction );
         
+        dynamicHelpAction = ActionFactory.DYNAMIC_HELP.create( window );
+        register( dynamicHelpAction );
+        
         viewsList = ContributionItemFactory.VIEWS_SHORTLIST.create( window );
         perspectivesList = ContributionItemFactory.PERSPECTIVES_SHORTLIST.create( window
);
         reopenEditorsList = ContributionItemFactory.REOPEN_EDITORS.create( window );
@@ -310,6 +314,7 @@
 
         // Help
         helpMenu.add( helpAction );
+        helpMenu.add( dynamicHelpAction );
         helpMenu.add( reportABug );
         helpMenu.add( new Separator() );
         MenuManager softwareUpdates = new MenuManager( Messages

Modified: directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationWorkbenchAdvisor.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationWorkbenchAdvisor.java?view=diff&rev=499117&r1=499116&r2=499117
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationWorkbenchAdvisor.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-rcp/src/main/java/org/apache/directory/ldapstudio/ApplicationWorkbenchAdvisor.java
Tue Jan 23 12:13:10 2007
@@ -21,6 +21,12 @@
 package org.apache.directory.ldapstudio;
 
 
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.TrayDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.application.IWorkbenchConfigurer;
 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
 import org.eclipse.ui.application.WorkbenchAdvisor;
@@ -65,6 +71,13 @@
     {
         //enable the save/restore windows size & position feature
         configurer.setSaveAndRestore( true );
+
+        //enable help button in dialogs 
+        TrayDialog.setDialogHelpAvailable( true );
+        ImageRegistry reg = JFaceResources.getImageRegistry();
+        ImageDescriptor helpImage = PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(
+            "IMGS_LCL_LINKTO_HELP" );
+        reg.put( Dialog.DLG_IMG_HELP, helpImage );
     }
 
 



Mime
View raw message