Problem with PDE development

In the basic project from the PDF workbench there is something like this:
      * the command has been executed, so extract extract the needed information
      * from the application context.
     public Object execute(ExecutionEvent event) throws ExecutionException {
          IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
          MessageDialog.openInformation(window.getShell(),"Test", "Hello, Eclipse world");Now the call:
window.getShell()
gives this error:
"The method getShell() from the type IWorkbenchWindow refers to the missing type Shell"
Any ideas on what is wrong?
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWind

These are the imports:
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.handlers.HandlerUtil;
import org.eclipse.jface.dialogs.MessageDialog;
and this are the dependencies:
     <dependency>
          <groupId>swt</groupId>
          <artifactId>jface</artifactId>
          <version>3.0m8</version>
     </dependency>
     <dependency>
          <groupId>org.eclipse.core</groupId>
          <artifactId>commands</artifactId>
          <version>3.3.0-I20070605-0010</version>
     </dependency>          
     <dependency>
     <groupId>org.eclipse.ui</groupId>
     <artifactId>workbench</artifactId>
     <version>3.3.0-I20070608-1100</version>
     </dependency>     
They relate directly to the imports as I see them. But I don't get any errors unless I use the
          IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
          window.getShell();
But maybe its not a good idea to move PDE to maven.

Similar Messages

  • Problem with application developed with vtapi(Vt Systems) - events

    Hello!
    I'm developing aplication based on api prepared by VT Systems (http://www.cmsfx.com/en/trading-software/download-vt-trader/download-vt-trader-api/).
    This api is used to perform forex transactions. I've written a Web
    Service which connects with this api and
    alows other modules of my application to perform transactions. I'm
    using JAX-WS and Sun Java Application Server.
    This is sample of Web Service :
    @WebService()
    public class ForexService{
    protected static VT_API api;
    Checker checker;
    String userName = "***";
    String userPassword = "***";
    ConstRecord constants;
    public static IVT_APIEventsAdapterExtended events;
    public void initAPI(){
    try{
    System.loadLibrary("bridge2java");
    OleEnvironment.Initialize();
    api = new VT_API();
    api.setForceDisableSSL(false);
    events = new IVT_APIEventsAdapterExtended(api);
    api.addIVT_APIEventsListener(events);
    constants = new ConstRecord();
    }catch(Exception e) {
    e.printStackTrace();
    public ForexService(){
    initAPI();
    logonResult = api.Login(userName, userPassword, 0) ;
    System.out.println("Rezultat logowania: " + logonResult);
    checker = new Checker(this);
    new Thread(checker).start();
    @WebMethod
    public String getLogonResult() {
    return new Integer(logonResult).toString();
    @WebMethod
    public String getServerList(){
    return api.GetServerList();
    I'm using event listener which was attached to Java Sample in
    documentation.
    public class IVT_APIEventsAdapterExtended extends
    IVT_APIEventsAdapter{
    private VT_API api;
    public IVT_APIEventsAdapterExtended(VT_API apiInstance) {
    api = apiInstance;
    public void
    OnInstrumentChange(IVT_APIEvents_OnInstrumentChangeEvent e)
    super.OnInstrumentChange(e);
    System.out.println("instrument change - " +
    e.get_InstrumentID());
    public void
    OnNewServerMessage(IVT_APIEvents_OnNewServerMessageEvent e)
    super.OnNewServerMessage(e);
    System.out.println("Server message :" +
    api.get_ServerMessages().get_Items(e.get_MsgID()).get_Text());
    I've problem with listening events incoming from forex server. When I
    run Wireshark(Network Protocol Analyzer) I can see that events income
    to my computer (on different ports - for example: 2070, 2071, 2072),
    but don't income to Sun Java Application Server. I suspect that server
    don't listen on this ports, but how can I fix this? Maybe should I
    choose a other server? I've tried also Tomcat -with similar result :(
    Regards,
    Peter
    //Sorry for my english :)

    Thank you very much for the reply :-)
    We have been fiddling with the platform on many levels yesterday, and one thing we did do was bump that value up from 1024 to 8192... This made a HUGE improvement in ensuring the platform now holds the live streaming connections. (up to 8000 per edge)
    I think for other future reference and to aid other people that might run into this problem in the future, its a good idea to increase this value.  From what we have seen, read and heard, that default value is fairly conservative, its suppose to grow when the load demands it, however, if you have a large scale of connections coming in at once from multiple locations, it can happen that it grows too quickly which can result in the application to be reloaded (which disconnects all users, i.e. all edge servers connected to this origin).
    Another option we were recommended to modify was the following :
    In adaptor.xml you currently have this line:
    <HostPort name="edge1" ctl_channel="localhost:19350" rtmfp="${ADAPTOR.HOSTPORT}">${ADAPTOR.HOSTPORT}</HostPort>
    You can set this to
                    <HostPort name="edge1" ctl_channel="localhost:19350" rtmfp=":80">:80</HostPort>
    <HostPort name="edge2" ctl_channel="localhost:19351" rtmfp=":1935">:1935</HostPort>
    This will create two edge processes for both ports 80 and 1935. Currently both ports are served from the same fmsedge process.
    Of course this is not a huge performance improvement, but should further distribute load over more processes which is a good thing. Especially when there are that many connections.
    This setting can be made on all machines (origin + edge)
    Hopefully this could help other people also running into the same problems we have seen ...

  • Problems with sql developer and win 8 64 bit

    Hi there,
    It's my first time in this forum, I am a student programmer and I have many problems to install SQL Developer on Oracle Database 12c. I actually managed to install both, but I could not make them work. My question is SQL Developer works on the Windows 8 platform 64-bit?
    I'm going crazy, help me please .... Thanks for a while!!!

    SqlDeveloper should have no problem working in Win 8, but i do not think it's a supported platform yet.
    The Database could be a little more troublesome, if you only need a working database environment to make experiments you could find the "pre-built" Virtual Machines useful.
    For Win 8 and 12c try using the EA release of SQLDeveloper 4, because if I'm not mistaken the current 3.2.2 could have some problems with 12c.

  • Having problem with the development environment

    I have trouble with my development environment where I can't see the top portion of the screen. I'm using windows 8 and just download Edge Animate (2014) yesterday.. I uninstall and install the product again and still having the problem.

    Hi Todd,
    Thanks for writing to us with your concern. We are sorry to know that you are facing issues while using the software.
    We are unable to repro the issue on Windows Hi-res machines. Works properly on local test machines.
    Can you please share your system information file with us,
    What is System Information? - Windows Help
    Collect the system file and send me a private message.
    Regards,
    Devendra

  • SAP NW Developer Studio: Problem with Import Development Configuration(DC)

    Dear Experts!
    I have a problem with SAP NetWeaver Developer Studio when import a Developement Configuration.
    I create a Software Component(SC) in SLD( with Dependencies:  SAP J2EE Engine, SAP Java Tech Service, DI BUILD TOOL, Then I create a Development Configuration(DC) and add this SC.
    On SAP Netweaver  Developer  Studio I import this DC. I see on the Component Browser My DC include: my software conponent , and SCs: SAPJEE, SAP_BUILDT, SAP_JTECHS but in DC detail there are nothing. So I cannot create the Development Component
    Please help me resolve this issue.
    Thanks all

    Hi,
    you cannot see the DCs (for SCs like SAPBUILDT, JTECHS, JEE, etc) in NWDS, because there is nothing imported into the buildspace(s) DEV (and cons).
    You need to go to the http://<host>:<port>/devinf -- CMS webui, to the Transport Studio, go to the Check-in tab, and check-in all the software you can see in the queue (which you have also added previously in SLD for your software) . This is a quick process, you'll see your software moved to the Development tab and waiting for import.
    Import all the components. This can take longer. As soon as all of them finished, you can open up your NWDS again. In order to see the DCs this time when you expand the corresponding node, you need to reimport (but at least) update the development configuration  (you do it in NWDS in the context menu of the development config in question).
    Best Regards,
    Ervin
    Edited by: Ervin Szolke on Sep 2, 2010 1:26 PM

  • Problems with SQL Developer 2.1

    I have upgraded to SQL Developer 2.1 from 1.5.5.
    Iam presenting my overall experience with SQL Developer 2.1 compare to 1.5.5 version.
    If the session expires, reconnecting is really pain in all SQL Developer versions. It opens a new blank window every time we reconnect, we have to copy all the things into new window every time.
    when i tried to execute an insert as select statement it is showing nothing, but it's doing something in the background.
    My templates are not working for (ctrl+Shift+T) after i upgraded to 2.1 from 1.5.5.
    Things I tried and liked in 2.1 are*
    1. 2.1 gives the exact time taken to return the no.of rows (Ex: If it returns first 50 rows, it will display time taken for that particular 50 rows only).
    Things I did not like in 2.1*
    1. When we try to expand a node, it shows "Loading and folder icon" (I didn't like the folder icon showing up every time)
    2. I did not like the new icon for SQL Developer 2.1 itself. (It has become hard to identify the 2.1 on the task bar with this icon)
    3. I did not like the close(i.e., x) on the worksheet tab.
    4. Look and feel wise 1.5.5 is better than 2.1
    Thanks!
    RG

    Regrettably we can't please all the people all the time.
    The little cross was a request specifically from the user community. We had complaints that users inadvertently closed windows and wanted a permanent symbol to show the closing tab. This took much effort and time to finally introduce into the product as it had to be approved through usability teams and introduced into the underlying IDE.
    The release notes explain that there is no longer a key sequence for the Code Templates, start typing your code and it should appear in the code insight.
    The icon updates on the taskbar was also an update based on user feedback.
    While there won't be many changes between the release candidate and production, I do remind you that you are working with beta software and not production software.
    Thank you for taking the tiem to post your feedback. I hope you'll find lots to really like in the latest release. Take a look through the 2.1 New Features list.
    Sue

  • Problem with netweaver developer studio for sp9

    Hi,
    Presenty we are on ep6 sp10 and we have downloaded dev studio for sp9 which is available on sdn.we have j2sdk1.4.2_06
    the problem is that when i deploy a par file from netweaver and try to create an iview based on that par it gives me the following error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    com.sapportals.portal.navigation.ToolAreaiView.
    Exception id: 04:25_03/03/05_0005_4061050
    See the details for the exception ID in the log file
    The strange thing is that if i use ep6 sp2 dev studio it works fine. So is there any problem with sp9 dev studio?

    I think that with NWDS the SP of the portal and NWDS much match.
    Hope it helps,
    Patrick.

  • Installation problems with 9iAS Developer KIT

    I have 9iAS installed on one machine with 9iAS infrastructure in it's own home and 9iAS components it's own home.
    The Big problem I am having is that each time I try to install the 9iAS developer KIT in 9iAS component home an error about saying cannot install.
    So should the 9iAS developer KIT have it's own home? That is different from 9iAS component home on the same maching

    I have 9iAS installed on one machine with 9iAS infrastructure in it's own home and 9iAS components it's own home.
    The Big problem I am having is that each time I try to install the 9iAS developer KIT in 9iAS component home an error about saying cannot install.
    So should the 9iAS developer KIT have it's own home? That is different from 9iAS component home on the same maching

  • Problems with SQL Developer 2.3.0 on Ubuntu

    I installed on my 'Acer Aspire one' Ubuntu 9.04 and OracleXE and SQLDeveloper 2.3.0.
    The connection to the database functions.
    (I've been connected as HR)
    But when I use the 'Database Navigator' and select 'Schemas -> HR (default) -> Tables' than happens nothing. I can not see any table.
    It's the same with other db objects, except procedures and sequences.
    When I use SQL Statement, I can see that tables.
    A second problem I have with the windows coming up after any action.
    There are no scrall bars to see the complete content of the windows.
    Can anybody help me?
    Thanks a lot
    Gerhard

    No, beacuse you are not using Oracle SQL Developer. You are using a third-party product developed by SOLYP Informatik GmbH. I suggest that you go to their web site [http://sqldeveloper.solyp.com/] for support.
    Ed. H.

  • Problem with SQL Developer (Version 1.5.4)

    Dear All,
    I have two questions as stated below while using the SQL Developer:
    1) I have installed the application to a few PCs; while others are using the system without problems, on my PC, whenever I have entered / opened a SQL scripts on my SQL Loader, I cannot move my cursors within the script area and I could not utilizing the Backspace or my keyboard to modify my script. I have uninstalled and reinstalled a few times but the outcome is the same. Anyone has experienced this before? Any solutions?
    2) Apparently, whenever we have run a script with results of more than 5000 records, there would be an error message telling the limitation. How could we overcome this? What are the settings needed?
    Thank you in advance on all the helps given.
    Thank you.
    Best regards,
    Stephan

    1. opened a SQL scripts on my SQL Loader ? That's not an editor. If you meant SQL Developer, try Preferences - Accelerators - Presets - Default.
    2. Preferences - Database - Worksheet - Max rows to print in a script.
    Regards,
    K.

  • Problem with SQL Developer

    Dear All,
    I have two questions as stated below while using the SQL Developer:
    1) I have installed the application to a few PCs; while others are using the system without problems, on my PC, whenever I have entered / opened a SQL scripts on my SQL Loader, I cannot move my cursors within the script area and I could not utilizing the Backspace or my keyboard to modify my script. I have uninstalled and reinstalled a few times but the outcome is the same. Anyone has experienced this before? Any solutions?
    2) Apparently, whenever we have run a script with results of more than 5000 records, there would be an error message telling the limitation. How could we overcome this? What are the settings needed?
    Thank you in advance on all the helps given.
    Thank you.
    Best regards,
    Stephan

    There's a specific [SQL Developer Forum|http://forums.oracle.com/forums/forum.jspa?forumID=260] where they're probably more knowledgeable of that tool, or readily available to give you an adequade response, if you don't mind reposting there.

  • Problem with MedRec development tutorial

    Hi,
    I am facing a problem trying to run the "Tutorial 11: Exposing a Stateless Session
    EJB as a Web Service" which is part of the MedRec Development Tutorial for WLS
    8.1.
    On running the my_webserv.xml (copy of webservices_tutorial.xml) ant script, I
    get the following error:
    file:D:/medrec_tutorial/src/medrecEar/my_webserv.xml:12: weblogic.webservice.tools.build.WSBuildException:
    Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received: interface
    javax.xml.rpc.handler.HandlerRegistry loaded from file:/D:/BEA/weblogic81/server/lib/webservices.jar!/javax/xml/rpc/handler/HandlerRegistry.class.
    All classes that will be serialized or deserialized must be non-interface, non-abstract
    classes that provide a public default constructor]
    Having followed all the previous tutorials exactly as documented, I am not sure
    why this is happening.
    Looking to get some help for this problem.
    thanks.

    yes. looks like my CLASSPATH was a problem. some extraneous entries from a previous
    medrec tutorial.
    thanks.
    "Chris Wall" <[email protected]> wrote:
    Hey Atul.
    What is your classpath?
    "atul" <[email protected]> wrote in message
    news:403ddd0b$[email protected]..
    Hi,
    I am facing a problem trying to run the "Tutorial 11: Exposing a StatelessSession
    EJB as a Web Service" which is part of the MedRec Development Tutorialfor
    WLS
    8.1.
    On running the my_webserv.xml (copy of webservices_tutorial.xml) antscript, I
    get the following error:
    file:D:/medrec_tutorial/src/medrecEar/my_webserv.xml:12:weblogic.webservice.tools.build.WSBuildException:
    Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received:
    interface>> javax.xml.rpc.handler.HandlerRegistry loaded from>file:/D:/BEA/weblogic81/server/lib/webservices.jar!/javax/xml/rpc/handler/HandlerRegistry.class.>>  All classes that will be serialized or deserialized must be>non-interface, non-abstract>>  classes that provide a public default constructor
    Having followed all the previous tutorials exactly as documented, Iam not
    sure
    why this is happening.
    Looking to get some help for this problem.
    thanks.

  • I have got a problem with flash development

    Hallo guys, I am new to flash development, that's why I ask you to help me.
    I have got the following problem:
    Actually, we want to create service for internal use in our companies in Russian cities. This service must solve following problem: when an employee leaves work, he must have a possibility to login to our web site, turn on his web camera through web interface on this site, so that he would be able to see the picture from his web camera in the player on the site. Than he leaves his workplace and goes home, when he gets home, he must be able to login on the same site, and see, what is happening on the camera. Ideally,  we must also provide such function: when nothing changes on the camera, our service realizes, that everything is ok, when someone walks in the camera or something changes on the picture this service must "realize" that somebody is walking in front of the camera and it should alert users via e-mail and send him some letter with a photo of object, which appeared in the camera.I found one site, which allows to do that dompodprismotrom.ru on this site, everything happens through the flash.
    I understand that this task should be divided into 4 parts:
    1.Getting image from video camera and broadcast it to the player on the site
    2. Send and store this video on the server
    3.Analyze video (if something changes an alert should be sent)
    4.Sending an alert letter with notification to the mail of the user.
    Maybe someone of you can tell whether there are any open source solutions for any of these 4 problems?And how can I realize all this functionality?Maybe there are such services in America or Europe?
    I will be very greatful for any information.

    Hi saigon88,
    If you are having issues with the display on your MacBook Pro, you may find the following article helpful:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    - Brenden

  • Problems with LR4 -  Develop Module - Edit in CS5

    I've just upgraded from LR3 to 4
    When I make adjutments on a RAW or JPEG file in the develop module, and then send it to PS5 for more work, not all the adjustments show up in CS5.
    Example, I cropped an image, and then made local exposure adjustments using the 'brush' tool.
    Exported to CS5 using 'Photo' 'Edit in', and the image goes to CS but only the crop adjustment is showing.
    I've done all the updates on CS, but this is a pain.
    I'm running a MAC with Snow Leopard OS
    Can I uninstall the upgrade and reinstall..?  Would that be any use...??

    I was greatly confused by all this for a while, but think I finally figured it out, thanks to CSS Simon and others here (I'm new to Lightroom, having only used Ps/ACR previously).
    What happens is that "render using Lightroom" doesn't involve ACR at all. It goes straight to Photoshop (and puts the rendered file alongside the raw). The other option, "open anyway", renders the file through ACR. But ACR 6.6 and before can't read PV2012, that's why you need to install the ACR 6.7 Release Candidate, which can (although it doesn't give you access to the 2012-specific sliders).
    Another thing that tripped me up at first was that no Lightroom edits at all would show up in Bridge or ACR, even with ACR 6.7 installed. I finally discovered that I had to set Lightroom catalog settings to "automatically write metadata changes to xmp" - otherwise all Lightroom edits would just exist in the Lightroom catalog and not be visible to other applications.
    This is of no importance if you only use Lightroom, but it certainly is if you have a mixed workflow with Photoshop and Bridge.

  • Problems with Sql Developer

    Hi, I install Sql developer version 1.2.1.3213, when I try to configure the connection I got the error -java.lang.NullPointerException. Please how ca I fix this problem or why this happened.
    Thanks

    What do you see when you issue this command:
    java -version
    is this pointing to the right Java version?
    ~ Madrid
    http://hrivera99.blogspot.com/

Maybe you are looking for

  • Button to enable all checkboxes on front panel

    I have checkbox controls on the front panel to select various functions of my VI.  I would like to have buttons to check ("enable all") and un-check ("disable all") all the checkboxes at once, if desired.  Preferably, I'd like to see the boxes activa

  • Regarding Error in Migo

    Dear All, Through transaction code called Migo we are creating the return delivery for a stock transport purchase order by giving the inputs as the material document we have flagged the item as okay and also checked the box which indicates via delive

  • IPad 1 - VGA cable not outputting to projector, monitor or TV?

    I recently purchased the apple VGA cable so that i could project powerpoint presentations using my iPad 1. I have no success at all using any applications to make this work. Slideshark, Keynote etc. I had read that only video streaming is supported,

  • Burning in iDVD vs Toast 8 - capacity question

    I've been downloading Heroes and burning them to video DVD in Toast 8. I was experimenting in iDVD 6 as I like the DVD menu options better than in Toast. In Toast I can fit 4 episodes per disc. In iDVD I can only fit 2 episodes per disc. Why is this

  • Bridge CS5 new window

    On Win 7 Ultimate & Professional x64 when opening 2 Bridge CS5 windows, I cannot switch between them. There are 2 issues: Let's say that initial Bridge window 1 is browing directory 1. I right-click (only right click without browsing into) on some ot