use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class CopyToNewGraphPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
// Specify a new schema.
// If null, use the schema of the input graph.
final PluginParameter<StringParameterValue> schemaName = StringParameterType.build(NEW_SCHEMA_NAME_PARAMETER_ID);
schemaName.setName("New Schema Name");
schemaName.setDescription("The new schema name, if null use the input schema. The default is null.");
schemaName.setStringValue("");
parameters.addParameter(schemaName);
// If true, copy everything, selected or not.
final PluginParameter<BooleanParameterValue> copyAll = BooleanParameterType.build(COPY_ALL_PARAMETER_ID);
copyAll.setName("Copy All");
copyAll.setDescription("If True, copy everything regardless of selection. The default is False.");
copyAll.setBooleanValue(false);
parameters.addParameter(copyAll);
// If true, copy the keys.
final PluginParameter<BooleanParameterValue> copyKeys = BooleanParameterType.build(COPY_KEYS_PARAMETER_ID);
copyKeys.setName("Copy Keys");
copyKeys.setDescription("If True, copy the keys. The default is True.");
copyKeys.setBooleanValue(true);
parameters.addParameter(copyKeys);
// Output parameter.
final PluginParameter<ObjectParameterValue> newGraph = ObjectParameterType.build(NEW_GRAPH_OUTPUT_PARAMETER_ID);
newGraph.setName("New Graph (output)");
newGraph.setDescription("This parameter is used to store the copied graph");
parameters.addParameter(newGraph);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class PasteGraphPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<ObjectParameterValue> pasterParam = ObjectParameterType.build(RECORDSTORE_PARAMETER_ID);
pasterParam.setName("RecordStore");
pasterParam.setDescription("The RecordStore object to be pasted onto the current graph");
parameters.addParameter(pasterParam);
final PluginParameter<ObjectParameterValue> outVxPastedParam = ObjectParameterType.build(OUT_VX_PASTED_PARAMETER_ID);
outVxPastedParam.setName("Vertex Ids pasted");
outVxPastedParam.setDescription("A set of the vertex ids pasted (output parameter)");
parameters.addParameter(outVxPastedParam);
final PluginParameter<ObjectParameterValue> outTxPastedParam = ObjectParameterType.build(OUT_TX_PASTED_PARAMETER_ID);
outTxPastedParam.setName("Transaction Ids pasted");
outTxPastedParam.setDescription("A set of the transaction ids pasted (output parameter)");
parameters.addParameter(outTxPastedParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class SetConnectionModePlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters parameters = new PluginParameters();
final PluginParameter<ObjectParameterValue> modeParam = ObjectParameterType.build(CONNECTION_MODE_PARAMETER_ID);
modeParam.setName("Connection Mode");
modeParam.setDescription("The mode in which to display connections on the graph (transaction, edge or link)");
parameters.addParameter(modeParam);
return parameters;
}
use of au.gov.asd.tac.constellation.plugins.parameters.types.ObjectParameterType.ObjectParameterValue in project constellation by constellation-app.
the class ImportDelimitedPlugin method createParameters.
@Override
public PluginParameters createParameters() {
final PluginParameters params = new PluginParameters();
final PluginParameter<ObjectParameterValue> parserParam = ObjectParameterType.build(PARSER_PARAMETER_ID);
parserParam.setName("Parser");
parserParam.setDescription("The type of parser which is one that extends ImportFileParser");
parserParam.setObjectValue(null);
params.addParameter(parserParam);
final PluginParameter<FileParameterValue> fileParam = FileParameterType.build(FILES_PARAMETER_ID);
fileParam.setName("Files");
fileParam.setDescription("The list of file names to import");
fileParam.setObjectValue(null);
params.addParameter(fileParam);
final PluginParameter<ObjectParameterValue> definitionParam = ObjectParameterType.build(DEFINITIONS_PARAMETER_ID);
definitionParam.setName("Definitions");
definitionParam.setDescription("The list of definitions that extend ImportDefinition");
definitionParam.setObjectValue(null);
params.addParameter(definitionParam);
final PluginParameter<BooleanParameterValue> schemaParam = BooleanParameterType.build(SCHEMA_PARAMETER_ID);
schemaParam.setName("Complete with Schema");
schemaParam.setDescription("True if the graph should run the schema rules");
schemaParam.setBooleanValue(true);
params.addParameter(schemaParam);
final PluginParameter<ObjectParameterValue> parserParameters = ObjectParameterType.build(PARSER_PARAMETER_IDS_PARAMETER_ID);
parserParameters.setName("Parser Parameters");
parserParameters.setDescription("The PluginParameters used by the parser");
params.addParameter(parserParameters);
final PluginParameter<BooleanParameterValue> filesIncludeHeadersParam = BooleanParameterType.build(FILES_INCLUDE_HEADERS_PARAMETER_ID);
filesIncludeHeadersParam.setName("Files Include Headers");
filesIncludeHeadersParam.setDescription("True if the files include headers in the first row");
filesIncludeHeadersParam.setBooleanValue(true);
params.addParameter(filesIncludeHeadersParam);
return params;
}
Aggregations