Search Results

Search found 3 results on 1 pages for 'ibolit'.

Page 1/1 | 1 

  • Eclipse - Ouline View - Turn Off Filtering

    - by Ibolit
    Hi. I recently installed Eclipse on my new computer, and this installation somewhat filters the class members. I think it is somehow related to the Outline, but i couldn't find any settings related to it. The thing is that when i, for example, have an error in a method, and click on the little red square on the margin, eclipse shows me only that method, and nothing else. When i then click on the class name in the outline panel, eclipse shows me the class without import declarations. I can, of course, click on the import declarations in the outline panel, but then i get only them. When I want to jump to the declaration of some method by command-clicking that method's name, I again get only that method on the screen. It is really annoying. Can anyone please help me fix it? Best regards,Timofey.

    Read the article

  • Setting the type of a field in a superclass from a subclass (Java)

    - by Ibolit
    Hi. I am writing a project on Google App Engine, within it I have a number of abstract classes that I hope I will be able to use in my future projects, and a number of concrete classes inheriting from them. Among other abstract classes I have an abstract servlet that does user management, and I hava an abstract user. The AbstractUser has all the necessary fields and methods for storing it in the datastore and telling whether the user is registered with my service or not. It does not implement any project specific functionality. The abstract servlet that manages users, refers only to the methods declared in the AbstractUser class, which allows it to generate links for logging in, logging out and registering (for unregistered users). In order to implement the project-specific user functionality I need to subclass the Abstract user. The servlets I use in my project are all indirect descendants from that abstract user management servlet, and the user is a protected field in it, so the descendant servlets can use it as their own field. However, whenever i want to access any project specific method of the concrete user, i need to cast it to that type. i.e. (abstract user managing servlet) ... AbstractUser user = getUser(); ... abstract protected AbstractUser getUser(); (project-specific abstract servlet) @Override protected AbstractUser getUser() { return MyUserFactory.getUser(); } any other project specific servlet: int a = ((ConcreteUser) user).getA(); Well, what i'd like to do is to somehow make the type of “user” in the superclass depend on something in the project-specific abstract class. Is it at all possible? And i don't want to move all the user-management stuff into a project-specific layer, for i would like to have it for my future projects already written :) Thank you for your help.

    Read the article

  • Java - Post to Twitter

    - by Ibolit
    Hi. I've written a simple web application, which i want to post tweets. I have seen some java libraries for working with twitter, and they all seem like too much of work for something that seemingly simple. But it is possible that i am missing something. And I am yet to make any of them work... Is there any simple way to post a tweet in twitter from a web-app in java with only a few lines of code? Thank you very much.

    Read the article

1