Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problems in setInput
Problems in setInput [message #221993] Wed, 23 August 2006 14:29
Eclipse UserFriend
Originally posted by: news.goodbyte.de

Hello,

I have a typecast-problem in the setInput method of the main editor
class. As in most of the examples done, I just cast "input" in the way
it is shown in the code snipped:

protected void setInput(IEditorInput input) {
super.setInput(input);
m_input = input;

try {
m_file = ((IFileEditorInput)input).getFile();

} catch (Exception e) {
e.printStackTrace();
}

...
}

Unfortunatly, a ClassCastException is thrown. It seems like the type of
input while runtime is JavaFileEditorInput.

What can I do?

Greetz
Benjamin
Previous Topic:How to connext a link with a link
Next Topic:replace draw2d impossible?
Goto Forum:
  


Current Time: Sat Jan 18 08:35:09 GMT 2025

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

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

Back to the top