My Blackberry isn't working and just OUT. Blackberry / RIM has said this is a severe critical outage that affects all 12 million users in the Americas. RIM has no official response to the cause or how long this will last. The last time we had this problem it was approximately 24 hours so this could be even worse.
Want to take bets how long? Post a comment and lets see who is closest!
Hold your breath berry-crackers! This could be painful!
Monday, February 11, 2008
Thursday, January 3, 2008
Desktop Tower Defense
If you need a break and just want to get away from work, life, family or friends I highly recommend this entertaining game call Desktop Tower Defense. It is a free online flash game and can provide many hours of playing. See if you can beat my current high score of 6400. Enjoye
Friday, December 28, 2007
QTJava and Eclipse RCP
I have not posted in a while but thought I would do a quick post before the year ends and follow up with more detail later. Right now I am trying to get QTJava API into my Eclipse RCP application. Thanks to a friend (thanks Rick!) I have some code to help with a problem with QTJava for Eclipse RCP on the Macintosh OSX platform. Isn't that ironic? Under OSX the whole movie canvas is shifted 16 pixels right and 16 pixels down (I believe that is the offset issue, will double check in followup post). So one needs to "trick" Eclipse to think the canvas paint area is correct. I will post some code examples in January once I have all the code in and working. Stay tuned.
Merry Christmas and Happy New Year to you all!
Merry Christmas and Happy New Year to you all!
Friday, October 26, 2007
IFolderLayout and Multiple Tabbed Views in Eclipse RCP/SWT
I ran across another issue that needed fixing this week. It isn't a very big problem but I figured even the little problems can be hard for some to solve since I consider the RCP / SWT documentation to be so weak.
This most recent problem had to do with having multiple views in an IFolderLayout. I had two as you will see in the image below (look at top right of image circled in red) with the table being the currently displayed view, albeit with no data.

Now what the user may do is click on the chart preview in the window on the left side view (It is a PDF viewer). The problem I had is the chart view, which is the "hidden" view on the right behind the table view, would not come to the fore ground.
This is a simple fix once you know what to do. I have a function called public void updateChartView(IWorkbenchPage page) which gets called to update the chart with new data or whatever. All I needed to do was, using the IWorkbenchPage passed was to call page.bringToTop(view) If you attempt to use activate(view) you may get errors.. How did I get my view in here? I did this: ChartView view = (ChartView)page.findView(ChartView.ID). This only works if you have one instance of chartview but there are primary and secondary id's used in another form of findView if you have multiple instances of the same view.
So by adding the bringToTop(view) function it now works properly when the user clicks on the left chart preview. See below:
This most recent problem had to do with having multiple views in an IFolderLayout. I had two as you will see in the image below (look at top right of image circled in red) with the table being the currently displayed view, albeit with no data.

Now what the user may do is click on the chart preview in the window on the left side view (It is a PDF viewer). The problem I had is the chart view, which is the "hidden" view on the right behind the table view, would not come to the fore ground.
This is a simple fix once you know what to do. I have a function called public void updateChartView(IWorkbenchPage page) which gets called to update the chart with new data or whatever. All I needed to do was, using the IWorkbenchPage passed was to call page.bringToTop(view) If you attempt to use activate(view) you may get errors.. How did I get my view in here? I did this: ChartView view = (ChartView)page.findView(ChartView.ID). This only works if you have one instance of chartview but there are primary and secondary id's used in another form of findView if you have multiple instances of the same view.
So by adding the bringToTop(view) function it now works properly when the user clicks on the left chart preview. See below:
Communication between Views using eventLoopIdle
I have been working on an application that is now up to 3 swing components embedded in my Eclipse RCP / SWT application. This has become problematic having these 3rd party components to communicate properly with each other. While it is easy to communicate with these other components embedded in other views I was having a problem with RCP not properly repainting the screen. So I have come up with a work around that works for me and I thought I would share it with any other Eclipse Rich Client Platform developer out there that may be struggling.
If you open up ApplicationWorkbenchAdvisor.java - there is a function in there called public void eventLoopIdle(Display display). In this function I put my calls. I used my Application Singleton class to facilitate communication. By adding a semaphore type variable I can see if other views need to go and update their screen. In my specific case a user has a view of a PDF and when they click on an action object this needs to send the file information to a chart window that then opens the file clicked on in the PDF view, parse it and display the chart with the give options defined by the PDF link.
If you have any questions on this just email or leave me a comment. Good luck!
If you open up ApplicationWorkbenchAdvisor.java - there is a function in there called public void eventLoopIdle(Display display). In this function I put my calls. I used my Application Singleton class to facilitate communication. By adding a semaphore type variable I can see if other views need to go and update their screen. In my specific case a user has a view of a PDF and when they click on an action object this needs to send the file information to a chart window that then opens the file clicked on in the PDF view, parse it and display the chart with the give options defined by the PDF link.
If you have any questions on this just email or leave me a comment. Good luck!
Wednesday, August 22, 2007
Problems Exporting your Eclipse RCP?
Today one of the students (PhD level) came to me with a problem I had encountered before while exporting my Eclipse RCP project. Normally you click on the export wizard on your project.product page and everything works fine. But occasionally you have a problem and when you look at the log file it generates in an annoying zip file you see nothing in there or maybe some warnings. This should be working, why is it failing? Well every single time this has happened to me it was because the generated eclipse.exe file become exclusively locked. This is under Windows XP Pro. I have no idea if this is happening to people on other platforms.
You can't just delete everything in your old export folder, because the delete fails.
So how do you fix it? Well these are the only solutions that work for me:
1) If in a hurry, export to a new folder.
2) If not in a hurry, reboot your computer, remove the old folder (or all its contents), run eclipse and export your project.
Why this is such an easy answer it is surprising how many people bang their heads against the wall on this one.
You can't just delete everything in your old export folder, because the delete fails.
So how do you fix it? Well these are the only solutions that work for me:
1) If in a hurry, export to a new folder.
2) If not in a hurry, reboot your computer, remove the old folder (or all its contents), run eclipse and export your project.
Why this is such an easy answer it is surprising how many people bang their heads against the wall on this one.
Friday, August 17, 2007
Tabbed Views in Eclipse RCP
Tabbed Views in Eclipse RCP sounds really complicated but Eclipse has made this really easy. Just follow these simple instructions and you will be off and running with multiple tabbed views.
- Open your perspective.java file (If you don't have this file yet, you are in trouble!)
- in public void createInitialLayout(IPageLayout layout) you should have some code that looks similar to this:
layout.addStandaloneView(ItagTreeView.ID, true, IPageLayout.LEFT, 1.0f, editorArea);
layout.addStandaloneView(ChartView.ID, true, IPageLayout.RIGHT, 0.5f, ItagTreeView.ID);
layout.addStandaloneView(FormView.ID, true, IPageLayout.BOTTOM, 0.5f, ItagTreeView.ID);
// create a folder for multiple analysis views so that they will open up
// in tabs next to the table view.
IFolderLayout folder = layout.createFolder("Tables", IPageLayout.BOTTOM, 0.5f, ChartView.ID);
folder.addPlaceholder(AnalysisView.ID + ":*");
folder.addView(TableView.ID);
The above code has 4 views and the table view is it. Our AnalysisView is a 2nd tab under the TableView.
You can see instead of calling addStandaloneView we call createFolder. The "folder" is how we combine several views to make a tabbed view presentation.
Subscribe to:
Posts (Atom)