data: indexing java

* expanded appsettings to include java specific stuff
* added java indexer as separate project that can be build via its build script
* added dependencies for java indexer to the setup folder
* added license files for these dependencies.
* added sample project for java. this is just to test java on other machines and can be removed again in the future.
* the java parser test suite is currently uncommented because java is not running on every machine.
* added some more node types
* removed TokenComponentAccess::AccessType and replaced all its usages by using AccessKind
* moved access components from edges to nodes
* using recordReference of ParserClient for java
* removed recording access specifier of inheritance edges.
* added styles for new node types
This commit is contained in:
malte_langkabel
2016-08-04 09:20:13 +02:00
parent 05c06a6102
commit b072972b50
122 changed files with 7291 additions and 696 deletions
@@ -11,39 +11,42 @@
#include "qt/utility/QtDeviceScaledPixmap.h"
#include "qt/utility/utilityQt.h"
QtGraphNodeAccess::QtGraphNodeAccess(TokenComponentAccess::AccessType accessType)
QtGraphNodeAccess::QtGraphNodeAccess(AccessKind accessKind)
: QtGraphNode()
, m_access(accessType)
, m_accessKind(accessKind)
, m_accessIcon(nullptr)
, m_accessIconSize(16)
{
std::string accessString = TokenComponentAccess::getAccessString(accessType);
std::string accessString = TokenComponentAccess::getAccessString(m_accessKind);
this->setName(accessString);
m_text->hide();
std::string fileName;
switch (accessType)
std::string iconFileName;
switch (m_accessKind)
{
case TokenComponentAccess::ACCESS_PUBLIC:
fileName = "public";
case ACCESS_PUBLIC:
iconFileName = "public";
break;
case TokenComponentAccess::ACCESS_PROTECTED:
fileName = "protected";
case ACCESS_PROTECTED:
iconFileName = "protected";
break;
case TokenComponentAccess::ACCESS_PRIVATE:
fileName = "private";
case ACCESS_PRIVATE:
iconFileName = "private";
case ACCESS_DEFAULT:
iconFileName = "default";
break;
case TokenComponentAccess::ACCESS_TEMPLATE:
fileName = "template";
case ACCESS_TEMPLATE_PARAMETER:
case ACCESS_TYPE_PARAMETER:
iconFileName = "template";
break;
default:
break;
}
if (fileName.size() > 0)
if (iconFileName.size() > 0)
{
QtDeviceScaledPixmap pixmap(
QString::fromStdString(ResourcePaths::getGuiPath() + "graph_view/images/" + fileName + ".png"));
QString::fromStdString(ResourcePaths::getGuiPath() + "graph_view/images/" + iconFileName + ".png"));
pixmap.scaleToHeight(m_accessIconSize);
m_accessIcon = new QGraphicsPixmapItem(pixmap.pixmap(), this);
@@ -55,9 +58,9 @@ QtGraphNodeAccess::~QtGraphNodeAccess()
{
}
TokenComponentAccess::AccessType QtGraphNodeAccess::getAccessType() const
AccessKind QtGraphNodeAccess::getAccessKind() const
{
return m_access;
return m_accessKind;
}
bool QtGraphNodeAccess::isAccessNode() const
@@ -8,10 +8,10 @@ class QtGraphNodeAccess
: public QtGraphNode
{
public:
QtGraphNodeAccess(TokenComponentAccess::AccessType accessType);
QtGraphNodeAccess(AccessKind accessKind);
virtual ~QtGraphNodeAccess();
TokenComponentAccess::AccessType getAccessType() const;
AccessKind getAccessKind() const;
// QtGraphNode implementation
virtual bool isAccessNode() const;
@@ -22,7 +22,7 @@ public:
void hideLabel();
private:
TokenComponentAccess::AccessType m_access;
AccessKind m_accessKind;
QGraphicsPixmapItem* m_accessIcon;
int m_accessIconSize;