Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Issue opening text/word document in Eclipse RCP(Issue opening text/word document in Eclipse RCP)
Issue opening text/word document in Eclipse RCP [message #769033] Wed, 21 December 2011 09:33
jlmueller5 is currently offline jlmueller5Friend
Messages: 8
Registered: November 2011
Junior Member

Hello All,

 
With the below code I am able to open the text file and word document in a view in Eclipse RCP.But the problem is when the file is opened the Application's Menubar is not showing, it seems it is opening in full window:

try {
                                               OleFrame frame = new OleFrame(displayArea, SWT.NONE);
 
                               } catch (SWTError e) {
                                               System.out.println("Unable to open activeX control"); //$NON-NLS-1$
                                               return;
                               }
 
 
 
         case MS_WORD:
 
                               try {
                                 if (clientSite != null) {
                                  clientSite.dispose();
                                 }
                               clientSite = new OleClientSite(frame, SWT.NONE, "Word.Document", file);
 
                               } catch (IllegalArgumentException ie) {
                                 ie.printStackTrace();
                                 return;
                               } catch (SWTException se) {
                                 se.printStackTrace();
                                 return;
                               }
                               clientSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
                               break;
 
 
After searching i found this Info :-
 
    isApplicationMenu
    public boolean isApplicationMenu(String menuId)
 
    Returns whether the menu with the given id is an application menu of the given window. This is used during OLE "in place" editing. Application menus should be preserved during menu merging. All other menus may be removed from the window.
 
    The default implementation returns false. Subclasses may override.
 
    Parameters:
        menuId - the menu id
    Returns:
        true for application menus, and false for part-specific menus
 
 
i could not understand the above completely.... but it seems it is related to my problem.. do anyone have any Idea regarding this and also how i can prevent OLE client to hide the Application Menu ...?

Any Help will be appriciated....!!!

Thanking you in advance.
 
Regards,
Julia
Previous Topic:RCP started from IDE much faster than the exported version
Next Topic:Get the absolute path of Eclipse RCP exe ?
Goto Forum:
  


Current Time: Sat May 11 11:00:33 GMT 2024

Powered by FUDForum. Page generated in 0.03093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top