Is there a way to export and import board queries? - azure-devops

I would like to re-use the queries that were build in a specific project in a new project. I am referring to the queries that are available under "My queries". The ultimate goal is to replicate a project dashboard to a new project.
I have been looking for an import and export function, but could not find it.

Is there a way to export and import board queries?
For this issue, you could use Wiql Editor extension.
After installing this extension, you can click on the "Edit query wiql" option as shown below to enter a page with the "inport" and "export" options.
With the Import and Export options, you can export the query as a .wiq file and import it into another project. You can also refer to this case.Hope this helps.

Related

How to add wizard shortcut in a view?

I'd like to put wizard shortcuts in my view for my product as seen in screenshot below. How can I do this?
Project Explorer, Package Explorer and the old Resource navigator all use org.eclipse.ui.internal.views.helpers.EmptyWorkspaceHelper to display this.
Since that is an internal class it is not part of the official API so should not be used directly, but you could study the source code to see what it does.

How do I import a complete model (ie multiple XMI files) into an Enterprise Architect Project

I am trying to take a copy of the XMI files for an Enterprise Architect model and then import them into a new EA project. The "Bulk Import" option doesn't seem to do what is says on the tin.
By figuring out now the package hierarchy is mapped into the EA xml files I could do this by importing the one file at at time starting from the root package, but this is implausibly time-consuming given the number of files involved. I have tried using the "ImportPackageXMI" method on the API to automate the manual approach, but this requires the parent package GUID to be known. For the root package(s) the parent is a "Model", which is created in the new EAP (maybe it has a GUID - but not that I can figure out) and there seems no simple way of recreating the package hierarchy in any case. (I was hoping that if I imported the xmi files - using a specially created root package - then EA would work out the package structure somehow, but this was not the case!)
This seems like it should be a trivial task that should be directly supported from the tool: export model, then import model. Maybe I'm missing something or there is a simple solution for this?
For clarity, I'm using the Desktop Edition (so no scripting available).
My actual goal was to create a copy of project (EAP) that was not associated with any source control settings : my attempts via export/import of the xml it seems was not the best way to achieve this!
A simple way I have found to is to create a new (project) EAP and then open the original EAP in another window (by clicking on the EAP file in Windows explorer). Once this is done the top level packages from a model in the original can simply be copied and then pasted - using the standard shortcuts - into a model in the new EAP, which is not associated with the original source settings. Hence new source control settings can be applied and the model controlled by a new source control technology.
You could simplify this task by using Project/Data Management/Project Transfer. This way a complete copy is done, which also includes the so-called reference data. XMI does only ex-/import elements and connectors (not for example image data, glossary, etc.).
The right way to do that is firstly create a Controlled Model Branch
Then you can Import this Model Branch and it will reconstruct your complete model (branch) from all the xmi files involved.

Is the J2SE com.google.zxing.client.j2se.MatrixToImageWriter still the standard way to write barcodes?

I notice that there are a lot of old tutorials from about 2010 that use
com.google.zxing.client.j2se.MatrixToImageWriter
to write 2D barcodes to files.
Also, I notice a lot of old tutorials specify the use of Android.
I am using Eclipse on Linux Mint, not Android.
Eclipse will happily import the main src tree of java files and show them as available packages. For example, I can get all the packages under zxing/core/src/main/java to show up; I can import classes from those packages and compile them.
However, I can't seem to import the com.google.zxing.client.j2se package when I have the core packages imported, and vice versa.
If there is a way to write BitMatrix objects to files without using
com.google.zxing.client.j2se
that would simplify matters.
Alternatively, if there is some way to get Eclipse to import both sets of packages, that might be an alternative. I have already tried modifying the "filters" under the "properties" tab, on the theory that if I can use two filters, the first can pick up
core/src/main/java
and the second can pick up
/javase/src/main/java/
But that didn't work for me.
Suggestions are welcome. Thanks.
Ran into the same problem with the import. It appears that we both forgot to add the javase.jar into the project. Download it from here, import and you will be able to import MatrixToImageWriter.

How to add operator for rapidminer

everyone
Thanks for reading my question. I am doing a project with Rapidminer, I have to add a new algorithm as a operator in Rapidminer, I'm just a beginner, I have been read some docs about this, but I still don't know how to do it, so I need your help to give some solutions.
What I know now, we have two solutions to add or change a operator
click right button on a operator which exist already in Rapidminer's operators.
import Rapidminer project in Eclipse
But, I just download Rapidminer, I didn't found the operation 'edit source code' when I clicked right button on a operator.
And if I import the project, whether I have to import the whole project on github? Or I just need import some jars.
Once I finish my 'operator', I just need to export the jar of my 'operator' and put it in the folder of 'plugin' in the location of installation Rapidminer? If just like what I say, It will be not easy for debug...?
Please give me some suggestions about my project as you can.
Thank you very much.
Jiang
Just to summarize the suggested solution: the RapidMiner documentation page suggest How to extend RapidMiner, although the sources are no longer available (probably to be updated to RapidMiner 6). An alternative location for the sources is http://activeintelligence.org/blog/archive/extending-rapidminer/ with the http://activeintelligence.org/var/RapidMiner_Extension_Template.zip template project.
Here is the template: https://github.com/rapidminer/rapidminer-extension-template (according to this post.)

NetBeans importing classes package problems

I have created a class in Java that I need to import into NetBeans and use in a GUI. What I have done so far is add the jar file containing the classes to the library in my project. I can look inside the jar file and see the classes I need inside the . I have looked around online and know that the best to way import these classes is to move them to another package that isn't the .
My problem is that I do not know how to do this. I saw that I can create a package in netbeans, but it is gray when it appears and I can't seem to do anything with it. I basically have no idea how to create packages that I can use to import classes If someone could please walk me through step by step I would greatly appreciate it. I have looked at the other posts on this site and other places online, but they seem to skip over somethings I am not sure about. My teacher didn't mention anything about packages either, so I am really in the dark.
You can copy your source files (*.java) in your project's src folder, then use refactoring to change the package.
Right-click your java file, then select Refactor > Move and type your new package name.