-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[INTERNAL] Remove IWorkspaceRoot #950
Conversation
Instead of keeping |
|
||
/** Eclipse implementation of {@link IWorkspaceRoot}. */ | ||
public class EclipseWorkspaceRootImpl extends EclipseContainerImpl implements IWorkspaceRoot { | ||
/** Eclipse {@link IContainer} implementation representing an {@link IWorkspaceRoot}. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this class deleted in another patch ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I didn't remove it because it is still used in the eclipse implementation. If a file in the workspace root asks for its parent resource, a workspace root object is returned instead of a folder. This class is now used as a simple implementation of the abstract EclipseContainerImpl
. But I could also remove the abstract
modifier from EclipseContainerImpl
and change the delegate type to IContainer
instead of IReosurce
if you would prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I could also remove the abstract modifier from EclipseContainerImpl and change the delegate type to IContainer instead of IReosurce if you would prefer
Do you think the additional abstraction layer EclipseWorkspaceRootImpl
provides valuable information? Otherwise, I would prefer your idea of removing the class and using the EclipseContainerImpl
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think the additional abstraction layer
EclipseWorkspaceRootImpl
provides valuable information?
No, not really as I couldn't be bothered to added any new javadoc to it. Will adjust the container implementation and remove the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
d10e489
to
558d5d5
Compare
Rebased onto current master fixing minor merge conflicts. |
Removed 'abstract' modifier from |
Removes the interface IWorkspaceRoot as it was no longer being used. Removes the IntelliJ implementation of IWorkspaceRoot. Removes the interface declaration from EclipseWorkspaceRoot. This implementation remains as it is still used when requesting the parent container of a resource located in the workspace root.
Removes the abstract modifier from the class EclipseContainerImpl. Uses EclipseContainerImpl as a replacement for EclipseWorkspaceRootImpl as the class no longer contained any methods. Removes EclipseWorkspaceRootImpl.
46dfba4
to
2e35d3d
Compare
Rebased onto current master without any interaction. |
Removes the interface IWorkspaceRoot as it was no longer being used.
Removes the IntelliJ implementation of IWorkspaceRoot.
Removes the interface declaration from EclipseWorkspaceRoot. This
implementation remains as it is still used when requesting the parent
container of a resource located in the workspace root.