use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class ArtifactVersionDefaultValueService method compute.
@Override
protected String compute() {
String data = null;
NewLiferayPluginProjectOp op = _op();
Path location = op.getLocation().content();
if (location != null) {
String parentProjectLocation = location.toOSString();
IPath parentProjectOsPath = org.eclipse.core.runtime.Path.fromOSString(parentProjectLocation);
String projectName = op.getProjectName().content();
data = NewLiferayPluginProjectOpMethods.getMavenParentPomVersion(op, projectName, parentProjectOsPath);
}
if (data == null) {
data = "1.0.0-SNAPSHOT";
}
return data;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class DisplayNameDefaultValueService method initDefaultValueService.
@Override
protected void initDefaultValueService() {
super.initDefaultValueService();
_listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.property(NewLiferayPluginProjectOp.PROP_PROJECT_NAME).attach(_listener);
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class GroupIdDefaultValueService method compute.
@Override
protected String compute() {
String groupId = null;
NewLiferayPluginProjectOp op = _op();
Path location = op.getLocation().content();
if (location != null) {
String parentProjectLocation = location.toOSString();
IPath parentProjectOsPath = org.eclipse.core.runtime.Path.fromOSString(parentProjectLocation);
String projectName = op.getProjectName().content();
groupId = NewLiferayPluginProjectOpMethods.getMavenParentPomGroupId(op, projectName, parentProjectOsPath);
}
if (groupId == null) {
groupId = _getDefaultMavenGroupId();
if (CoreUtil.isNullOrEmpty(groupId)) {
groupId = "com.example.plugins";
}
}
return groupId;
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class GroupIdDefaultValueService method initDefaultValueService.
@Override
protected void initDefaultValueService() {
super.initDefaultValueService();
Listener listener = new FilteredListener<PropertyContentEvent>() {
@Override
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getLocation().attach(listener);
op.getProjectName().attach(listener);
}
use of com.liferay.ide.project.core.model.NewLiferayPluginProjectOp in project liferay-ide by liferay.
the class GroupIdValidationService method initValidationService.
@Override
protected void initValidationService() {
super.initValidationService();
_listener = new FilteredListener<PropertyContentEvent>() {
protected void handleTypedEvent(PropertyContentEvent event) {
refresh();
}
};
NewLiferayPluginProjectOp op = _op();
op.getProjectProvider().attach(_listener);
}
Aggregations